I've got a problem with texturing. I'm using Blender and the irrb Exporter.
If i export a model from blender and load it into irrEdit, or try to show it with Irrlicht the Mesh hasn't any texture on it.
If I add a texture in irrEdit to my Mesh (a simple Cube ) the cube is just black.
This is also the case, if I add a light into the scene.
The same happens with my simple program.
It's just loading the model and displays it. If I to load the standard faerie.md2 mesh there isn't a problem.
But if I try to load my blender/irrEdit exported .irrmesh Files they don't have any texture on them.
Code: Select all
fairy->setMaterialTexture(0, driver->getTexture("media/c.png"));
EMF_LIGHTING is also on false.
Is there someone, who knows whats the problem? Thanks in advance.
EDIT: I tried it the whole day. Then I posted my question, and know I've figured it out.
I had to "planar map mesh" my mesh in irrEdit. Now it works.