I have a question about textures in *.obj format.
Does the Irrlicht 3d engine load pre-defined textures in *.obj files ? Whenever I try to load the model it loads without textures. Even when I try loading textures with "setMaterialTexture". It just simply dose not work.
Thanks for any help...
BTW. Great work with Irrlicht ....
*.obj problem
Hi, .obj files are loaded completely without textures. The only way to assign a texture to these meshes is using setMaterialTexture, as you mentioned. Some reasons why this may not work are the following:
- There are no texture coordinates in the model.
- You set the wrong texture. Use setMaterialTexture(0, yourTexture)
- The texture could not be loaded. Maybe you wrote a wrong filename? Is the pointer of to texture nonzero?
- If your model is totally black, mabe the lighting is on, but no light is there.