SDISP(6D) SDISP(6D)
NAME
sdisp - Extending zdisp by adding a movable light source to
zdisp
SYNOPSIS
sdisp <objectfile>
DESCRIPTION
sdisp displays a rotating 3D gouraud shaded model with
hidden surfaces removed. A movable light source is re-
calculated with each frame. The hidden surface is performed
by the 24 bit hardware z-buffer.
You manipulate the model by holding down the left mouse
button and dragging it across the screen. The program goes
into an automatic rotation cycle when you release the left
mouse button.
By holding down the right mouse button, you get a menu for
the background. Your choices are blue, stars, or a box.
For the fastest display use the blue background, for the
nicest display, choose the stars.
You can move the light source by holding down the middle
mouse button and dragging the mouse.
INPUT FILE FORMAT
The input file is normally created by the conman renderer.
The format is as follows:
First is a floating point number denoting the overall
scaling factor. Next comes a list of separate surface
patches. Each patch description starts with a line
containing the name of the patch. The information includes
the color index, RG and B components of the color, and its
lighting characteristics - proportion of ambient, diffuse,
and specular components.
The next line contains two integers representing the number
of rows and columns in the patch. Following this are n
lines (n = rows*columns) containing the numbers that
describe location, vector normal, and lighting variables at
each sampled point on the patch. Each line has the
following eight values for its corresponding point: x, y,
and z coordinates in model space, the x, y, and z values for
the vector normal to the patch at the point, and diffuse and
specular shading values ranging from 0.0 to 1.0. You can
have as many surface patches as you like.
The available object files include:
enter (spaceship Enterprise built of 290 polygons)
martini (glass built of 1696 polygons)
Page 1 (last mod. 8/20/87)
SDISP(6D) SDISP(6D)
robot (built of 118 polygons)
without specular highlights:
enter.nospec
martini.nospec
robot.nospec
WINDOW MANAGER
This program only runs in the window manager.
AUTHOR
Eric Brechner
ORIGIN
Silicon Graphics, Inc.
Page 2 (last mod. 8/20/87)