MakeHuman + Blender + Irrlicht

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
Ami00
Posts: 3
Joined: Sat Jan 21, 2017 11:54 am

MakeHuman + Blender + Irrlicht

Post by Ami00 »

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=0B6Zfx ... DlvNGJXNTQ

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
Escen
Competition winner
Posts: 167
Joined: Sun Jul 19, 2009 11:27 am
Location: the Netherlands
Contact:

Re: MakeHuman + Blender + Irrlicht

Post by Escen »

Are those textures existing and in the correct folder? Is the texture file extensions supported by Irrlicht?
Ami00
Posts: 3
Joined: Sat Jan 21, 2017 11:54 am

Re: MakeHuman + Blender + Irrlicht

Post by Ami00 »

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:

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

Post by Ami00 »

Also I found that 3ds model can be only static object in Irrlicht, so I think it's time to switch to DirectX models
Post Reply