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.

Output depth values are the camera-space z values. Depth values bypass all the above<br />

steps except for the imager and quantization. <strong>The</strong> depth quantizer has an independent set<br />

of parameters from those of the color quantizer.<br />

RiPixelVariance ( RtFloat variation )<br />

<strong>The</strong> color of a pixel computed by the rendering program is an estimate of the true<br />

pixel value: the convolution of the continuous image with the filter specified by<br />

RiPixelFilter. This routine sets the upper bound on the acceptable estimated variance<br />

of the pixel values from the true pixel values.<br />

RIB BINDING<br />

PixelVariance variation<br />

EXAMPLE<br />

RiPixelVariance (.01);<br />

SEE ALSO<br />

RiPixelFilter, RiPixelSamples<br />

RiPixelSamples ( RtFloat xsamples, RtFloat ysamples )<br />

Set the effective hider sampling rate in the horizontal and vertical directions. <strong>The</strong><br />

effective number of samples per pixel is xsamples*ysamples. If an analytic hidden<br />

surface calculation is being done, the effective sampling rate is RI INFINITY. Sampling<br />

rates less than 1 are clamped to 1.<br />

RIB BINDING<br />

PixelSamples xsamples ysamples<br />

EXAMPLE<br />

PixelSamples 2 2<br />

SEE ALSO<br />

RiPixelFilter, RiPixelVariance<br />

RiPixelFilter ( RtFilterFunc filterfunc, RtFloat xwidth, RtFloat ywidth )<br />

Antialiasing is performed by filtering the geometry (or supersampling) and then sampling<br />

at pixel locations. <strong>The</strong> filterfunc controls the type of filter, while xwidth and<br />

ywidth specify the width of the filter in pixels. A value of 1 indicates that the support<br />

of the filter is one pixel. <strong>RenderMan</strong> supports nonrecursive, linear shift-invariant filters.<br />

<strong>The</strong> type of the filter is set by passing a reference to a function that returns a<br />

filter kernel value; i.e.,<br />

filterkernelvalue = (*filterfunc)( x, y, xwidth, ywidth );<br />

30

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

Saved successfully!

Ooh no, something went wrong!