Jump to content
  • Advertisement

Archived

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

penetrator

Strange problems always happen to me ...

This topic is 6486 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

Ok sit down and listen: I''ve a heightmap (out of a .bmp file). At the end of the heightmap I immediately have put a QUAD. When I fly over the terrain everything is fine, after the mountain I get the plain (QUAD) surface. But, if I enable fog, when I travel on the mountains it is fine, when I reach the QUAD and I move the camera left and right, the fog runs to me covering almost all the QUAD and NOT the mountains. What the hell ... If you need screenshot of this strange behaviour I''ll send you !

Share this post


Link to post
Share on other sites
Advertisement
I guess that happens because fog is computed per-vertex, so I suggest you tesselate that quad (split it into lots of smaller quads).

Share this post


Link to post
Share on other sites
theres a hint to enable perpixel fog. might wanna see if GL_LINEAR or GL_EXP2 makes a differnece as well ive seen drivers that bum out in certain modes

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
Guys, 1° af all thanks for your advices ! I''ll try to compute fox perpixel instead of pervertex and if it doesn''t solve I''ll tessellate the quad !

Thanks again

Share this post


Link to post
Share on other sites
glHint(GL_FOG_HINT, GL_NICEST) will enable per pixel fog. The default(I think) is GL_DONT_CARE if you want to change it back.

Share this post


Link to post
Share on other sites
Well I enabled perpixel fox with glHint(GL_FOG_HINT, GL_NICEST)
but my impression is that this instruction it''s not enough when you deal with huge QUAD''s. I wonder how to deal with this !

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!