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.

4.3.2 Transformation stack<br />

Transformations can be saved and restored recursively. Note that pushing and popping<br />

the attributes also pushes and pops the current transformation.<br />

RiTransformBegin ()<br />

RiTransformEnd ()<br />

Push and pop the current transformation. Pushing and popping must be properly<br />

nested with respect to the various begin-end constructs.<br />

RIB BINDING<br />

TransformBegin-<br />

TransformEnd-<br />

EXAMPLE<br />

RiTransformBegin ();<br />

SEE ALSO<br />

RiAttributeBegin<br />

4.4 Implementation-specific Attributes<br />

Rendering programs may have additional implementation-specific attributes that control<br />

parameters that affect primitive appearance or interpretation. <strong>The</strong>se are all set by the following<br />

procedure.<br />

RiAttribute ( RtToken name, ...parameterlist...);<br />

Set the parameters of the attribute name, using the values specified in the token-value<br />

list parameterlist.<br />

Although RiAttribute is intended to allow implementation-specific attributes, there<br />

are a number of attributes that we expect that nearly all implementations will need<br />

to support. It is intended that when identical functionality is required, that all implementations<br />

use the attribute names listed in Table 4.12.<br />

RIB BINDING<br />

Attribute name ...parameterlist...<br />

EXAMPLE<br />

Attribute ”displacementbound” ”sphere” [2.0]<br />

SEE ALSO<br />

60

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

Saved successfully!

Ooh no, something went wrong!