The RenderMan Interface - Paul Bourke
The RenderMan Interface - Paul Bourke
The RenderMan Interface - Paul Bourke
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Name<br />
Type<br />
”ShadingRate”<br />
uniform float<br />
”Sides”<br />
uniform float<br />
”Matte”<br />
uniform float<br />
”GeometricApproximation:motionfactor”<br />
uniform float<br />
”displacementbound:sphere” (*)<br />
uniform float<br />
”displacementbound:coordinatesystem” (*)<br />
uniform string<br />
”identifier:name”<br />
uniform string<br />
(*) Note that ”displacementbound:sphere” does not return the value exactly as specified<br />
in the RIB file, but rather returns its length in the coordinate system returned by<br />
”displacementbound:coordinatesystem” (which currently always returns ”camera”).<br />
Table 15.4: Data names known to the attribute function.<br />
variable, the named data will be written into variable and option() will return a value<br />
of 1.0. If the data is unknown or the types do not match, variable will be unchanged<br />
and option() will return 0.0. Note that option data is always uniform. If variable is<br />
varying, the appropriate uniform-to-varying conversion will take place.<br />
<strong>The</strong> standard data names supported by option are listed in Table 15.5. A particular<br />
implementation may support additional option queries.<br />
Name Type Description<br />
”Format” uniform float [3] x resolution, y resolution, pixel aspect ratio.<br />
”DeviceResolution” uniform float [3] <strong>The</strong> resolution in x and y and the pixel aspect<br />
ratio. <strong>The</strong>se are usually the three numbers<br />
passed to RiFormat, but may be different when<br />
RiFrameAspectRatio or RiScreenWindow are<br />
non-square.<br />
”FrameAspectRatio” uniform float Frame aspect ratio.<br />
”CropWindow” uniform float [4] Boundaries of the crop window.<br />
”DepthOfField” uniform float [3] Fstop, focallength, focaldistance.<br />
”Shutter” uniform float [2] Shutter open and close time.<br />
”Clipping” uniform float [2] Near and far clip depths.<br />
Table 15.5: Data names known to the option function.<br />
float rendererinfo ( string name; output type variable )<br />
Returns data that about the renderer itself. <strong>The</strong> name specifies the piece of information<br />
that will be returned in variable. <strong>The</strong> the data name is known to the renderer<br />
and its type and storage class match that of variable, the named data will be written<br />
into variable and rendererinfo() will return a value of 1.0. If the data is unknown<br />
or the types do not match, variable will be unchanged and rendererinfo() will return<br />
0.0. Note that renderer data is always uniform. If variable is varying, the appropriate<br />
uniform-to-varying conversion will take place.<br />
149