RenderMan Artist Tools

PhotoRealistic RenderMan
Application Note #8


RenderMan Quick Reference

May, 1990

ALPHABETICAL LISTING OF ALL 96 INTERFACE CALLS

This application note lists all the RenderMan Interface calls alphabetically (using the RIB binding name). Each call includes syntax information, and is followed by one or more examples and page references to “The RenderMan Interface,” version 3.1 (September 1989) and to “The RenderMan Companion: A Programmer's Guide to Realistic Computer Graphics,” by Steve Upstill (Addison-Wesley, 1989). Spec refers to the former, and Book to the latter.

# anything (a `#' at the beginning of a line indicates a comment)
RiArchiveRecord(type, format [,arg ...]) Examples: # This is a comment. RiArchiveRecord("comment", "This is comment number #%d", num);
RiArchiveRecord("structure","CapabilitiesNeeded Programmable Shading"); See RiArchiveRecord of the Spec. AreaLightSource name int parameterlist
RtLightHandle
RiAreaLightSource(name, parameterlist) Examples: AreaLightSource "finitelight" 1 "decayexponent" .5
AreaLightSource "glowtlight" 2 "color" [.5 0 0] "intensity" .6 RtFloat decay = 0.5, intensity = 0.6;
RtColor color = { 0.5, 0.0, 0.0 };
RiLightSource("finitelight", "decayexponent", (RtPointer)&decay, RI_NULL);
RiLightSource("glowlight", "color", (RtPointer)color, "intensity", (RtPointer)&intens, RI_NULL); See RiAreaLightSource of the Spec and page 225 of the Book. Atmosphere name parameterlist
RiAtmosphere(name, parameterlist) Example: Atmosphere "fog" "background" [.2 .2 .3] "distance" 39.4 RtColor fogcolor;
RtFloat distance;
RiAtmosphere("fog", "background", (RtPointer)fogcolor, "distance",
(RtPointer)&distance, RI_NULL); See RiAtmosphere of the Spec and page 235 of the Book. Attribute name parmeterlist
RiAttribute(name, parameterlist) Example: Attribute "bound" "displacement" 2.0 RtFloat displace = 2.0;
RiAttribute("bound", "displacement", (RtPointer)&displace, RI_NULL); See RiAttribute of the Spec and page 46 of the Book. AttributeBegin
RiAttributeBegin() Example: AttributeBegin RiAttributeBegin(); See RiAttributeBegin of the Spec and page 50 of the Book. AttributeEnd
RiAttributeEnd() Example: AttributeEnd RiAttributeEnd(); See RiAttributeEnd of the Spec and page 50 of the Book. Basis uname ustep vname vstep
Basis uname ustep vbasis vstep
Basis ubasis ustep vname vstep
Basis ubasis ustep vbasis vstep

