Volumetric fog problem

Started by
2 comments, last by wild_pointer 20 years, 4 months ago
Can anyone recognize the problem here? Screenie I enable fog when rendering the terrain (yes, that''s what that is) and disable it when done. I''m using code more or less from gametutorials.com, so im pretty sure i''m using glFogCoord correctly. I''m guessing I have something enabled/disabled that I shouldn''t while applying the fog, but I can''t seem to find what that might be. [My site|SGI STL|Bjarne FAQ|C++ FAQ Lite|MSDN|Jargon]
Ripped off from various people
[size=2]
Advertisement
Not sure if this helps, but maybe you calculated your fog coordinates incorrectly. It looks as though the whole terrian is COMPLETELY fogged. But you may be right about the enable/disable thing.
What the heck. I modified it to not use display lists, and it works.


[My site|SGI STL|Bjarne FAQ|C++ FAQ Lite|MSDN|Jargon]
Ripped off from various people
[size=2]
You can''t modify any value once a Display List is done !
So I think you put the fog value in the display list when you define it and display this list, but you can not modify this value once you defined the Display List.

- Iliak -
- Iliak -
[ ArcEngine: An open source .Net gaming framework ]
[ Dungeon Eye: An open source remake of Eye of the Beholder II ]

This topic is closed to new replies.

Advertisement