Jump to content
  • Advertisement

Archived

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

NickKirt

triangles not drawing with certain distances /views

This topic is 5331 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 all, I''ve got a heightmap that draws a grey colour with a skybox around it(of space with some stars). Problem is: when i move around with mouse+keyboard some triangles from the heightmap are not drawn. This only happens at greater distances because when i get closer to the heightmap it is fine. Something to do with filtering???? any help appreciated Nick

Share this post


Link to post
Share on other sites
Advertisement
well i sorted out the problem but i don''t really understand why this should be a problem.

The problem was that:

gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,10000.0f);

the closest clipping parameter was set to 0.1f, i set it to 4.0f and i don''t have a problem. But why should close plane clipping give me problems for large distances??

Share this post


Link to post
Share on other sites
OpenGL creates a nice detail curve between the near and far clipping depth (so the detail will be greater at a small distance), this curve is calculated in a strange way, anyway, when having a near value of 0.5 i never had any problems. The reason you had these problems was probably that the detail was so low at a great distance, the triangles occasionally got clipped away.

WWW.TREEPENGUIN.TK

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!