ZDISP(6D) ZDISP(6D)
NAME
zdisp - A simple fast display program for z-buffered gouraud
shaded objects
SYNOPSIS
zdisp <objectfile>
DESCRIPTION
zdisp displays a rotating 3D gouraud shaded model with hid-
den surfaces removed. All the lighting is calculated prior
to the display and does not change with orientation. The
hidden surface is performed by the 24 bit hardware z-buffer.
The model may be manipulated 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.
A menu called by the right mouse button offers background
choices: blue, stars, or box. For fastest display, use the
blue background, for the nicest, use the stars.
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 scal-
ing 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 in-
dex, RG and B components of the color, and its lighting
characteristics - proportion of ambient, diffuse, and specu-
lar 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, normal vectors, and lighting variables at
each sampled point on the patch. Each line has the follow-
ing 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)
robot (built of 118 polygons)
WINDOW MANAGER
This program only runs in the window manager.
Page 1 (last mod. 8/20/87)
ZDISP(6D) ZDISP(6D)
AUTHOR
Eric Brechner
ORIGIN
Silicon Graphics, Inc.
Page 2 (last mod. 8/20/87)