Color flickering on meshes when in OPENGL
Posted: Sun Jan 20, 2008 6:00 pm
Hi, I have this 3ds mesh as the terrain of my project (I did it so because the results are much better performance wise as well as in quality).
Now, my problem is that when rendering it under OpenGL it has this annoying color flickering when moving the camera direction, while when rendered under Direct3D it works, quite fine with no flickers at all.
I've attached two screenshots showing how it looks when moving the camera just a little bit to the right. You'll see that the whole mesh darkens significantly.
It also seems that the
nody->setMaterialFlag(video::EMF_LIGHTING, true);
flag doesn't make any difference, since even when there's no light at all the mesh remains completely iluminated as if it was receiving light from an omnidirectional like source.
Any help appreciated,
Thanks.
Now, my problem is that when rendering it under OpenGL it has this annoying color flickering when moving the camera direction, while when rendered under Direct3D it works, quite fine with no flickers at all.
I've attached two screenshots showing how it looks when moving the camera just a little bit to the right. You'll see that the whole mesh darkens significantly.
It also seems that the
nody->setMaterialFlag(video::EMF_LIGHTING, true);
flag doesn't make any difference, since even when there's no light at all the mesh remains completely iluminated as if it was receiving light from an omnidirectional like source.
Any help appreciated,
Thanks.