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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RiWorldBegin ();<br />

...<br />

RiColor (...);<br />

RiTranslate (...);<br />

RiObjectInstance ( BigUglyObject );<br />

...<br />

RiWorldEnd ();<br />

RiFrameEnd ();<br />

RiFrameBegin (1);<br />

/* Camera commands */<br />

RiProjection (RI PERSPECTIVE,...);<br />

RiRotate (...);<br />

RiWorldBegin ();<br />

...<br />

RiColor (...);<br />

RiTranslate (...);<br />

RiObjectInstance ( BigUglyObject );<br />

...<br />

RiWorldEnd ();<br />

RiFrameEnd ();<br />

...<br />

RiEnd ();<br />

<strong>The</strong> following begin-end pairs also place the interface into special modes.<br />

RiSolidBegin ()<br />

RiSolidEnd ()<br />

RiMotionBegin ()<br />

RiMotionEnd ()<br />

RiObjectBegin ()<br />

RiObjectEnd ()<br />

<strong>The</strong> properties of these modes are described in the appropriate sections (see the sections<br />

on Solids and Spatial Set Operations, p. 92; Motion, p. 96; and Retained Geometry, p. 94).<br />

Two other begin-end pairs:<br />

RiAttributeBegin ()<br />

RiAttributeEnd ()<br />

RiTransformBegin ()<br />

RiTransformEnd ()<br />

save and restore the attributes in the graphics state, and save and restore the current transformation,<br />

respectively.<br />

All begin-end pairs (except RiTransformBegin-RiTransformEnd and RiMotionBegin- Ri-<br />

MotionEnd), implicitly save and restore attributes. Begin-end blocks of the various types<br />

18

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

Saved successfully!

Ooh no, something went wrong!