Loading Objects

pfdLoadObject(filename) (defined in <Performer/pfdu.h> and libpfdu) loads objects in several different standard formats. It returns a pointer to a pfNode, which can be added to a scene graph.

The object format is determined by the extension of the file name.

Supported formats include:

pfFilePath(path) defines a search path for the loaders to use when looking for data files. path is a list of directories similar to the PATH environment variable. e.g.:

You can also define the file path from the shell, using the PFPATH environment variable:
	setenv PFPATH .:/usr/share/data/models:/netusr/disk3/evl/pape/data/objects

Previous page    Table of contents    Next page

Last modified 18 February 1997.

Dave Pape, pape@evl.uic.edu