-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene_exp.yaml
134 lines (131 loc) · 2.76 KB
/
scene_exp.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
126
127
128
129
130
131
132
133
134
%YAML:1.0
#This scene is for experiments
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
wall_color: [0.7529411764705882, 0.6078431372549019, 0.3686274509803922]
yellow: [1., 1., 0]
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: true
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
wall_color:
color: wall_color
yellow:
color: yellow
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: m1
# - type: sphere
# radius: 0.75
# center: [2., 0.25, -8.]
# material: m1
# - type: sphere
# radius: 1.
# center: [-2.5, 2., -5.]
# material: m1
# Mesh
- type: mesh
scale: 1
translation: [0, 0.1, -2.]
# translation: [-1.5, -3., -6.]
rotation: [-1.5, 0, 0]
filename: /home/chris/shared/github/chris/raytracer/data/3d_meshes/monkey.ply
# 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: glass
# Planes
# - type: plane
# normal: [0., 0. , 1.]
# distance: 12.
# material: wall_color
# - type: plane
# normal: [1., 0. , 0.]
# distance: 4.
# material: red
# - type: plane
# normal: [-1., 0. , 0.]
# distance: 4.
# material: green
# - type: plane
# normal: [0., 1. , 0.]
# distance: 4.
# material: blue
# - type: plane
# normal: [0., -1. , 0.]
# distance: 4.
# material: yellow