RiBasis(ubasis, ustep, vbasis, vstep) Example: Basis "catmull-rom" 1 "catmull-rom" 1 RiBasis(RiCatmullRomBasis, RI_CATMULLROMSTEP, RiCatmullRomBasis, RI_CATMULLROMSTEP); See RiBasis of the Spec and page 93 of the Book. (Not available in RIB)
RiBegin(name) Example: RiBegin(RI_NULL); See RiBegin of the Spec and page 48 of the Book. Bound xmin xmax ymin ymax zmin zmax
RiBound(bound) Example: Bound 0 .5 0 .5 .9 1 RtBound bbox = { 0.0, 0.5, 0.0, 0.5, 0.9, 1.0 };
RiBound(bbox); See RiBound of the Spec and page 125 of the Book. Clipping near far
RiClipping(near, far) Example: Clipping .1 1000 RiClipping(0.1, 1000.0); See RiClipping of the Spec and page 145 of the Book. Color C0 C1 ... Cn
RiColor(color) Example: Color .2 .3 .9 RtColor blue = { 0.2, 0.3, 0.9 }
RiColor(blue); See RiColor of the Spec and page 213 of the Book. ColorSamples nRGB RGBn
RiColorSamples(n, nRGB, RGBn) Example: ColorSamples 1 [.3 .3 .4] ][1 1 1] RtFloat frommonochr[] = { 0.3, 0.3, 0.4 };
RtFloat tomonochr[] = { 1.0, 1.0, 1.0 };
RiColorSamples(1, frommonochr, tomonochr); See RiColorSamples of the Spec and page 43 of the Book. ConcatTransform transform
RiConcatTransform(transform) Example: ConcatTransform [2 0 0 0 0 2 0 0 0 0 2 0 0 0 0 1] RtMatrix foo = { 2.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0 };
RiConcatTransform(foo); See RiConcatTransform of the Spec and page 116 of the Book. Cone height radius thetamax parameterlist
RiCone(height, radius, thetamax, parameterlist) Example: Cone .5 .5 270 "Cs" 4 RtColor four_colors[4];
RiCone(0.5, 0.5, 270.0, "Cs", (RtPointer)four_colors, RI_NULL); See RiCone of the Spec and page 62 of the Book. CoordinateSystem space
RiCoordinateSystem(space) Example: CoordinateSystem "Endor" RiCoordinateSystem("Endor"); See RiCoordinateSystem of the Spec and page 123 of the Book. CoordSysTransform space
RiCoordSysTransform(space) Example: CoordSysTransform "Endor" RiCoordSysTransform ("Endor"); (this function is not described in the Spec or the Book). CropWindow xmin xmax ymin ymax
RiCropWindow(xmin xmax ymin ymax) Example CropWindow 0 .3 0 .5 RiCropWindow(0.0, 0.3, 0.0, 0.5); See RiCropWindow of the Spec and page 162 of the Book. Cylinder radius zmin zmax thetamax parameterlist
RiCylinder(radius, zmin, zmax, thetamax, parameterlist) Example: Cylinder .5 .2 1 360 RiCylinder(0.5, 0.2, 1.0, 360.0); See RiCylinder of the Spec and page 63 of the Book. Declare name declaration
RiDeclare(name, declaration) Example: Declare "centerpoint" "uniform point" RiDeclare("centerpoint", "uniform point"); See RiDeclare of the Spec and page 242 of the Book. Deformation name parameterlist
RiDeformation(name parameterlist) Example: Deformation "warpit" RiDeformation("warpit"); See RiDeformation of the Spec and page 117 of the Book. DepthOfField fstop focallength focaldistance
RiDepthOfField(fstop, focallength, focaldistance) Example: DepthOfField 22 1 26.7 RiDepthOfField(22.0 1.0 26.7); See RiDepthOfField of the Spec and page 185 of the Book. Detail minx maxx miny maxy minz maxz
RiDetail(bound) Example: Detail -1 1 -1 1 -1 1 RtBound box = { -1.0, 1.0, -1.0, 1.0, -1.0, 1.0 };
RiDetail(box); See RiDetail of the Spec and page 195 of the Book. DetailRange minvisible lowertransition uppertransition maxvisible
RiDetailRange(minvisible, lowertransition, uppertransition, maxvisible) Example: DetailRange 160 320 10000 10000 RiDetailRange(160.0, 320.0, 10000.0, 10000.0); See RiDetailRange of the Spec and page 197 of the Book. Disk height radius thetamax parameterlist
RiDisk(height, radius, thetamax, parameterlist) Example: Disk 1 .5 270 RiDisk(1.0, 0.5, 270.0, RI_NULL); See RiDisk of the Spec and page 62 of the Book. Displacement name parameterlist
RiDisplacement(namem, parameterlist) Example: Displacement "displaceit" RiDisplacement("displaceit", RI_NULL); See RiDisplacement of the Spec and page 260 of the Book. Display name type mode parameterlist
RiDisplay(name, type, mode, parameterlist) Example: Display "fb" "framebuffer" "rgba" "origin" [512 384] RtInt origin = {512, 384};
RiDisplay("fb", "framebuffer", "rgba", "origin", (RtPointer)origin, RI_NULL); See RiDisplay of the Spec and page 155 of the Book. (Not available in RIB)
RiEnd() Example: RiEnd(); See RiEnd of the Spec and page 48 of the Book. ErrorHandler "ignore"
ErrorHandler "print"
ErrorHandler "abort"

