Weirdness with far away objects... works on Win

Hey guys,

I’m having a strange problem with a small game application which I’ve ported from Windows to Mac OS X (Snow Leopard) using GLUT.

Basically, objects that are far away and that have planes/triangles which are relatively close to each other, start to intersect. See image below.

Close up, no problem:

On Windows, the application runs fine and there aren’t any intersection problems.

Has anyone encountered such issues before?

Thanks,

Leonard

Hey guys just FYI I resolved this. It was a depth buffer issue. I decreased the view volume to about what I needed and it worked after that.

Cheers,

Leonard

Are you sure you request a 24-bits depth buffer ? Use glutInitDisplayString to specify the minimum number of bits.
Otherwise you may get 16 or 24 depending on a lot of stuff.
And 16 is really imprecise.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.