~ubuntu-branches/ubuntu/maverick/blender/maverick

« back to all changes in this revision

Viewing changes to extern/qdune/ribs/fig12.12.rib

  • Committer: Bazaar Package Importer
  • Author(s): Khashayar Naderehvandi, Khashayar Naderehvandi, Alessio Treglia
  • Date: 2009-01-22 16:53:59 UTC
  • mfrom: (14.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090122165359-v0996tn7fbit64ni
Tags: 2.48a+dfsg-1ubuntu1
[ Khashayar Naderehvandi ]
* Merge from debian experimental (LP: #320045), Ubuntu remaining changes:
  - Add patch correcting header file locations.
  - Add libvorbis-dev and libgsm1-dev to Build-Depends.
  - Use avcodec_decode_audio2() in source/blender/src/hddaudio.c

[ Alessio Treglia ]
* Add missing previous changelog entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#########################################################################
2
 
# fig12.12.rib - RIB to create Figure 12.12 of:
3
 
#
4
 
# _Advanced RenderMan: Creating CGI for Motion Picture_, 
5
 
# by Anthony A. Apodaca and Larry Gritz, Morgan Kaufmann, 1999.
6
 
#
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
 
#########################################################################
11
 
 
12
 
#----------------------------------------------
13
 
# shadowmap
14
 
Hider "hidden" "jitter" [0]
15
 
FrameBegin 1
16
 
Display "smokeball.sm" "zfile" "z"
17
 
Format 512 512 1
18
 
PixelSamples 1 1
19
 
PixelFilter "box" 1 1
20
 
ShadingRate 4
21
 
Projection "perspective" "fov" [25]
22
 
ConcatTransform [-1 0 0 0 0 1 0 0 0 0 -1 0 0 0 0 1]
23
 
Translate 0 0 -8 
24
 
Attribute "dice" "binary" [1]
25
 
WorldBegin
26
 
 
27
 
AttributeBegin
28
 
Translate 0 0 2
29
 
Rotate -10 1 1 1
30
 
Sphere 1 -1 1 360
31
 
AttributeEnd
32
 
 
33
 
WorldEnd
34
 
FrameEnd
35
 
 
36
 
#----------------------------------------------
37
 
# image
38
 
 
39
 
Hider "hidden" "jitter" [1]
40
 
FrameBegin 2
41
 
#Option "searchpath" "shader" ["../shaders:&"]
42
 
Display "fig12.12" "framebuffer" "rgb"
43
 
#Display "fig12.12.tga" "file" "rgb"
44
 
Format 512 512 1
45
 
PixelSamples 4 4
46
 
Exposure 1 1.8
47
 
ShadingRate 1
48
 
Projection "perspective" "fov" [45]
49
 
Translate 0 0 7.5
50
 
Rotate -90 1 0 0
51
 
Translate 0 0 -2
52
 
Rotate -10 1 0 0
53
 
WorldBegin
54
 
 
55
 
AttributeBegin
56
 
Translate 0 0 8
57
 
Rotate 180 1 0 0
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]
63
 
AttributeEnd
64
 
Illuminate 1 1
65
 
 
66
 
Sides 1
67
 
 
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]
72
 
 
73
 
AttributeBegin
74
 
AttributeBegin
75
 
TransformBegin
76
 
Rotate 90 0 0 1
77
 
Scale .35 .35 .35
78
 
Surface "oakplank" "float Kr" [0]
79
 
TransformEnd
80
 
Patch "bilinear" "P"  [ -5 -5 0 5 -5 0  -5 5 0 5 5 0 ] 
81
 
AttributeEnd
82
 
Surface "matte"
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  ] 
86
 
AttributeEnd
87
 
 
88
 
AttributeBegin
89
 
Sides 2
90
 
Translate 0 0 2
91
 
Rotate -10 1 1 1
92
 
Surface "starball"
93
 
Sphere 1 -1 1 360
94
 
AttributeEnd
95
 
 
96
 
WorldEnd
97
 
FrameEnd
 
 
b'\\ No newline at end of file'