RiErrorHandler(handler) Example: ErrorHandler "print" RiErrorHandler(RiErrorPrint); See RiErrorHandler of the Spec and page 38 of the Book. Exposure gain gamma
RiExposure(gain, gamma) Example: Exposure 1.5 2.3 RiExposure(1.5, 2.3); See RiExposure of the Spec and page 180 of the Book. Exterior name parameterlist
RiExterior(name, parameterlist) Example: Exterior "fog" RiExterior("fog", RI_NULL); See RiExterior of the Spec and page 235 of the Book. Format xresolution yresolution pixelaspectratio
RiFormat(xresolution yresolution pixelaspectratio) Example: Format 512 384 1 RiFormat(512, 384, 1.0); See RiFormat of the Spec and page 156 of the Book. FrameAspectRatio frameaspectratio
RiFrameAspectRatio(frameaspectratio) Example: FrameAspectRatio 1.33333 RiFrameAspectRatio(4.0/3.0); See RiFrameAspectRatio of the Spec and page 159 of the Book. FrameBegin frame
RiFrameBegin(frame) Example: FrameBegin 14 RiFrameBegin(14); See RiFrameBegin of the Spec and page 51 of the Book. FrameEnd
RiFrameEnd() Example: FrameEnd RiFrameEnd(); See RiFrameAspectRatio of the Spec and page 51 of the Book. GeneralPolygon nvertices parameterlist
RiGeneralPolygon(nloops, nvertices, parameterlist) Example: GeneralPolygon [4 3] "P" [-1 -1 0 -1 1 0 1 1 0 1 -1 0 -.5 -.5 0 0 .5 0 .5 -.5 0] RiGeneralPolygon( (RtInt) 2, verts, RI_P, (RtPointer) poly, RI_NULL); See RiGeneralPolygon of the Spec and page 78 of the Book. GeometricApproximation type value
GeometricApproximation "flatness" value

