Archived

This topic is now archived and is closed to further replies.

textures and fogging

This topic is 5896 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I think this has something to do with lighting normals.....

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites