26.01.2015 Views

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Renderers may additionally produce “images” consisting of arbitrary data, by using a<br />

mode that is the name of a known geometric quantity or the name of a shader output<br />

variable. Note also that multiple display channels can be specified, by prepending<br />

the + character to the name. For example,<br />

RiDisplay (”out.tif,” ”file,” ”rgba”, RI NULL);<br />

RiDisplay (”+normal.tif,” ”file,” ”N”, RI NULL);<br />

will produce a four-channel image consisting of the filtered color and alpha in out.tif,<br />

and also a second three-channel image file normal.tif consisting of the surface normal<br />

of the nearest surface behind each pixel. (This would, of course, only be useful if<br />

RiQuantize were instructed to output floating point data or otherwise scale the data.)<br />

Display options or device-dependent display modes or functions may be set using<br />

the parameterlist. One such option is required: ”origin”, which takes an array of two<br />

RtInts, sets the x and y position of the upper left hand corner of the image in the<br />

display’s coordinate system; by default the origin is set to (0,0). <strong>The</strong> default display<br />

device is renderer implementation-specific.<br />

RIB BINDING<br />

Display name type mode ...parameterlist...<br />

EXAMPLE<br />

RtInt origin[2] = { 10, 10 };<br />

RiDisplay (”pixar0”, ”framebuffer”, ”rgba”, ”origin”, (RtPointer)origin, RI NULL);<br />

SEE ALSO<br />

RiFormat, RiQuantize<br />

4.1.3 Additional options<br />

Option Type Default Description<br />

Hider token ”hidden” <strong>The</strong> type of hidden surface algorithm that<br />

is performed.<br />

Color Samples integer 3 Number of color components in colors.<br />

<strong>The</strong> default is 3 for RGB.<br />

Relative Detail float 1.0 A multiplicative factor that can be used to<br />

increase or decrease the effective level of<br />

detail used to render an object.<br />

Table 4.4: Additional Options<br />

<strong>The</strong> hider type and parameters control the hidden-surface algorithm.<br />

RiHider ( RtToken type, ...parameterlist...)<br />

34

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!