Repository navigation
Expand file tree
/
Copy pathexampleSpot.xml
More file actions
112 lines (108 loc) · 3.92 KB
/
Copy pathexampleSpot.xml
File metadata and controls
112 lines (108 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<raytracer>
<!--- The Camera -->
<camera type="perspective" name="cam_flat">
<!--- The camera frame -->
<position x="9" y="3.5" z="15"/>
<!--- located at the origin -->
<target x="0" y="0" z="-1"/>
<!--- looking down the -Z axis -->
<up x="0" y="1" z="0"/>
<!--- the camera's up vector -->
<!--- Specific parameters for perspective projection -->
<fovy value="25.0" />
<!--- Optional parameter, aspect ration W/H -->
<fdistance value="1" />
<!--- The focal distance -->
<!--- Retina/image dimensions -->
<width value="3600"/>
<height value="1800"/>
</camera>
<!--- The Scene -->
<scene>
<!--- The Background -->
<background type="color"> <!-- This defines an interpolated background -->
<color r="153" g="204" b="255"/>
<!-- bottom left -->
<color r="18" g="10" b="143"/>
<!-- top left -->
<color r="18" g="10" b="143"/>
<!-- top right -->
<color r="153" g="204" b="255"/>
<!-- bottom right -->
</background>
<object type="sphere" name="sphere1" material="greenish">
<radius value="0.5"/>
<center x="0" y="0" z="-2"/>
</object>
<object type="sphere" name="sphere2" material="redish">
<radius value="0.5"/>
<center x="-4" y="0" z="-2"/>
</object>
<object type="sphere" name="sphere3" material="blueish">
<radius value="0.5"/>
<center x="4" y="0" z="-2"/>
</object>
<object type="sphere" name="sphere4" material="grey">
<radius value="5000"/>
<center x="0" y="-5000.5" z="-1"/>
</object>
<!--- Library of materials -->
<material type="blinn" name="redish">
<ambient r="0.1" g="0.1" b="0.1"/>
<diffuse r="0.9" g="0.2" b="0.1"/>
<specular r="0.8" g="0.8" b="0.8"/>
<glossiness value="256"/>
</material>
<material type="blinn" name="greenish">
<ambient r="0.1" g="0.1" b="0.1"/>
<diffuse r="0.2" g="0.9" b="0.2"/>
<specular r="0.8" g="0.8" b="0.8"/>
<glossiness value="256"/>
</material>
<material type="blinn" name="blueish">
<ambient r="0.1" g="0.1" b="0.1"/>
<diffuse r="0.1" g="0.2" b="0.9"/>
<specular r="0.8" g="0.8" b="0.8"/>
<glossiness value="256"/>
</material>
<material type="blinn" name="grey">
<ambient r="0.1" g="0.1" b="0.1"/>
<diffuse r="0.8" g="0.8" b="0.8"/>
<specular r="0" g="0" b="0"/>
<glossiness value="8"/>
</material>
<!-- Lights -->
<light type="ambient" name="ambient_light">
<intensity r="0.1" g="0.1" b="0.1"/>
</light>
<light type="spot" name="spot1">
<intensity r="0.3" g="0.9" b="0.3"/>
<position x="0" y="1" z="2"/>
<point_at x="0" y="0" z="-2"/>
<cutoff value="35"/>
<falloff value="14"/>
</light>
<light type="spot" name="spot2">
<intensity r="0.7" g="0.2" b="0.2"/>
<position x="0" y="4" z="-2"/>
<point_at x="-4" y="0" z="-2"/>
<cutoff value="35"/>
<falloff value="10"/>
</light>
<light type="spot" name="spot3">
<intensity r="0.2" g="0.2" b="0.7"/>
<position x="0" y="4" z="-2"/>
<point_at x="4" y="0" z="-2"/>
<cutoff value="35"/>
<falloff value="14"/>
</light>
</scene>
<!--- Running setup -->
<running>
<integrator type="blinn phong">
<spp value="1"/>
<!--- Samples per pixel -->
<depth value="1"/>
</integrator>
</running>
</raytracer>