• Advertisement

Archived

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

Terrain out of clipping plane

This topic is 5453 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

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
Advertisement
My car won''t start. What''s wrong with it?

Anyway, just a shot in the dark: if your background is black, you may just be seeing the far clipping plane.

Share this post


Link to post
Share on other sites
Yes.. sounds like the far clipping plane.. either make it larger or add a skybox..

Share this post


Link to post
Share on other sites
Use distance fog, and have it match the screen's ClearColor();
That way you can make it blend softly into the clipping plane.

[edited by - LockePick on March 18, 2003 9:40:15 PM]

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
Guest Anonymous Poster
good advice : learn, how to use OpenGL... first...

Share this post


Link to post
Share on other sites

  • Advertisement