Ehsan Kamrani
01-02-2006, 12:34 AM
I have enabled the fog in my program with the follwoing code:
glEnable( GL_FOG );
glFogfv( GL_FOG_COLOR, fogColor );
glFogi( GL_FOG_MODE, GL_EXP2 );
glFogf( GL_FOG_DENSITY, 0.007 );
This code has no problem in my Geforce card. But in another system with ATI Radeon 7000 display driver it has some problems. I think that it's better that i show 2 pictures to you. here's the first picture rendered with the ATI radeon 7000 card:
http://zehneziba.5gigs.com/download/fog2.JPG
And here's another picture when i rotate the camera:
http://zehneziba.5gigs.com/download/fog1.JPG
the problem is in the sky. Sometimes the fog does not cover th sky. But in my geforce card, there's no such a problem.
Another question is about the fog and blending. I have used from the blending to draw the river in this demo. When i add the fog color to ny program, i see a bad result in the color of the river--As you see in the picture.
-Ehsan-
glEnable( GL_FOG );
glFogfv( GL_FOG_COLOR, fogColor );
glFogi( GL_FOG_MODE, GL_EXP2 );
glFogf( GL_FOG_DENSITY, 0.007 );
This code has no problem in my Geforce card. But in another system with ATI Radeon 7000 display driver it has some problems. I think that it's better that i show 2 pictures to you. here's the first picture rendered with the ATI radeon 7000 card:
http://zehneziba.5gigs.com/download/fog2.JPG
And here's another picture when i rotate the camera:
http://zehneziba.5gigs.com/download/fog1.JPG
the problem is in the sky. Sometimes the fog does not cover th sky. But in my geforce card, there's no such a problem.
Another question is about the fog and blending. I have used from the blending to draw the river in this demo. When i add the fog color to ny program, i see a bad result in the color of the river--As you see in the picture.
-Ehsan-