Downloading of applets could be slow. Be patient...
 

Project 3 Demo page


Orthographic Projection:

(1) Here is the implementation for Matrix3D.java.

(2) Here is the test for Rotation operation.

(3) Here is the test for Translation operation.

(4) Here is the test for Scaling operation.

(5) Here is the test for Shearing operation.


Perspective Projection:

(1) Here is the implementation for Matrix3D.java.

(2) Here is the test for Rotation operation.

(3) Here is the test for Translation operation.

(4) Here is the test for Scaling operation.

(5) Here is the test for Shearing operation.


Source Codes:

(1)There is in fact only one version of Matrix3D.java, where orthographic projection and perspective projection, along with other matrix manipulations are coded.

(2) For RotationTest.java(orthographic, perspective), TranslationTest.java(orthographic, perspective), ScaleTest.java(orthographic, perspective), ShearTest.java(orthographic, perspective), they all have two versions The differences betweent the two versions are (1)the choice of different projections before view.lookAt() transformation, and (2)different event handlers.