RMS
|
Introduction
This tutorial provides an example of how a primvar can be read by a
custom Slim node (implemented by a custom Slim template). The reader should refer to the tutorial
"RIB/RSL: Using Primvars" for
basic information about primvars.
|
Listing 1 (squares.rib)
|
An Example TemplateFigure 1 shows the template previewing a "Plane". Because the "Plane" does not have a float primvar named "radius" (shown in red above) the slider is able to adjust the size of the black circle.
Figure 2 shows the template previewing the archive. Because the polygons each have a "radius" primvar the slider has no effect on the size of their black circles. Instead, the size of the circles is determined by the value of the primvar that is associated with each poly.
|
The Template
In particular note the use of the RSL function Listing 2 (Hole.slim)
|
© 2002- Malcolm Kesson. All rights reserved.