chxfryer
03-20-2002, 09:23 AM
Ok, I had an application where i had a car driving around on a flat ground. I decided to add fog. Not knowing how to do this, i decided to visit gametutorials.com for the fog tutorial. Ok, I cut and pasted the fog code, adjusted the beginning and end depths for the fog and behold, there was fog.
Now here his my question, do I have to update the fog begin/end depths every frame? When my car moves around, my camera follows using gluLookAt. The fog seems to only stay in one position. I can drive straight through the fog and when I pass the end depth for the fog, it ends. and there is no fog.
Am I wrong to think that you should never be able to drive through the fog completely?
Shouldn't it stay at a certain depth into the screen. In any FPS with fog, you never end up walking through the fog (unless volumetric).
Now here his my question, do I have to update the fog begin/end depths every frame? When my car moves around, my camera follows using gluLookAt. The fog seems to only stay in one position. I can drive straight through the fog and when I pass the end depth for the fog, it ends. and there is no fog.
Am I wrong to think that you should never be able to drive through the fog completely?
Shouldn't it stay at a certain depth into the screen. In any FPS with fog, you never end up walking through the fog (unless volumetric).