- Home /
is it possible to set the view port rect at both ends
so I am thinking about a camera that is in-between orthographic and perspective. an orthographic view that would be wider at the far end so objects would get thinner the further away you are.
so the camera view would only be wider not higher, something in-between ortho and perspective... is there a simple way to achieve this ?
so I made this diagram to explain it a bit better. the third one is what I am trying to achieve, is this possible in unity ?
is there maybe a better way to achieve this then to tinker with the camera projection, any ideas ?
Answer by HappyMoo · Dec 31, 2013 at 02:12 PM
You can do this and worse ;) by manipulating the projection matrix.
https://docs.unity3d.com/Documentation/ScriptReference/Camera-projectionMatrix.html
nice! this looks promising, is there any better documentation explaining the syntax better ?
This looks like an article that the mathematically inclined or the persistently deter$$anonymous$$ed can use to figure this out: http://www.codeguru.com/cpp/misc/misc/graphics/article.php/c10123/Deriving-Projection-$$anonymous$$atrices.htm
Also another projection$$anonymous$$atrix manipulation tha may be interesting: http://wiki.unity3d.com/index.php?title=OffsetVanishingPoint
Your answer
Follow this Question
Related Questions
Ortho camera viewport setup? 3 Answers
Prevent objects from disappearing when zooming in on an orthographic scene? 1 Answer
Center Object in Viewport 1 Answer
Why Is My Orthographic Camera Not Rendering at the Full Resolution? 1 Answer
How to resize a camera's orthoSize for an object to fit inside its rect viewport? 1 Answer