FOG

Started by
2 comments, last by Screams of Chaos 21 years, 4 months ago
When I initialize and enable fog all the objects in my scene turn grey. Has somebody had this problem before?
Advertisement
They''re fogged!

Fiddle with the fogging parameters, it''s been a while since I''ve used OGL fog so I can''t remember good beginning parameters, I remember having a PITA with linear fogging, try EXP2 with some very low densities and see if your objects come back.
quote:Original post by Screams of Chaos
When I initialize and enable fog all the objects in my scene turn grey. Has somebody had this problem before?


If you don''t like gray, give yourself a new glFogColor more to your likings! ;-)

Ok, ok, more to the point: This is exactly how it should be. If you expected something else, then maybe your fog is to dense (modify this with using one of the "glFog* (GL_FOG_DENSITY, )" functions).
If all you want is that objects near your viewpoint are not affected at all by the fog, then "glFog* (GL_FOG_START, )" is your friend.

Tilmann
Thanks alot, it''s working!! The grey color was depressing me.

This topic is closed to new replies.

Advertisement