Amn
August 27th, 2003, 08:57 AM
Hi all!
I know how to project 3d models to a plane using perspective projection, but only when the camera (projection) is aligned with the coordinate system (read projection center at (0, 0, 0), optical axis at the Z axis).
screenX = x * f / z;
screenY = y * f / z;
I need to implement perspective projection given that the projection system is at arbitary point in space, with arbitrary azimuth, tilt etc. I.e. camera may be positioned freely in space.
Any documentation on Internet about this ? Or maybe some fast hint from someone ?
Thanks !
I know how to project 3d models to a plane using perspective projection, but only when the camera (projection) is aligned with the coordinate system (read projection center at (0, 0, 0), optical axis at the Z axis).
screenX = x * f / z;
screenY = y * f / z;
I need to implement perspective projection given that the projection system is at arbitary point in space, with arbitrary azimuth, tilt etc. I.e. camera may be positioned freely in space.
Any documentation on Internet about this ? Or maybe some fast hint from someone ?
Thanks !