Hi
I’m having problems when tryng to use both of this functions on my rendering routine.
Only with glupespective works :
glMatrixMode(GL_PROJECTION);
gluPerspective( 67.f, float( 800 ) / float( 600 ), 1.f, 10000.f );
render_world();
but, if i use this :
glMatrixMode(GL_PROJECTION);
gluPerspective( 67.f, float( 800 ) / float( 600 ), 1.f, 10000.f );
glEnable(GL_FOG);
render_world();
glDisable(GL_FOG);
not working… the fog is incorrect , and again if i remove the 2 first lines , glmatrixmode and gluperspective my fog looks ok…
Can anyone see the problem here ?
thanks,
Bruno