Archived

This topic is now archived and is closed to further replies.

Oktan

Crossing polygons

Recommended Posts

I have a problem with crossing polygons. My OpenGL doesn''t show it right. They looks like broken. Why is it happened? How may I resolve this problem?

Share this post


Link to post
Share on other sites
Not sure what you mean, but to handle crossing/overlapping polygons you must use glEnable(GL_DEPTH_TEST);

--
New feature - Windows users, press ALT-F4 to launch the IQ test.

Share this post


Link to post
Share on other sites
Not quite sure what he means either, but I have a similar (possibly same?) problem also.

Say I have two cubes which intersect one-another...
Where they meet, it err (hard to explain) sometimes draws strange artifacts where they meet.

Depthtesting is on, alpha off... Just loox screwy

Share this post


Link to post
Share on other sites
If depth testing is enabled and set up correctly, then it''s probably caused by insufficient precision in the depth buffer. Usually that happens because of a near Z plane which is too close to 0.

Share this post


Link to post
Share on other sites
Thanks 4 da replies Kippesoep and wolfman8k, It must''ve been ''cause my far plane was set to 10000, hehe, silly me!

Again, thanks

Share this post


Link to post
Share on other sites