Jump to content
  • Advertisement
Sign in to follow this  
DrGUI

Splitting an Arbitrary Projection Matrix into 2 (or 4)

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

How do I split an arbitrary projection matrix into 2 (or 4) halfs (quarters) so I could have two views? I am now doing my GCSEs and have not covered matrices in lessons, although I have learnt about them myself to make games. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
I am a bit confused by your post, but it sounds like what you want is two projection matrices and two viewports. The whole viewport thing is really API dependent, and the two projection matrices are just like having one matrix, but for reach view. Want four views? Four matrices.

Share this post


Link to post
Share on other sites
yeah you shouldnt really be splitting any matrices.

you should just set up multiple cameras, and derive their seperate projection matrices based on their own properties such as frustrum or whatever you use to generate your camera class.

Share this post


Link to post
Share on other sites
Actually I am trying to make a high-resolution screen-shot system. I saw an article on this and it split up the projection matrix using a FOV projection, took the separate screen-shots then pieced them together. I want to know how to do this with any projection matrix.
Thanks

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!