This applet requires a browser which can run applets developed with the
JDK 1.1.5 such as
Netscape 4.5,
appletviewer or
HotJava.
Instructions on how to use this applet are below. Also, this applet will
take several seconds to initialize itself before the initial image is
displayed, so please be patient.
This is an applet which displays a scene rendered using a Phong specular
illumination model and your choice of shading models: None, Flat, Gouraud,
or Phong. None is just that: no shading model is used and the scene is
displayed using the colors it was defined with. Flat shading is where the
lighting equation is evaluated once per rendered polygon. Gouraud shading
is where the lighting equation is evaluated once per vertex of each
rendered polygon and then the computed intensity is linearly interpolated
across the polygon. Phong shading is where the normal vectors are
interpolated across the face of the polygon and the lighting equation is
evaluated once per pixel drawn.
Initially, the scene is displayed flat-shaded. To change the shader
used, select the appropriate radio button in the group to the right of
the image. To switch to a wireframe display (much faster but not as pretty)
select the "Wireframe" toggle. While in wireframe mode polygon and vertex
normals can be displayed by selecting the "Show Normals" toggle. Backface
culling can be controlled via the option menu. The option menu has three
items: Cull, which will cause the back-facing polygons to be removed; Keep,
or don't remove any polygons; and Flip, which will remove the front-facing
polygons.
J. Scott Hofmann
Return to my home page.
Last modified: Thu Apr 14 12:15:31 EST 1998