Splitting an Arbitrary Projection Matrix into 2 (or 4)
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.
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.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement