Archived

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

michel

Terrain out of clipping plane

Recommended Posts

Hey peeps, I have this problem: i am drawing a terrain but i looks like it is getting chopped of at the end by a black plane. What is this and how can i solve this? A link to a solution would be great Thnx, michel

Share this post


Link to post
Share on other sites
You set the far clipping plane when you set your projection matrix. Assuming you use gluPerspective:


gluPerspective(fov, aspect, zNear, zFar);

Increasing the zFar value will push that black plane you're seeing back.


[edited by - Thraddash on March 19, 2003 8:06:40 PM]

Share this post


Link to post
Share on other sites
Where should I call this function?
Before what and after what?
Or could i just skip into the projection matrix then do this function and skip back to model matrix.

Share this post


Link to post
Share on other sites