RiGeometricApproximation(type, value) Example: GeometricApproximation "flatness" 2.5 RiGeometricApproximation(RI_FLATNESS, 2.5); See pRiGeometricApproximation of the Spec and page 172 of the Book. Geometry name parameterlist
RiGeometry(name, parameterlist) Example: Geometry "teapot" RiGeometry("teapot", RI_NULL); See RiGeometry of the Spec. Hider type parameterlist
RiHider(type, parameterlist) Example: Hider "hidden" RiHider("hidden", RI_NULL); See RiHider of the Spec and page 54 of the Book. Hyperboloid x1 y1 z1 x2 y2 z2 thetamax parameterlist
RiHyperboloid(point1, point2, thetamax, parameterlist) Example: Hyperboloid 1 -1 -1 1 1 1 360 RiHyperboloid( (RtPoint)point1, (RtPoint)point2, 360.0, RI_NULL); See RiHyperboloid of the Spec and page 63 of the Book. Identity
RiIdentity() Example: Identity RiIdentity(); See RiIdentity of the Spec and page 117 of the Book. Illuminate sequencenumber onoff
RiIlluminate(light, onoff) Example: Illuminate 2 1 RtLightHandle light1; RiIlluminate(light1, RI_TRUE); See RiIlluminate of the Spec and page 217 of the Book. Imager name parameterlist RiImager(name, parameterlist) Example: Imager "cymk" RiImager("cymk", RI_NULL); See RiImager of the Spec and page 181 of the Book. Interior name parameterlist
RiInterior(name, parameterlist) Example: Interior "water" RiInterior("water", RI_NULL); See RiInterior of the Spec and page 235 of the Book. LightSource name sequencenumber parameterlist
RtLightHandle LightSource(name, parameterlist) Example: LightSource "ambientlight" 2 "intensity" 10 RtFloat intens = 10.0;
LightHandle = RiLightSource("ambientlight", "intensity", (RtPointer)&intens, RI_NULL); See RiLightSource of the Spec and page 216 of the Book. MakeBump picturename texturename swrap twrap filter swidth twidth parameterlist
RiMakeBump(picturename, texturename, swrap, twrap, filterfunc, swidth, twidth, parameterlist) Example: MakeBump "hills.pic" "hills.tx" "periodic" "clamp" "catmull-rom" 2 2 RiMakeBump("hills.pic", "hills.tx", "periodic", "clamp", "RiCatmullRomFilter", 2.0, 2.0, RI_NULL); See RiMakeBump of the Spec and page 259 of the Book. MakeCubeEnvironment px nx py ny pz nz texturename fov filter swidth twidth parameterlist
RiMakeCubeFaceEnvironment(px, nx, py, ny, pz, nz, texturename, fov, filterfunc, swidth, twidth, parameterlist) Example: MakeCubeEnvironment "foo.x" "foo.nx" "foo.y "foo.ny" "foo.z" "foo.nz" "foo.env" 95 "triangle" 3.0 3.0 RiMakeCubeFaceEnvironment("foo.x","foo.nx", "foo.y", "foo.ny", "foo.z", "foo.nz", "foo.env",95.0, RiTriangleFilter, 2.0, 2.0, RI_NULL); See RiMakeCubeFaceEnvironment of the Spec and page 263 of the Book. MakeLatLongEnvironment picturename texturename filter swidth twidth parameterlist
RiMakeLatLongEnvironment(picturename, texturename, filterfunc, swidth, twidth, parameterlist) Example: MakeLatLongEnvironment "long.pic" "long.tx" "catmull-rom" 2 2 RiMakeLatLongEnvironment("long.pic", "long.tx", "RiCatmullRomFilter", 2.0, 2.0, RI_NULL); See RiMakeLatLongEnvironment of the Spec and page 263 of the Book. MakeShadow picturename texturename parameterlist
RiMakeShadow(picturename, texturename, parameterlist) Example: MakeShadow "shadow.pic" "shadow.tx" See RiMakeShadow of the Spec and page 269 of the Book. MakeTexture picturename texturename swrap twrap filter swidth twidth
RiMakeTexture(picturename, texturename, swrap, twrap, filterfunc, swidth, twidth, parameterlist) Example: MakeTexture "globe.pic" "globe.tx" "periodic" "clamp" "gaussian" 2 2 RiMakeTexture("globe.pic", "globe.tx", "periodic", "clamp", RiGaussianFilter, 2.0, 2.0, RI_NULL); See RiMakeTexture of the Spec and page 256 of the Book. Matte onoff RiMatte(onoff) Example: Matte 1 RiMatte(RI_TRUE); See RiMatte of the Spec and page 216 of the Book. MotionBegin t0 t1...tn-1 RiMotionBegin(n, t0, t1, ..., tnminus1) Example: MotionBegin [0 1] RiMotionBegin(2, 0.0, 1.0); See RiMotionBegin of the Spec and page 189 of the Book. MotionEnd RiMotionEnd() Example: MotionEnd RiMotionEnd(); See RiMotionEnd of the Spec and page 189 of the Book. NuPatch nu uorder uknot umin umax nv vorder vknot vmin vmax parameterlist
RiNuPatch(nu, uorder, uknot, umin, umax, nv, vorder, vknot, vmin, vmax parameterlist) Example: NuPatch 9 3 [0 0 0 1 1 2 2 3 3 4 4 4] 0 4 2 2 [0 0 1 1] 0 1 "Pw"
[1 0 0 1 1 1 0 1 0 2 0 2
-1 1 0 1 -1 0 0 1 -1 -1 0 1
0 -2 0 2 1 -1 0 1 1 0 0 1
1 0 -3 1 1 1 -3 1 0 2 -6 2
-1 1 -3 1 -1 0 -3 1 -1 -1 -3 1
0 -2 -6 2 1 -1 -3 1 1 0 -3 1]
RtFloat uknots[] = {0.0, 0.0, 0.0, 1.0, 1.0, 2.0, 2.0, 3.0, 3.0, 4.0, 4.0, 4.0}, vknots[] = {0.0, 0.0, 1.0, 1.0};
RtFloat controlPts[4][] = {
1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 2.0, 0.0, 2.0,
-1.0, 1.0, 0.0, 1.0, -1.0, 0.0, 0.0, 1.0, -1.0, -1.0, 0.0, 1.0,
0.0, -2.0, 0.0, 2.0, 1.0, -1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0,
1.0, 0.0,-3.0, 1.0, 1.0, 1.0,-3.0, 1.0, 0.0, 2.0,-6.0, 2.0,
-1.0, 1.0,-3.0, 1.0, -1.0, 0.0,-3.0, 1.0, -1.0, -1.0,-3.0, 1.0,
0.0, -2.0,-6.0, 2.0, 1.0, -1.0,-3.0, 1.0, 1.0, 0.0,-3.0, 1.0 };
RiNuPatch(9, 3, knots, 0.0, 4.0, 2, 2, knots, 0.0, 1.0, RI_PW, (RtPointer)controlPts, RI_NULL); See RiNuPatch of the Spec and page 104 of the Book. ObjectBegin sequencenumber
RiObjectHandle RiObjectBegin() Example: ObjectBegin 4 RtObjectHandle oh;
oh = RiObjectBegin(); See RiObjectBegin of the Spec and page 133 of the Book. ObjectEnd
RiObjectEnd() Example: ObjectEnd RiObjectEnd(); See RiObjectEnd of the Spec and page 133 of the Book. ObjectInstance sequencenumber
RiObjectInstance(handle) Example: ObjectInstance 4 RtObjectHandle oh;
RiObjectInstance(oh); See RiObjectInstance of the Spec and page 134 of the Book. Opacity c0 c1 ... cn
RiOpacity(color) Example: Opacity .5 1 1 RtColor color = { 0.5, 1.0, 1.0 };
RiOpacity(color); See RiOpacity of the Spec and page 213 of the Book. Option name parameterlist
RiOption(name, parameterlist) Example: Option "limits" "bucketsize" 24 24 RtInt bs[] = { 24, 24 };
RiOption("limits", "bucketsize", (RtPointer)bs, RI_NULL); See RiOption of the Spec and page 46 of the Book. Orientation orientation
RiOrientation(orientation) Example: Orientation "lh" RiOrientation(RI_LH); See RiOrientation of the Spec and page 121 of the Book. Paraboloid rmax zmin zmax thetamax parameterlist
RiParaboloid(rmax, zmin, zmax, thetamax, parameterlist) Example: Paraboloid .5 .2 .7 270 "Cs" [1 .1 .1 1 .1 0 1 0 .1 1 0 0] RtColor redish[4] = {1.0, 0.1, 0.1, 1.0, 0.1, 0.0, 1.0, 0.0, 0.1, 1.0, 0.0, 0.0};
RiParaboloid(0.5, 0.2, 0.7, 270.0, "Cs", (RtPointer)redish, RI_NULL); See RiParaboloid of the Spec and page 66 of the Book. Patch type parameterlist
RiPatch(type, parameterlist) Example: Patch "bilinear" "P" [-0.08 0.04 0.05 0.0 0.04 0.05 -0.08 0.03 0.05 0.0 0.03 0.05] RtPoint patch[4] = {-0.08, 0.04, 0.05, 0.0, 0.04, 0.05, -0.08, 0.03, 0.05, 0.0, 0.03, 0.05};
RiPatch(RI_BILINEAR, RI_P, (RtPointer)patch, RI_NULL); See RiPatch of the Spec and page 87 of the Book. PatchMesh type nu uwrap nv vwrap parameterlist
RiPatchMesh(type, nu, uwrap, nv, vwrap, parameterlist) Example: Basis "catmul-rom" 1 "catmull-rom" 1
PatchMesh "bicubic" 5 "nonperiodic" 4 "nonperiodic" "P" [
0 -1 .2 .5 -1 .9 1 -1 .7 1.5 -1 .1 2 -1 .5
0 1 .7 .5 1 .3 1 1 .6 1.5 1 .8 2 1 .4
0 3 .4 .5 3 .6 1 3 .4 1.5 3 .7 2 3 .9
0 7 .1 .5 7 .8 1 7 .5 1.5 7 .3 2 7 .6 ]
RtPoint mesh[20] = {0.0,-1.0,0.2, 0.5,-1.0,0.9, 1.0,-1.0,0.7, 1.5,-1.0,0.1, 2.0,-1.0,0.5,
0.0, 1.0,0.7, 0.5, 1.0,0.3, 1.0, 1.0,0.6, 1.5, 1.0,0.8, 2.0, 1.0,0.4,
0.0, 3.0,0.4, 0.5, 3.0,0.6, 1.0, 3.0,0.4, 1.5, 3.0,0.7, 2.0, 3.0,0.9,
0.0, 7.0,0.1, 0.5, 7.0,0.8, 1.0, 7.0,0.5, 1.5, 7.0,0.3, 2.0, 7.0,0.6};
RiBasis(RiCatmullRomBasis, 1, RiCatmullRomBasis, 1); RiPatchMesh(RI_BICUBIC, 5, RI_NOWRAP,4, RI_NOWRAP, RI_P, (RtPointer)mesh, RI_NULL); See RiPatchMesh of the Spec and page 98 of the Book. Perspective fov
RiPerspective(fov) Example: Perspective 90 RiPerspective(90.0); See RiPerspective of the Spec and page 114 of the Book. PixelFilter function xwidth ywidth
RiPixelFilter(filterfunc, xwidth, ywidth) Example: PixelFilter "gaussian" 2 1 RiPixelFilter(RiGaussianFilter, 2.0, 1.0); See RiPixelFilter of the Spec and page 176 of the Book. PixelSamples xsamples ysamples
RiPixelSamples(xsamples, ysamples) Example: PixelSamples 2 2 RiPixelSamples(2.0, 2.0); See RiPixelSamples of the Spec and page 176 of the Book. PixelVariance variation
RiPixelVariance(variation) Example: PixalVariance .01 RiPixelVariance(0.01); See RiPixelVariance of the Spec and page 179 of the Book. PointsGeneralPolygon nloops nvertices vertices parameterlist
RiPointsGeneralPolygon(npolys, nloops, nvertices, vertices, parameterlist) Example: PointsGeneralPolygon [2 2] [4 3 4 3] [0 1 3 4 6 7 8 1 2 5 4 9 10 11]"P"[0 0 1 0 1 1 0 2 1 0 0 0 0 1 0 0 2 0 0 0.25 0.5 0 .75 .75 0 1.75 .25 0 1.25 0.5 0 1.75 .75 0 1.75 .25] RtPoint polys[12] = {0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 2.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.25, 0.5, 0 .75, 0.75, 0.0, 1.75, 0.25, 0.0, 1.25, 0.5, 0.0, 1.75, 0.75, 0.0, 1.75, 0.25};
RtInt nloops[2] = {2, 2}, nverts[4] = {4, 3, 4, 3}, verts[14] = {0, 1, 3, 4, 6, 7, 8, 1, 2, 5, 4, 9, 10, 11};
RiPointsGeneralPolygons((RtInt)2, nloops, nverts, verts, RI_P, (RtPointer)polys, RI_NULL); See RiPointsGeneralPolygons of the Spec and page 82 of the Book. PointsPolygons nvertices vertices parameterlist
RiPointsPolygons(npolys, nvertices, vertices, parameterlist) Example: PointsPolygons [3 3 3] [0 3 2 0 1 3 1 4 3] "P" [0 1 1 0 3 1 00 0 0 2 0 0 4 0] "Cs" [0 .3 .4 0 .3 .9 .2 .2 .2 .5 .2 0 .9 .8 0] RtPoint vertexstrip[5] = {0.0, 1.0, 1.0, 0.0, 3.0, 1.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 4.0, 0.0}; RtColor colorstrip[5] = {0 .3, 0.4, 0 .3, 0.9, 0 .2, 0.2, 0.2, 0 .5, 0.2, 0.0, 0 .9, 0.8, 0.0}; RtInt nverts[3] = {3, 3, 3}, verts[9] = {0, 3, 2, 0, 1, 3, 1, 4, 3}; RiPointsPolygons((RtInt)3, nverts, verts, RI_P, (RtPointer)vertexstrip, RI_CS, (RtPointer)colorstrip, RI_NULL); See RiPointsPolygons of the Spec and page 79 of the Book. Polygon parameterlist
RiPolygon(nvertices, parameterlist) Example: Polygon "P" [0 1 0 0 1 1 0 0 1 0 0 0] RtPoint points[4] = {0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0};
RiPolygon(4, RI_P, (RtPointer)points, RI_NULL); See RiPolygon of the Spec and page 70 of the Book. (Not available in RIB) RiProcedural(data, bound, subdividefunc, freefunc) Example: RtPointer Child;
RtBound bound;
extern RtVoid FractDiv(), free();
RiProcedural(pChild, bound, FractDiv, free); See RiProcedural of the Spec and page 201 of the Book. Projection name parameterlist
RiProjection(name, parameterlist) Example: Projection "perspective" "fov" [30.0] RtFloat fov = 30.0;
RiProjection("perspective", RI_FOV, (RtPointer)&fov, RI_NULL); See RiProjection of the Spec and page 149 of the Book. Quantize type one min max ditheramplitude
RiQuantize(type, one, min, max, ditheramplitude) Example: Quantize "rgba" 255 0 255 1 RiQuantize(RI_RGBA, 255, 0, 255, 1.0); See RiQuantize of the Spec and page 183 of the Book. RelativeDetail relativedetail
RiRelativeDetail(relativedetail) Example: RelativeDetail .6 RiRelativeDetail(0.6); See RiRelativeDetail of the Spec and page 196 of the Book. ReverseOrientation RiReverseOrientation() Example: ReverseOrientation RiReverseOrientation(); See RiReverseOrientation of the Spec and page 122 of the Book. Rotate angle dx dy dz RiRotate(angle, dx, dy, dz) Example: Rotate 90 0 1 0 RiRotate(90.0, 0.0, 1.0, 0.0); See RiRotate of the Spec and page 112 of the Book. Scale sx sy sz RiScale(sx, sy, sz) Example: Scale .5 1 1 RiScale(0.5, 1.0, 1.0); See RiScale of the Spec and page 113 of the Book. ScreenWindow left right bottom top
RiScreenWindow(left right bottom top) Example: ScreenWindow -1 1 -1 1 RiScreenWindow(-1.0, 1.0, -1.0, 1.0) See RiScreenWindow of the Spec and page 150 of the Book. ShadingInterpolation type
RiShadingInterpolation(type) Example: ShadingInterpolation "constant" RiShadingInterpolation(RI_CONSTANT); See RiShadingInterpolation of the Spec and page 215 of the Book. ShadingRate size RiShadingRate(size) Example: ShadingRate 1 RiShadingRate(1.0); See RiShadingRate of the Spec and page 214 of the Book. Shutter opentime closetime RiShutter(opentime, closetime) Example: Shutter .1 .0 RiShutter(0.1, 0.9); See RiShutter of the Spec and page 190 of the Book. Sides sides RiSides(sides) Example: Sides 2 RiSides (2); See RiSides of the Spec and page 119 of the Book. Skew angle dx1 dy1 dz1 dx2 dy2 dz2 RiSkew(angle dx1 dy1 dz1 dx2 dy2 dz2) Example: Skew 45 0 1 0 1 0 0 RiSkew(45.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0); See RiSkew of the Spec and page 113 of the Book. SolidBegin operation RiSolidBegin(operation) Example: SolidBegin "union" RiSolidBegin(RI_UNION); See RiSolidBegin of the Spec and page 126 of the Book. SolidEnd RiSolidEnd() Example: SolidEnd RiSolidEnd() See RiSolidEnd of the Spec and page 126 of the Book. Sphere radius zmin zmax thetamax parameterlist RiSphere(radius zmin zmax thetamax parameterlist) Example: Sphere .5 0 .5 360 RiSphere(0.5, 0.0, 0.5, 360.0, RI_NULL); See RiSphere of the Spec and page 62 of the Book. Surface name parameterlist RiSurface(name, parameterlist) Example: Surface "wood" "roughness" .3 "Kd" 1 RtFloat rough = 0.3, kd = 1.0; RiSurface("wood", "roughness", (RtPointer)&rough, "Kd", (RtPointer)&kd, RI_NULL); See RiSurface of the Spec and page 231 of the Book. TextureCoordinates s1 t1 s2 t2 s3 t3 s4 t4 RiTextureCoordinates(s1 t1 s2 t2 s3 t3 s4 t4) Example: TextureCoordinates 0 0 2 -.5 -.5 1.75 3 3 RiTextureCoordinates(0.0, 0.0, 2.0, -0.5, -0.5, 1.75, 3.0, 3.0); See RiTextureCoordinates of the Spec and page 251 of the Book. Torus rmajor rminor phimin phimax thetamax parameterlist RiTorus(rmajor rminor phimin phimax thetamax parameterlist) Example: Torus 3.5 .25 0 180 300 RiTorus(3.5, 0.25, 0.0, 180.0, 300.0, RI_NULL); See RiTorus of the Spec and page 66 of the Book. Transform transform RiTransform(transform) Example: Transform [.5 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 RiTransform(0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0); See RiTransform of the Spec and page 117 of the Book. TransformBegin RiTransformBegin() Example: TransformBegin RiTransformBegin() See RiTransformBegin of the Spec and page 111 of the Book. TransformEnd RiTransformEnd() Example: TransformEnd RiTransformEnd() See RiTransformEnd of the Spec and page 111 of the Book. (Not available in RIB)
RtPoint * RiTransformPoints(fromspace, tospace, n, points) Example: RtPoint four_points[4];
RiTransformPoints("current", "lamptop", 4, four_points); See RiTransformPoints of the Spec and page 123 of the Book. Translate dx dy dz
RiTranslate(dx, dy, dz) Example: Translate 0 1 0 RiTranslate(0.0, 1.0, 0.0) See RiTranslate of the Spec and page 112 of the Book. TrimCurve ncurves order knot min max n u v w
RiTrimCurve(nloops, ncurves, order, knot, min, max, n, u, v, w) Example: TrimCurve 1 3 [0 0 0 1 1 2 2 3 3 4 4 4] 0 0 9 [1 1 1 0 0 0 1 1 1] [.5 1 2 1.5 0 0 0 .5] [1 1 2 1 1 1 2 1 1] RtInt nloops = 1; RtInt ncurves[1] = { 1 }; RtInt order[1] = { 3 }; RtFloat knot[12] = { 0,0,0,1,1,2,2,3,3,4,4,4 }; RtFloat min[1] = { 0 }; RtFloat max[1] = { 4 }; RtInt n[1] = { 9 }; RtFloat u[9] = { 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0 }; RtFloat v[9] = { 0.5, 1.0, 2.0, 1.0, 0.5, 0.0, 0.0, 0.0, 0.5 }; RtFloat w[9] = { 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0 }; RiTrimCurve(nloops, ncurves, order, knot, min, max, n, u, v, w); See RiTrimCurve of the Spec and page 249 of the Book. WorldBegin
RiWorldBegin() Example: WorldBegin RiWorldBegin(); See RiWorldBegin of the Spec and page 48 of the Book. WorldEnd
RiWorldEnd() Example: WorldEnd RiWorldEnd(); See RiWorldEnd of the Spec and page 48 of the Book.
 

Pixar Animation Studios
(510) 752-3000 (voice)   (510) 752-3151 (fax)
Copyright © 1996- Pixar. All rights reserved.
RenderMan® is a registered trademark of Pixar.