Offset Vanishing Point?

I would like to lower the vanishing point without raising the camera or pointing it up.

I scraped the internet, and found these:

Camera Projection Matrix: Unity - Scripting API: Camera.projectionMatrix

  • Not really sure how to do the correct math. It works, but just eyeing it.
  • I would like to have the game scalable to different ratios & screen sizes. Stretches view if ratio changes. Not 100% required, could change values per target screen size.

OffsetVanishingPoint.js: http://wiki.unity3d.com/index.php?title=OffsetVanishingPoint

  • Is set up for a Ken Burns camera pan
  • I probably just don’t understand what values to change to only lower the vanishing point.

If anyone has experience with that, feel free to chime in. Otherwise, maybe those links will help someone some day. I’ll post if I learn how to do it correctly.

I wrote a little script for myself that let me take the camera’s projection matrix and modify each element individually. You might try writing something similar for yourself so you can understand what each number does.

1 Like

Yeah it will take some homework to understand what’s going on under the hood. For supporting different screen sizes, the math is going to be really important. At least there’s an option.