# Name the scene, note what we want an RGB encoded image, with alpha channel Display "vehicles" "framebuffer" "rgba" # Specify the image dimensions and pixel ratio Format 640 480 1 # The jrMan documentation recommends adding this for best quality PixelSamples 4 4 Exposure 1 2.2 # Use a gaussian filter to do anti-aliasing. The filter window size is 2 x 2 PixelFilter "gaussian" 2 2 # Right concatenate a projection matrix onto the matrix stack. Use a perspective transformation, with the full horizontal field of view angle openning at 45 degrees Projection "perspective" "fov" [45] # Renderman will use a left handed coordinate system unless we tell it not to Orientation "rh" # Translate the camera backwards 100 units Translate 0 0 100 # Rotate the camera about the X axis after its been translated. This will swing it up off the x-z plane by 20 degrees Rotate -20 1 0 0 # Now rotate the camera about the y (up) axis. This will let us look at the scene from the "left" Rotate -20 0 1 0 FrameBegin 1 # an ambient light...default color is [1 1 1] LightSource "ambientlight" 1 "intensity" [0.3 ] # The main/"key" light LightSource "distantlight" 2 "intensity" [1] "lightcolor" [1 1 1] "from" [30 100 100] "to" [0 0 0] # The filler light LightSource "distantlight" 3 "intensity" [0.6] "lightcolor" [1 1 1] "from" [-60 100 100] "to" [0 0 0] # The back light LightSource "distantlight" 4 "intensity" [0.4] "lightcolor" [1 1 1] "from" [0 200 -200] "to" [0 0 0] # Start describing geometry WorldBegin # First add in a material and some geometry for the ground AttributeBegin Surface "matte" # Ground is diffuse Color .7 .3 .2 # Ground is a light brown color Patch "bilinear" "P" [-200 0 -200 -200 0 200 200 0 -200 200 0 200] # This is just a flat box AttributeEnd # Add in the bike TransformBegin Scale 2 2 2 # The bike isn't big enough as it is ReadArchive "bikeData.rib" TransformEnd # Add in the motorcycle TransformBegin Translate 20 0 -20 # motorcycle is slightly on the right, out in front Scale 2.5 2.5 2.5 # The bike should be a little bit bigger than the car ReadArchive "mbikeData.rib" TransformEnd # Add in the car TransformBegin Translate -30 0 5 # car is off to the left, behind the bike Scale 2 2 2 ReadArchive "carData.rib" TransformEnd WorldEnd