[net.sources] Common questions about "graphics source in C"

ken@turtleva.UUCP (Ken Turkowski) (12/28/83)

To a large extent, the C graphics source sent out recently is
independent of hardware.  Most of the hardware dependencies are
concentrated in the "drivers" directory, in the files bb_util.c (for a
32-bit buffer), fbutil.c (for an "intermediate" buffer), and aed_util.c
(for an 8-bit buffer).  Other slight hardware dependencies can be found
in the "hsalgs" directory, in scn_assmblr.c and hueload.c.

The meat of the hidden surface code is in the hsalgs directory.
scn_assmblr.c is the dispatcher, i.e. one starts out by invoking
"scn_assmblr".  Once in that, try "@ ../data/banana.scn", followed by
"display_on aed", for a pseudo_color display, to get a picture of two
bananas.  You will have to modify the filenames in the "data"
subdirectory tree to reflect the actual locations of the object
descriptors, pretty much confined to *.scn and *.obj files.  The detail
of the objects is described in *.std files, which must be converted to
binary *.det files with the make_bin program; alternatively, Frank Crow
suggests converting the programs that read in detail files so that they
accept ASCII instead of binary files.  For further information, see the
"man" directory, as well as Crow's "A More Flexible Image Generation
Environment" in the July 1982 SIGGRAPH proceedings (Boston), pp. 9-18.

The ultimate test is to display xport_data.scn.

			Ken Turkowski
		    CADLINC, Palo Alto
		{decwrl,amd70}!turtlevax!ken