Sign in to follow this  

Splitting an Arbitrary Projection Matrix into 2 (or 4)

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

This topic is 4680 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.

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