Depth problem?

nobody wrote on Saturday, May 26, 2007:

Hey people,

Can anyone help me out with this strange problem?
Take a look at these screenshots if you will:

this one shows the problem:
http://gouranga.info/Gouranga.jpg

this is how it should be:
http://gouranga.info/Gouranga2.jpg

If you walk through the world the world having
the problem, you will see that the water is drawn over the
the land and if you approach the land it will "sink" in the
water. So it seems like you could never reach the land. Also
notice the weird blue shadow effect on the land. I dont have a
clue what the reason for this could be, but i could be
something with the depth or so? Who can help me out?

It seems to render ok on ATI cards and not on NVIDIA and
Intel cards. The problem came up since we started using the
GLFW window.

Thanks in advance,

Dennis

nobody wrote on Saturday, May 26, 2007:

another screenshot:

http://gouranga.info/Gouranga3.png

elmindreda wrote on Saturday, May 26, 2007:

GLFW does not affect the result of your rendering in any way. It merely provides you with a context. Please check your rendering code.

kohaistyle wrote on Sunday, May 27, 2007:

Have you checked your Z-Buffer at window creation ?
Some modes are just behaving stangely on Nvidia, some other on ATI … try fiddling with it !

And are you sure you’re not playing with the glDepthFunc(); mode somewhere, that would distrub your rendering ?

nobody wrote on Sunday, May 27, 2007:

Hey this is what I set initialiy:

glEnable( GL_DEPTH_TEST );
glDepthFunc( GL_LESS );
glFrontFace( GL_CCW );
glShadeModel( GL_SMOOTH );
glCullFace( GL_BACK );
glEnable( GL_CULL_FACE );

Somethimes u set gldepthmask( false ) and back to true
and that doesnt seem to be the problem…

elmindreda wrote on Sunday, May 27, 2007:

Sorry, no, we never call glDepthMask in GLFW.