1
#########################################################################
2
# fig12.12.rib - RIB to create Figure 12.12 of:
4
# _Advanced RenderMan: Creating CGI for Motion Picture_,
5
# by Anthony A. Apodaca and Larry Gritz, Morgan Kaufmann, 1999.
7
# This file demostrates the smoke shader.
8
# The lights in this file use a shadow map, which can be generated
9
# by rendering smokesm before rendering this file.
10
#########################################################################
12
#----------------------------------------------
14
Hider "hidden" "jitter" [0]
16
Display "smokeball.sm" "zfile" "z"
21
Projection "perspective" "fov" [25]
22
ConcatTransform [-1 0 0 0 0 1 0 0 0 0 -1 0 0 0 0 1]
24
Attribute "dice" "binary" [1]
36
#----------------------------------------------
39
Hider "hidden" "jitter" [1]
41
#Option "searchpath" "shader" ["../shaders:&"]
42
Display "fig12.12" "framebuffer" "rgb"
43
#Display "fig12.12.tga" "file" "rgb"
48
Projection "perspective" "fov" [45]
58
LightSource "uberlight" 1 "string lighttype" ["spot"]
59
"float falloff" [2] "intensity" [50] "float width" [.25] "float height" [.14]
60
"string shadowmap" ["smokeball.sm"] "float shadowbias" [.1]
61
"color shadowcolor" [0.5 0.25 0.125]
62
"float shadowblur" [25]
68
Declare "stepsize" "float"
69
Atmosphere "smoke" "stepsize" [.25]
70
"float smokeoctaves" [8] "float smokefreq" [1] "float opacdensity" [0.025]
71
"float lightdensity" [0.075]
78
Surface "oakplank" "float Kr" [0]
80
Patch "bilinear" "P" [ -5 -5 0 5 -5 0 -5 5 0 5 5 0 ]
83
Polygon "P" [ -5 -5 0 -5 -5 10 5 -5 10 5 -5 0 ]
84
Polygon "P" [ 5 -5 0 5 -5 10 5 5 10 5 5 0 ]
85
Polygon "P" [ -5 5 0 -5 5 10 -5 -5 10 -5 -5 0 ]
b'\\ No newline at end of file'