-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscene.yaml
125 lines (122 loc) · 2.44 KB
/
scene.yaml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
%YAML:1.0
colors:
green: [0, 1, 0]
blue: [0, 0, 1]
red: [1, 0, 0]
glass: [0.01, 0.1, 1]
white: 1
light_gray: 0.8
materials:
glass:
color: glass
ka: 0.1
kd: 0.1
ks: 0.2
kr: 0.8
kt: 0.8
specRefExp: 8
refractiveIdx: 1.5
reflective: true
refractive: false
glass2:
color: glass
ka: 0
kd: 0
ks: 0.8
kr: 0.2
kt: 0.8
specRefExp: 8
refractiveIdx: 1.5
reflective: true
refractive: true
porcelan:
color: white
ka: 0.2
kd: 0.5
ks: 0.7
kr: 0.3
kt: 0
specRefExp: 8
refractiveIdx: 0
reflective: true
mirror:
color: white
ka: 0
kd: 0
ks: 0
kr: 1
kt: 1
specRefExp: 8
refractiveIdx: 0
reflective: true
m1:
color: light_gray
ka: 0.1
kd: 0.7
ks: 0
kr: 0.3
kt: 0
specRefExp: 8
refractiveIdx: 0
reflective: false
m2:
color: white
ka: 0.1
kd: 0.7
ks: 0.4
blue:
color: blue
red:
color: red
green:
color: green
lights:
- pos: [0., 3., -7.5]
color: white
factor: 3.
- pos: [0., 0., -1.]
color: white
factor: 10.
primitives:
# Spheres
- type: sphere
radius: 1.
center: [0., 0., -8.]
material: mirror
- type: sphere
radius: 0.75
center: [2., 0.25, -8.]
material: m1
- type: sphere
radius: 1.
center: [-2.5, 2., -5.]
material: glass
# Mesh
- type: mesh
scale: 20.
translation: [-1.5, -1., -6.]
rotation: [0., 0.5235987755982988, 0. ]
# filename: /home/chris/shared/github/chris/raytracer/data/3d_meshes/bunny/reconstruction/bun_zipper_res4.ply
filename: /home/chris/shared/github/chris/raytracer/data/3d_meshes/bunny/reconstruction/bun_zipper_res2.ply
material: porcelan
# Planes
- type: plane
normal: [0., 0. , 1.]
distance: 12.
material: green
- type: plane
normal: [1., 0. , 0.]
distance: 4.
material: red
- type: plane
normal: [-1., 0. , 0.]
distance: 4.
material: blue
- type: plane
normal: [0., 1. , 0.]
distance: 4.
material: blue
- type: plane
normal: [0., -1. , 0.]
distance: 4.
material: red