Wendy's Project 2
Wendy's Project 3
Directions:
Click on the choice buttons to choose a projection type and a transformation type.
When changing the projection type, the image will return to the original image.
The transformations work as follows:
1) Scale X: This will scale the picture in the x direction by as much as the cursor is dragged in the x-direction divided by 20.
2) Scale Y: This will scale the picture in the y direction by as much as the cursor is dragged in the y-direction divided by 20.
3) Scale Z: This will scale the picture in the z direction by the average of the distance the cursor is dragged in the x-direction and y-direction divided by 20.
4) Translate: This translates the image in the x direction by the distance in the x direction the cursor is moved divided by 10, in the y direction by the distance in the y direction the cursor is moved divided by 10, and in the z direction by the average of the x and y directions divided by 10.
5) Rotate: Works as it did in the test applet supplied in class.
6) Skew: Implemented the method Shear from the notes. (kxy = amount cursor has moved in the x direction divided by 10, kxz = amount the cursor has moved in the y direction divided by 10, and kyz = average amount the cursor has moved in the x and y directions divided by 10).
Note: Changing the parameters of the eye vector and lookat vector were tested by modifications in the code and cannot be done through the applet above.
Source Code:
Matrix3D.java
Raster.java
Point3D.java
TestMatrix.java