How to realize two point perspective such as formit?every vertical line parallel
projection matrix?
cameracontrol?
THANKS!!!
The projection matrix and its inverse matrix are managed within the camera. If you need a custom projection, the best approach might be to define a new type of camera with updateProjectionMatrix
method that prepares the matrix the way you need. Of course, you need some Math to get the correct values in the matrix.
Look for offset properties. You need to skew the perspective matrix.
https://threejs.org/docs/#api/en/cameras/PerspectiveCamera.setViewOffset
THANKS
but i dont find 2 point perspective ProjectionMatrix from online
terrible
this property can skew the perspective matrix?Can you show me some demo?
THANKS!
Here are the canonical matrices of 1-, 2- and 3-point perspectives:
https://people.eecs.berkeley.edu/~barsky/perspective.html
But you still need some math, in order to adjust the values, based on the actual frustum size.