This notebook lists the steps that are required for parallel and perspective projections in computer graphics
Farhad Kamangar 2017
In order to be able to display the objects in the real world to the screen, we need to define a process that maps from 3-dimensional coordinate system to a 2-dimensional plane. This process is called projection.
To define a projection we need to define a projection plane.
Wiki: A parallel projection is a projection of an object in three-dimensional space onto a fixed plane, known as the projection plane or image plane, where the rays, known as lines of sight or projection lines, are parallel to each other.
Given the viewing parameters for a parallel projection, i.e, VRP, VPN, VUP, PRP, umin, umax, vmin, vmax, nmin, nmax, find the sequence of transformations which will transform this viewing volume into a standard parallel view volume which is bounded by the planes x=1 ; x=-1 ; y=1 ; y=-1 ; z=0 ; z=1
Note: after the step 2 the vectors VPN and VUP vectors will change. For convenience they are called VPN' and VUP'. After the Step 3, the vectors VPN' and VUP' will change again and they are called VPN'' and VUP''
Encyclopedia definition: A method of projection in which a three-dimensional object can be represented by projecting points upon a picture plane using straight lines converging at a fixed point, representing the eye of the viewer.
Given the viewing parameters for a perspective projection, i.e, VRP, VPN, VUP, PRP, umin, umax, vmin, vmax, nmin, nmax, find the sequence of transformations which will transform this viewing volume into a standard perspective view volume which is bounded by the planes x=z ; x=-z ; y=z ; y=-z ; z=1
Note The first 4 steps of the parallel and perspective projections are exactly the same.