Move/scale/rotate a cube:
This applet demonstrates using Z-Buffer
algorithm to perform hidden surface elimination.
Depend on the machine you are running this applet,
the movement may not be smooth, check the "too slow" option then.
Also Appletviewer is recommended to run this applet: appletviewer http://www.ks.uiuc.edu/~gzheng/java/cube.html
Download source code: cube.java
Instructions:
Move: click and drag mouse to move the cube, release mouse to finish;
Scale: click and drag mouse to scale the cube, release mouse to finish,
the scaling is relative to the center of the cube;
Rotate: click and drag mouse to rotate the cube, release mouse to
finish; Rotation is relative to the center of the cube.
[ Java Home
| Bezier
| Cube ]