Rib
|
Introduction
This tutorial covers the basic issues of dealing with the RenderMan's
curve primitive. Figure 1 shows four colored b-spline bezier catmull-rom (thick line, 4 cvs) catmull-rom (thin line, 6 cvs - first & last cvs repeated) hermite The cvs (small dots) and the lines joining them (left to right) are shown in gray.
There is a clear difference between each of the curves. In particular, notice the green bezier curve is the only one to begin and end at the first and last cv. The RIB statements used to render the bezier curve are, |
Basis "bezier" 3 "bezier" 3 Bxdf "PxrConstant" "green" "color emitColor" [0 1 0] Curves "cubic" [4] "nonperiodic" "P" [-0.75 0 0.5 -0.45 0 1 0.5 0 0 0.75 0 1] "constantwidth" [0.01] |
The rib file used to render this image can be viewed here curves.rib. Curves generated by Maya are of type "b-spline" ie. Basis "b-spline" 1 "b-spline" 1 |
Assumptions
Although a RenderMan curve might look as if it can be defined by
an arbitary number of cvs - in the example shown above the " |