Archived

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

michel

Terrain out of clipping plane

Recommended Posts

michel    122
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
Bagel Man    122
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
LockePick    707
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
Thraddash    157
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
michel    122
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   
Guest Anonymous Poster
good advice : learn, how to use OpenGL... first...

Share this post


Link to post
Share on other sites