Strange problems always happen to me ...
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 !
I guess that happens because fog is computed per-vertex, so I suggest you tesselate that quad (split it into lots of smaller quads).
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
http://members.xoom.com/myBollux
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
Thanks again
how to enable per pixel fog becuase even im stuck with HUGE quads. And the 3 fog modes dont seem to help.
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.
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 !
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 !
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement