-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexampleDepth.xml
More file actions
60 lines (59 loc) · 2.06 KB
/
Copy pathexampleDepth.xml
File metadata and controls
60 lines (59 loc) · 2.06 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
<raytracer>
<camera type="perspective">
<!--- The camera frame -->
<position x="0" y="0" z="2"/>
<!--- located at the origin -->
<target x="0" y="0" z="-10"/>
<!--- looking down the -Z axis -->
<up x="0" y="1" z="1"/>
<!--- the camera's up vector -->
<!--- Specific parameters for perspective projection -->
<fovy value="65.0" />
<!--- The vertical field of view -->
<aspect value="1.33"/>
<!--- Optional parameter, aspect ration W/H -->
<fdistance value="1" />
<!--- The focal distance -->
<!--- Retina/image dimensions -->
<width value="800"/>
<height value="600"/>
</camera>
<scene>
<background type="color">
<color r="255" g="255" b="255"/>
</background>
<object type="sphere" name="sphere1" material="green">
<radius value="20.0"/>
<center x="-1.0" y="0.5" z="-30"/>
</object>
<object type="sphere" name="sphere2" material="green">
<radius value="0.4"/>
<center x="1.0" y="-0.5" z="-8"/>
</object>
<object type="sphere" name="sphere3" material="gold">
<radius value="0.4"/>
<center x="-1.0" y="-1.5" z="-3.5"/>
</object>
<object type="sphere" name="sphere4" material="pink">
<radius value="2.0"/>
<center x="7.0" y="1.5" z="-10"/>
</object>
<!-- materials -->
<material type="flat" name="gold">
<diffuse r="236" g="124" b="17"/>
</material>
<material type="flat" name="green">
<diffuse r="42" g="201" b="51"/>
</material>
<material type="flat" name="pink">
<diffuse r="253" g="153" b="253"/>
</material>
</scene>
<running> <!--- Running setup -->
<integrator type="depthMap">
<near r="255" g="0" b="0"/>
<far r="255" g="255" b="255"/>
<!--- Samples per pixel -->
</integrator>
</running>
</raytracer>