Original Post
Hi, I've forced device creation to use software vertex processing. But my meshes being rendered are fully black, seems like vertex normals arent being used to calculate lighting. The entire code runs on fixed function pipeline, no shaders. Any ideas what could be the problem? Here are some observations - 1. Turn off D3DRS_LIGHTING (set to false), objects are rendered with textures accurately. 2. When SetMaterial for the mesh is being called, changing ambient color values reflect at render time. So material is being set right too! 3. Lights are created properly and initialized. The same code works fine on mixed vertex processing. Thanks, San [Edited by - dreamtheater39 on January 6, 2009 8:32:10 AM]