Jump to content
  • Advertisement

Archived

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

fluky

strange walls

This topic is 5318 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I have just started opengl programming, but this problem drives me crazy! I have made a 3D maze,or at least tried to. The problem is this: it seems like if some polygons are drawn before others, and therefore are shown even if they are behind other polygons in space. If i move the view to the other side, everything is fine and dandy. I have made screenshots of the situation, and the source code availiable here: http://www.stud.ntnu.no/~larsgard/?side=opengl

Share this post


Link to post
Share on other sites
Advertisement
You have the near clipping plane set to -1, are you sure that is a valid setting? It is possible that the only valid settings are > 0. I know that in directx setting the near plane to 0 does not work (all the z values end up being the same). Not sure what a negative value would do to it though, and I have no particualr knowledge of opengl.

Curious that it works from the first persepective though.

[edited by - JeffF on February 27, 2004 1:03:20 PM]

[edited by - JeffF on February 27, 2004 1:04:45 PM]

Share this post


Link to post
Share on other sites
Try calling the Init after the display window has been created and initialised with openGL!

I struggled with this sort of problem myself!

Paul.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!