Hello,
I am trying to impelement a two-point perspective projection and don’t really know how to fill custom matrix for such a case.
The problem is as follows.
- My camera is placed at camZ offset and camY height and looking at the origin point, which in turn the rotation center of the zx surface about Y axis.
- All objects are disposed on this zx surface.
- I need to create two-point perspective in order to eliminate any distortion along Y axis. In this case lines parallel to Y axis will remain parallel.
I could not find any code examples written in openGL.
Does anyone know how to do it?
Thank you in advance
alex