textures and fogging
Hi,
I have a strange problem. Everytime I activate fog all my textures on my cubes disappear and the surfaces turn grey.
What is the problem, does it depend on the winding because I use CW rotation.
Thanx.
Check the distance settings you''re using with your fog. If an object is too deep in the fog, it will be completely
quote:Original post by Maximus
Check the distance settings you''re using with your fog. If an object is too deep in the fog, it will be completely
The problem isn''t the fact that my wohle model is disappearing but that the textures are just not there anymore, the faces turn just grey. But the model by itself is visible.
Fogging doesnt work on lighting normals, rather it uses the information in the depth buffer.
If a polygon is too deep in fog the entire polygon will appear textureless, and be entirely in the colour of the fog.
If a polygon is too deep in fog the entire polygon will appear textureless, and be entirely in the colour of the fog.
quote:The problem isn''t the fact that my wohle model is disappearing but that the textures are just not there anymore, the faces turn just grey. But the model by itself is visible.
Well AFAIK OpenGL doesn''t actually draw any fog besides on object''s themselves. So if you set a grey fog color and set the background color to blue, you could get a totally grey cube on a blue background. The cube would be totally fogged, but it looks odd because the background is not fogged. If you move your cube closer to the camera, it will be less grey and more textured but it will still be on a blue background.
Is this what you are experiencing?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement