Hello everyone,
I'm currently fighting with ISceneManager::setAmbientLight() function and for some reason it does not seem to have any effect on meshes that are stored as Maya3D obj files. I tested it with the example Sydney md2 model and it works just fine but the same code for .obj file has no effect (i.e. the mesh is completely black no matter what values I set for the ambient light).
Am I missing something here? The mtl file is in place and is read successfuly, same for the texture file. Is there no support for ambient lights on obj meshes or am I simply required to make some kind of a function call?
Thanks!
setAmbientLight and .obj files
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Ducky: This is the solution that I'm currently using but the effects are not satisfactory. Certain areas of the mesh, where the light doesn't reach, are completely black (which should not be the case given that ambient light is non zero).
hybrid: Do you mean material settings in the .mtl file or a material object in the actual code?
hybrid: Do you mean material settings in the .mtl file or a material object in the actual code?