The Java Sphere is written in the Java language.
It uses a rotation matrix to calculate new vertices for all faces as the mouse moves.
The shading of the sphere uses the vector normal of each face compared to a vector between the viewers eye and the center of the sphere.
Faces pointing away from the viewer are not painted.
Flickering has been eliminated by using double buffering.
DOWNLOAD SOURCE FILES
(sphere.zip)
|