######################################################################### # RIB to create a simpler version of Figure 12.10 in: # # _Advanced RenderMan: Creating CGI for Motion Picture_, # by Anthony A. Apodaca and Larry Gritz, Morgan Kaufmann, 1999. # # This file demostrates the oak shader. # # Modified 2/12/03 F. Parke # ######################################################################### ##RenderMan RIB-Structure 1.0 version 3.03 Format 640 480 1 #Format 1024 768 1 PixelSamples 2 2 Display "ephant.tif" "framebuffer" "rgb" Projection "perspective" "fov" [11] ShadingRate 1 Option "searchpath" "shader" [".:../shaders:&"] ##CameraOrientation 2 20 5 0 0 0 -0.0240204 -0.240204 0.970425 ConcatTransform [0.995037 -0.0240204 -0.0965609 0 -0.0995037 -0.240204 -0.965609 0 3.56147e-10 0.970425 -0.241402 0 0 0 0 1] Translate -2 -20 -5 WorldBegin Translate 0 0 -0.5 # Ambient light LightSource "ambientlight" 1 "intensity" [0.3] # Key light LightSource "distantlight" 2 "from" [100 100 100] # Fill light LightSource "distantlight" 3 "from" [-50 100 100] "intensity" [.5] Atmosphere "fog" "distance" 30 "background" [.6 .6 .9] #Atmosphere "smoke" "float stepsize" [.5] #"float smokeoctaves" [3] "float smokefreq" [1] "float opacdensity" [0.025] #"float lightdensity" [0.075] AttributeBegin TransformBegin Scale .5 .5 .5 Surface "oak" "float divotdepth" [0.01] TransformEnd Translate 1 1 0 Scale .1 .1 .1 Rotate -100 0 0 1 ReadArchive "gumbo.rib" AttributeEnd AttributeBegin TransformBegin Scale .75 .75 .75 Surface "oak" "float divotdepth" [0] "float roughness" [0.075] "float Ks" [1.4] "float Kd" [0.3] "float grainy" [0.5] "color Cdarkwood" [0.07 0.04 0.014] TransformEnd Translate -2.4 2 0 Scale .1 .1 .1 Rotate -50 0 0 1 ReadArchive "gumbo.rib" AttributeEnd # Background Sphere AttributeBegin Surface "constant" Color [.75 .75 .75 ] Sphere 100 -100 100 -360 AttributeEnd AttributeBegin Attribute "identifier" "name" ["box"] Translate 0 0 -0.4 Rotate 20 0 0 1 TransformBegin Rotate 85 0 1 0 Translate 2 0 0 Scale .75 .75 .75 Surface "oak" "float divotdepth" [0.0075] "color Clightwood" [0.5300 0.2439 0.1171] "color Cdarkwood" [0.4431 0.1729 0.0531] TransformEnd Scale 2.5 2.5 0.2 Patch "bilinear" "P" [ -1 1 0 1 1 0 -1 -1 0 1 -1 0 ] Patch "bilinear" "P" [ -1 -1 2 1 -1 2 -1 1 2 1 1 2] Patch "bilinear" "P" [ -1 -1 0 1 -1 0 -1 -1 2 1 -1 2] Patch "bilinear" "P" [ -1 1 2 1 1 2 -1 1 0 1 1 0 ] Patch "bilinear" "P" [ -1 -1 2 -1 1 2 -1 -1 0 -1 1 0 ] Patch "bilinear" "P" [ 1 -1 0 1 1 0 1 -1 2 1 1 2] AttributeEnd WorldEnd