MakeHuman + Blender + Irrlicht

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.

MakeHuman + Blender + Irrlicht

Postby Ami00 » Sat Jan 21, 2017 12:09 pm

Good afternoon.

I've faced an issue, when was trying to import a human mesh into Irrlicht project.
Firstly, I created a human model using makeHuman, then exported it into mhx2 file.
Afterwards, I imported it into Blender and exported as 3ds single file.

Now I'm looking into the model using mesh viewer (from tutorial) and here what I've got:
Image

There are following errors in the console window:
Could not load a texture for entry in 3ds file: brown_eye.pn
Could not load a texture for entry in 3ds file: female_casua
Could not load a texture for entry in 3ds file: female_casua
Could not load a texture for entry in 3ds file: female_casua.000
Could not load a texture for entry in 3ds file: braid01_diff
Could not load a texture for entry in 3ds file: braid01_diff
Could not load a texture for entry in 3ds file: shoes02_diff
Could not load a texture for entry in 3ds file: shoes02_diff
Could not load a texture for entry in 3ds file: brown_eye.pn
Could not load a texture for entry in 3ds file: brown_eye.pn
Could not load a texture for entry in 3ds file: shoes02_diff
Could not load a texture for entry in 3ds file: shoes02_diff
Could not load a texture for entry in 3ds file: braid01_diff
Could not load a texture for entry in 3ds file: braid01_diff
Could not load a texture for entry in 3ds file: female_casua
Could not load a texture for entry in 3ds file: female_casua
Could not load a texture for entry in 3ds file: female_casua.000
Could not load a texture for entry in 3ds file: middleage_li
Could not load a texture for entry in 3ds file: middleage_li
Could not load a texture for entry in 3ds file: middleage_li
Could not load a texture for entry in 3ds file: middleage_li
Loaded mesh: c:/users/artem/documents/visual studio 2015/projects/dungeon/thirdparty/girl.3ds


The file itself - https://drive.google.com/open?id=0B6Zfx2wnTZEOTkVJeDlvNGJXNTQ

And I can't figure out how to fix it.
My main goal is to create a human model using makehuman, then add animations to it (run, jump etc.) then import it into my game project.
I'm a newbie to 3d modeling, so maybe my questions is a bit stupid, sry then

Thanks in advance,
Ami00
Ami00
 
Posts: 3
Joined: Sat Jan 21, 2017 11:54 am

Re: MakeHuman + Blender + Irrlicht

Postby Escen » Sun Jan 22, 2017 8:22 am

Are those textures existing and in the correct folder? Is the texture file extensions supported by Irrlicht?
Escen
Competition winner
 
Posts: 166
Joined: Sun Jul 19, 2009 11:27 am
Location: the Netherlands

Re: MakeHuman + Blender + Irrlicht

Postby Ami00 » Sun Jan 22, 2017 9:49 am

Escen wrote:Are those textures existing and in the correct folder? Is the texture file extensions supported by Irrlicht?

Hi,

Textures format is png, I believe Irrlicht supports png.
And about location, I'm not sure it's appropriate. I placed the folder with textures right near the 3ds file.
In case I loaded them explicitly I got this:
Image

The code i was using:
cpp Code: Select all
characterNode->setMaterialTexture(0, driver->getTexture("c:/tst/middleage_lightskinned_female_diffuse.png"));
    characterNode->setMaterialTexture(0, driver->getTexture("c:/tst/brown_eye.png"));
    characterNode->setMaterialTexture(0, driver->getTexture("c:/tst/braid01_diffuse.png"));
    characterNode->setMaterialTexture(0, driver->getTexture("c:/tst/shoes02_diffuse.png"));
    characterNode->setMaterialTexture(1, driver->getTexture("c:/tst/female_casualsuit01_ao.png"));
    characterNode->setMaterialTexture(0, driver->getTexture("c:/tst/female_casualsuit01_diffuse.png"));

+ I got normal texture (female_casualsuit01_normal.png) an I'm not sure what to do with it.
irr::video::MATERIAL_MAX_TEXTURES equals 4.

Textures itself - https://drive.google.com/open?id=0B6Zfx ... HVXeUJUcm8

I was trying to set skin to layer from 0 to 5 and none was succeed. Any ideas please.

Thanks in advance,
Ami
Ami00
 
Posts: 3
Joined: Sat Jan 21, 2017 11:54 am

Re: MakeHuman + Blender + Irrlicht

Postby Ami00 » Sun Jan 22, 2017 11:13 am

Also I found that 3ds model can be only static object in Irrlicht, so I think it's time to switch to DirectX models
Ami00
 
Posts: 3
Joined: Sat Jan 21, 2017 11:54 am


Return to Everything 2d/3d Graphics

Who is online

Users browsing this forum: No registered users and 1 guest