1 // This work is licensed under the Creative Commons Attribution 3.0 Unported License.
2 // To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/
3 // or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View,
4 // California, 94041, USA.
6 // Persistence Of Vision Ray Tracer Scene Description File
8 // Desc: Radiosity demo scene. See also http://www.Graphics.Cornell.EDU/online/box/
10 // Auth: Kari Kivisalo
27 #
declare Finish
=finish{diffuse 0.75 ambient 0}
29 #
declare White
=texture{pigment{rgb<1,1,1>} finish{Finish
}}
30 #
declare Red
=texture{pigment{rgb<0.57,0.025,0.025>} finish{Finish
}}
31 #
declare Green
=texture{pigment{rgb<0.025,0.236,0.025>} finish{Finish
}}
33 #
declare LightColor
=<1,0.67,0.21>;
35 #
declare N
=3; // Divisions per side
36 #
declare DX
=13/N
; // Dimensions of sub patches
43 area_light DX
*x, DZ
*z, 4, 4 jitter adaptive 0
44 spotlight radius -90 falloff 90 tightness 1 point_at <27.8,0,27.95> // for cosine falloff
45 fade_power 2 fade_distance (DX
+DZ
)/2
48 #
declare i
=0;#
while (i
<N
)
49 #
declare j
=0;#
while (j
<N
)
50 light_source{SubPatch
translate<i
*DX
-(13-DX
)/2,0,j
*DZ
-(10.5-DZ
)/2>}
58 location <27.8, 27.3,-80.0>
66 // ------------------------ OBJECTS ----------------------------
71 <21.3,54.87,33.2><34.3,54.88,22.7> no_shadow
72 pigment{rgb<1,1,1>} finish{ambient 0.78 diffuse 0}
77 triangle{<55.28, 0.0, 0.0>,<0.0, 0.0, 0.0>,<0.0, 0.0, 55.92>}
78 triangle{<55.28, 0.0, 0.0>,<0.0, 0.0, 55.92>,<54.96, 0.0, 55.92>}
80 triangle{<55.60, 54.88, 0.0>,<55.60, 54.88, 55.92>,<0.0, 54.88, 55.92>}
81 triangle{<55.60, 54.88, 0.0>,<0.0, 54.88, 55.92>,<0.0, 54.88, 0.0>}
83 triangle{<0.0, 54.88, 55.92>,<55.60, 54.88, 55.92>,<54.96, 0.0, 55.92>}
84 triangle{<0.0, 54.88, 55.92>,<54.96, 0.0, 55.92>,<0.0, 0.0, 55.92>}
90 triangle{<0.0, 54.88, 0.0>,<0.0, 54.88, 55.92>,<0.0, 0.0, 55.92>}
91 triangle{<0.0, 54.88, 0.0>,<0.0, 0.0, 55.92>,<0.0, 0.0, 0.0>}
97 triangle{<55.28, 0.0, 0.0>,<54.96, 0.0, 55.92>,<55.60, 54.88, 55.92>}
98 triangle{<55.28, 0.0, 0.0>,<55.60, 54.88, 55.92>,<55.60, 54.88, 0.0>}
104 triangle{<13.00, 16.50, 6.50>,<8.20, 16.50, 22.50>,<24.00, 16.50, 27.20>}
105 triangle{<13.00, 16.50, 6.50>,<24.00, 16.50, 27.20>,<29.00, 16.50, 11.40>}
106 triangle{<29.00, 0.0, 11.40>,<29.00, 16.50, 11.40>,<24.00, 16.50, 27.20>}
107 triangle{<29.00, 0.0, 11.40>,<24.00, 16.50, 27.20>,<24.00, 0.0, 27.20>}
108 triangle{<13.00, 0.0, 6.50>,<13.00, 16.50, 6.50>,<29.00, 16.50, 11.40>}
109 triangle{<13.00, 0.0, 6.50>,<29.00, 16.50, 11.40>,<29.00, 0.0, 11.40>}
110 triangle{<8.20, 0.0, 22.50>,<8.20, 16.50, 22.50>,<13.00, 16.50, 6.50>}
111 triangle{<8.20, 0.0, 22.50>,<13.00, 16.50, 6.50>,<13.00, 0.0, 6.50>}
112 triangle{<24.00, 0.0, 27.20>,<24.00, 16.50, 27.20>,<8.20, 16.50, 22.50>}
113 triangle{<24.00, 0.0, 27.20>,<8.20, 16.50, 22.50>,<8.20, 0.0, 22.50>}
119 triangle{<42.30, 33.00, 24.70>,<26.50, 33.00, 29.60>,<31.40, 33.00, 45.60>}
120 triangle{<42.30, 33.00, 24.70>,<31.40, 33.00, 45.60>,<47.20 33.00 40.60>}
121 triangle{<42.30, 0.0, 24.70>,<42.30, 33.00, 24.70>,<47.20, 33.00, 40.60>}
122 triangle{<42.30, 0.0, 24.70>,<47.20, 33.00, 40.60>,<47.20, 0.0, 40.60>}
123 triangle{<47.20, 0.0, 40.60>,<47.20, 33.00, 40.60>,<31.40, 33.00, 45.60>}
124 triangle{<47.20, 0.0, 40.60>,<31.40, 33.00, 45.60>,<31.40, 0.0 45.60>}
125 triangle{<31.40, 0.0, 45.60>,<31.40, 33.00, 45.60>,<26.50, 33.00, 29.60>}
126 triangle{<31.40, 0.0, 45.60>,<26.50, 33.00, 29.60>,<26.50, 0.0, 29.60>}
127 triangle{<26.50, 0.0, 29.60>,<26.50, 33.00, 29.60>,<42.30, 33.00, 24.70>}
128 triangle{<26.50, 0.0, 29.60>,<42.30, 33.00, 24.70>,<42.30, 0.0, 24.70>}