Advertisement

What happens with Fog?

Started by February 24, 2003 09:34 AM
2 comments, last by BigBoy 22 years ago
When using glFogf(GL_FOG_START, fogStart) and glFogf(GL_FOG_END, fogEnd), what happens? Does the fog go from 100% visibility at fogStart to 0% visibility at fogEnd? Or something else? What about after fogEnd? Cheers, Jeroen
Cheers,Jeroen
Fog start is the starting z value of the fog, for z
I think, but i''m not sure, that all the depth''s further than GL_FOG_END are set to the amount of fog at GL_FOG_END..

On my PC the END and START settings seem not to affect anything at all.
I use fog per Poly, that may be it, I''m not sure.

Marty
_____ /____ /|| | || MtY | ||_____|/Marty
Advertisement
Here''s some light reading to explain it to you fully.
http://www.sgi.com/software/opengl/advanced97/notes/node122.html
----------------Amusing quote deleted at request of owner
fog start and end only effect linear fog, not exponential or exponential squared fog, it''s the reverse for fog density.

| - Project-X - my mega project.. yup, still cracking along - | - adDeath - an ad blocker I made - | - email me - |

This topic is closed to new replies.

Advertisement