-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_scene.sp
103 lines (87 loc) · 1.81 KB
/
example_scene.sp
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
version: 1
scene_parameters {
output_file_name: "image.pfm"
width: 800
height: 600
}
perspective_camera {
origin: 0.0 2.0 5.0
look_at: 0.0 1.0 0.0
fov: 45
}
material_transmissive_dielectric {
name: "clearcoat"
ior: 1.3
}
material_lambertian {
name: "base"
diffuse: 0.1 0.2 0.8
}
# Layered materials are specified with topmost layer first
material_layered {
name: "material0"
layer: "clearcoat"
layer: "base"
}
mesh {
name: "bunny mesh"
file: "bunny.ply"
}
mesh {
name: "lucy mesh"
file: "lucy.ply"
}
sphere {
translate: 10.0 0.5 0.0
rotate: 0.0 1.0 0.0 45.0
scale: 10.0 10.0 10.0
material: "material0"
}
plane {
name: "my plane"
}
sphere_light {
translate: 10.0 15.0 0.0
radiance: 10.0 10.0 15.0
}
environment_light {
rotate: 0.0 1.0 0.0 45.0
radiance: 1.0 1.0 1.3
}
primitive {
transform4x4: 1.0 0.0 0.0 0.0 # We need 16 values
0.0 1.0 0.0 0.0
0.0 0.0 1.0 0.0
0.0 0.0 0.0 1.0
geometry: "bunny mesh"
material: "material0"
}
primitive {
# Transformations are applied in order listed in the file
translate: 10.0 0.5 0.0
rotate: 0.0 1.0 0.0 45.0
scale: 10.0 10.0 10.0
geometry: "my sphere"
material: "base"
}
primitive {
# Transformations are applied in order listed in the file
geometry: "my plane"
material: "base"
}
instance {
# Transformations are applied in order listed in the file
translate: 10.0 -10.5 0.0
rotate: 0.0 1.0 0.0 45.0
scale: 10.0 10.0 10.0
geometry: "lucy mesh"
material: "base"
}
instance {
# Transformations are applied in order listed in the file
translate: 10.0 10.5 0.0
rotate: 0.0 1.0 0.0 -45.0
scale: 10.0 10.0 10.0
geometry: "lucy mesh"
material: "base"
}