Tiff is a PhotoRealistic RenderMan display driver which produces an output file in Tagged Image File Format (TIFF). It can be used to store R, RGB, and RGBA images in 8-, 16-, or floating point 32-bit-per-component resolutions. If a Z channel is specified, it is written to a separate Pixar format Z file. The TIFF file created employs LZW compression; 8, 16, or 32 bits per sample; one, three, or four samples per pixel; and a planar contiguous configuration.
The tiff driver creates a file whose name is specified in the RiDisplay call.
Like most other image file display drivers, the tiff 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 tiff driver.
resolution 512 × 384
pixel aspect ratio no default
TIFF file name ri.tiff
There are two variants of the tiff driver available, the internal driver and the external driver. The selection of which driver to use is controlled by the configuration file rendermn.ini described in the User's Manual and the rendermn.ini(5) page. Briefly, a configuration entry of the form:
/display/tiff internal
will cause the internal driver to be used. The internal driver will use more virtual memory and less disk space than the external driver, and should be faster.
The tiff driver also has special configuration options to control the resolution information written into the output file as well as the compression used for output. These may be set from the RiDisplay parameter list or through the configuration file.
The TIFF compression scheme can be controlled by adding the parameter "compression" to the RiDisplay parameter list. The parameter takes a string value which should be one of "lzw", "packbits", or "none". The default value for the compression scheme may be set by adding the following line
/display/tiff/compression compression-scheme
where compression-scheme is is one of the above strings. If no compression scheme is specified, LZW compression is used.
The TIFF resolution unit can be controlled by adding the parameter "resolutionunit" to the RiDisplay parameter list. The parameter takes a string value which should be one of "inches", "centimeters", or "none". The default value for the resolution unit may be set by adding the following line
/display/tiff/resolutionunitunit
where unit is is one of the above strings. If no units are specified the default is "none".
If the TIFF resolution unit has been defined as above, the TIFF resolution values can be controlled by adding the parameter "resolution" to the RiDisplay parameter list. The parameter takes a value that is an array of two floats specifying the resolution in the x and y directions. The default value for the resolution values may be set by adding the following line
/display/tiff/resolutionunit xresolution,yresolution
where xresolution, yresolution are floating-point numbers separated by a single comma. There should be no spaces between the comma and xresolution. If no values are specified, values of 100.0 are used, except in the case where no units are specified, in which case values of 1.0 are used.
The default image size and pixel aspect ratio are set through the configuration file as follows:
/display/tiff/xres xresolution /display/tiff/yres yresolution /display/tiff/par pixelaspectratio
The following messages can be produced by the tiff display driver. Each message will be preceded by the generic message number D00001.
rendermn.ini(5) tiffdiff(1) PhotoRealistic RenderMan User's Manual
The tiff driver doesn't handle Z data correctly and it doesn't check that it is being asked to do so.
The tiff driver currently doesn't handle R data (single channel data).