Sign in to follow this  
GaryNas

Extending to infinity

Recommended Posts

GaryNas    134
I was reading about shadow volumes on Wikipedia and there was something I don't quite understand. Near the end of the article in the "Optimization" section the article says: "accompanied by a viewing frustum that has a far clipping plane that extends to infinity". How can I have a far clip plane that extends to infinity? Does this just mean use a really really far clip plane and pretend it's infinity?

Share this post


Link to post
Share on other sites
Eddycharly    437
that just means the far plane is not used for cliping.
you can do this by modifying the projection matrix (playing with homogeneous coordinates).
more infos here : http://www.terathon.com/gdc07_lengyel.ppt

Share this post


Link to post
Share on other sites
SnotBob    202
It's very easy, grab the standard projection matrix formula and compute it's limit when the distance to the far plane approaches infinity. It's usually not a good idea to do this though, because it greatly reduces your effective z-buffer resolution.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this