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.

object foo2 will be drawn when the current detail is above 20 (thus it is the high detail representation).<br />

If the current detail is between 10 and 20, the rendering program will provide a<br />

smooth transition between the low and high detail representations.<br />

RiDetail ( RtBound bound )<br />

Set the current bound to bound. <strong>The</strong> bounding box bound is specified in the current coordinate<br />

system. <strong>The</strong> current detail is set to the area of this bounding box as projected<br />

into the raster coordinate system, times the relative detail. Before computing the raster<br />

area, the bounding box is clipped to the near clipping plane but not to the edges of<br />

the display or the far clipping plane. <strong>The</strong> raster area outside the field of view is computed<br />

so that if the camera zooms in on an object the detail will increase smoothly.<br />

Detail is expressed in raster coordinates so that increasing the resolution of the output<br />

image will increase the detail.<br />

RIB BINDING<br />

Detail minx maxx miny maxy minz maxz<br />

Detail [minx maxx miny maxy minz maxz]<br />

EXAMPLE<br />

RtBound box = { 10.0, 20.0, 42.0, 69.0, 0.0, 1.0 };<br />

RiDetail (box);<br />

SEE ALSO<br />

RiBound, RiDetailRange, RiRelativeDetail<br />

RiDetailRange ( RtFloat minvisible, RtFloat lowertransition,<br />

RtFloat uppertransition, RtFloat maxvisible )<br />

Set the current detail range. Primitives are never drawn if the current detail is less than<br />

minvisible or greater than maxvisible. Primitives are always drawn if the current detail<br />

is between lowertransition and uppertransition. All these numbers should be nonnegative<br />

and satisfy the following ordering:<br />

RIB BINDING<br />

minvisible ≤ lowertransition ≤ uppertransition ≤ maxvisible.<br />

DetailRange minvisible lowertransition uppertransition maxvisible<br />

DetailRange [minvisible lowertransition uppertransition maxvisible]<br />

EXAMPLE<br />

DetailRange [0 0 10 20]<br />

SEE ALSO<br />

RiDetail, RiRelativeDetail<br />

52

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

Saved successfully!

Ooh no, something went wrong!