If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
-
Mercator
- Posts: 16
- Joined: Fri Jan 27, 2006 4:31 pm
Post
by Mercator »
I set a Texture for a Material but my mesh just got black What could be the reason?
I loaded a texture in this way:
Code: Select all
node->setMaterialTexture(0, Driver->getTexture("data/crate.jpg"));
-
JP
- Posts: 4526
- Joined: Tue Sep 13, 2005 2:56 pm
- Location: UK
-
Contact:
Post
by JP »
You probably have no lighting in your 3D world so you need to turn the lighting off on the node:
node->setMaterialFlag(E_MATERIAL_FLAG.EMF_LIGHTING, false);
-
Mercator
- Posts: 16
- Joined: Fri Jan 27, 2006 4:31 pm
Post
by Mercator »
Thank you. works.