- Home /
Can you create a camera perspective that doesn't change with viewing angle?
Is it possible to create a custom camera projection that gives an overhead perspective view but doesn't change based on viewing angle?
To explain better. In orthographic projection if you had a bunch of cubes facing in the same direction so that from the camera view they all looked like squares. Then if you switch to perspective you would see the sides of the cubes that are further to the edge of the view etc.
But what about a projection where all the cubes have all their sides (except the back) equally visible regardless of their position? So that they would all look like identical 3d trapezoids viewed directly from above. Hopefully the picture makes it clear.
I'm still trying to wrap my head around how the camera projections even work. But I'd just like to know if this sort of thing is even feasible? Or if its something that's already been done and theres a name for it?
Plus any pointers to tutorials that discuss relevant subject matter would be appreciated. Thanks.
Answer by Bunny83 · Aug 23, 2019 at 12:28 AM
No, this is not possible and not a real perspective since you have a local perspective for each of your cubes. If you have trouble understanding perspective in general you may look up some materials that covers the basics(perspective(geometry), perspective(graphical)). In essence since all your cubes are aligned in parallel the sides that goes into the distance are actually parallel as well. How would you draw any reasonable perspective lines or vanishing points into your wanted image? Each of your cube seems to have it's own vanishing point. So your image does not represent a single view point. So this is not possible with a single camera since each object needs it's own point of view.
You haven't said what you need this perspective for, so it's hard to recommend any workarounds or alternatives. It you want to know more about how perspective projection works in 3d games, you might want to read through my Matrix crash course. I have a slightly more readable mirror version on github. If you have general issues understanding matrices, vectors and transformations, I can highly recommend the 3blue1brown series on linear algebra.
you should not use cubes. you can use frustum.
,you should not use cube. you may use frustum.