Skip to main content

3D transformation & Projection


Clearly understand the given scratch code for the standard perspective projection.
scratch code : Pres_Proj.cpp
  1. Complete the code to project the cube on the XY plane with the COP is at (0,0,-200)
  2. Use 2D translation to shift the projected cube so that the origin (0,0) moves to the centre of the screen [i.e., move the system to (WinWidth/2, WinHeight/2)]
  3. Use 3D translation to project the cube with COP is at (100,100,-200)

The following file contain the answer for the above questions.

While the file runs you can see the answer for 1.

If you press your left-mouse button you will see the answer for 2.

And by pressing right-mouse button you can view the answer for 3.


Enjoy..
#TRASHCODERS

Comments