-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblinnExample.xml
More file actions
101 lines (97 loc) · 3.49 KB
/
Copy pathblinnExample.xml
File metadata and controls
101 lines (97 loc) · 3.49 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
<raytracer>
<!--- The Camera -->
<camera type="perspective" name="cam_flat">
<!--- The camera frame -->
<position x="7" y="2" z="5"/>
<!--- 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="30.0" />
<!--- Optional parameter, aspect ration W/H -->
<fdistance value="1" />
<!--- The focal distance -->
<!--- Retina/image dimensions -->
<width value="900"/>
<height value="450"/>
</camera>
<!--- The Scene -->
<scene>
<!--- The Background -->
<background type="color"> <!-- This defines an interpolated background -->
<color r="10" g="10" b="10"/>
<!-- top left -->
<color r="10" g="10" b="10"/>
<!-- top right -->
<color r="153" g="204" b="255"/>
<!-- bottom left -->
<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="0"/>
</object>
<object type="sphere" name="sphere2" material="redish">
<radius value="0.5"/>
<center x="-0.86" y="0" z="-1.5"/>
</object>
<object type="sphere" name="sphere3" material="blueish">
<radius value="0.5"/>
<center x="0.86" y="0" z="-1.5"/>
</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="64"/>
</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="20"/>
</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="point" name="point_light">
<intensity r="0.7" g="0.7" b="0.7"/>
<position x="0" y="1.1" z="-1"/>
</light>
<!--
<light type="point" name="point_light2">
<intensity r="0.9" g="0.3" b="0.3"/>
<position x="-2" y="1.1" z="-1"/>
</light>
-->
</scene>
<!--- Running setup -->
<running>
<integrator type="blinn phong">
<spp value="1"/>
<!--- Samples per pixel -->
<depth value="1"/>
</integrator>
</running>
</raytracer>