triangles not drawing with certain distances /views

Started by
1 comment, last by NickKirt 20 years ago
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
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??

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

This topic is closed to new replies.

Advertisement