Can't use SpecularColor properly
Posted: Wed May 21, 2008 1:58 pm
Hello,
It's horrible to fail on such a ridiculous problem.
I have 1 MeshSceneNode that has some material properties specified, including SpecularColor. It works.
Then, I draw some triangles with this code :
Guess what : the triangles have the same SpecularColor that my MeshSceneNode.
All the others flags and material properties are ok, except SpecularColor.
If I write :
Please believe that they are displayed in wireframe, with the right diffuse color..... but the wrong specular color (ie : the MeshSceneNode specular color).
Does someone know what is wrong here ?
I'm using the 1.4 release
It's horrible to fail on such a ridiculous problem.
I have 1 MeshSceneNode that has some material properties specified, including SpecularColor. It works.
Then, I draw some triangles with this code :
Code: Select all
SMaterial mate;
mate.SpecularColor = SColor(0x0);
driver->setMaterial(mate);
driver->drawIndexedTriangleList(
&gbverts[0], nverts,
&gbindices[0], ntris);
All the others flags and material properties are ok, except SpecularColor.
If I write :
Code: Select all
SMaterial mate;
mate.SpecularColor = SColor(0x0);
mate.Wireframe = true;
mate.DiffuseColor = SColor(0xff00ff00);
driver->setMaterial(mate);
Does someone know what is wrong here ?
I'm using the 1.4 release