Zfile is a PhotoRealistic RenderMan display driver which produces an output file containing depth (z) information. The file format is peculiar to PhotoRealistic RenderMan. The zfile format is accepted by the renderer and the txmake utility program as the depth image required to make a shadow texture map.
The zfile driver creates a file whose name is specified in the RiDisplay call.
Like most other image file display drivers, the zfile driver must receive image data in raster scan order, one scanline at a time. The display server buffers image data as necessary to reorder it into raster scan order before sending it to the zfile driver.
resolution 1024 × 1024
pixel aspect ratio no default
zfile name ri.zfile
The following messages can be produced by the zfile display driver. Each message will be preceded by the generic message number D00001.
DspyOpen_zfile: Only Z data, please
DspyOpen_zfile: Z must be 32-bit IEEE float.
DspyOpen_zfile: Can not open "name"
DspyOpen_zfile: File is already openDspySetW_zfile: Not open
DspySetW_zfile: Bad scanline window
If the zfile display driver is not already installed in your display server, it may be possible to add it as described in the PhotoRealistic RenderMan Display Driver Guide. The file /usr/local/prman/etc/dspyinst/dspy_zfile.o must exist in order to install this display driver. The installation guide tells you how to modify the display server Makefile in order to add a display driver. The relevant symbols to add for this driver are as follows:
Add -DDISPLAY_ZFILE to DRIVERDEFS.
Add dspy_zfile.o to DRIVEROBJS.
Add ${DLIB_ZFILE} to DRIVERLIBS. If DLIB_ZFILE is not already defined, add the line:
DLIB_ZFILE=