Jump to content
  • Advertisement
Sign in to follow this  
staticVoid2

Constructing frustum split from projection matrix

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

hi there, I have been trying to split a view frustum in half along its z-axis (view direction) by un-projecting corner points from normalized device space into world space.

i.e. the set of points { (-1,-1,0), (1,-1,0), (1,1,0), (-1,1,0) }


But have just realized that the relationship between the z values is non-linear so you can't un-project them in this way. Is there any other way to do this just using the projection matrix rather than having to store fov angles etc. for the frustum?

Share this post


Link to post
Share on other sites
Advertisement
Solved.

I've just un-projected the 8 corner points of the frustum and linearly interpolated between their 4 adjoining edges (a much simpler solution).

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!