Jump to content
  • Advertisement
Sign in to follow this  
GaryNas

Extending to infinity

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

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
Advertisement
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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!