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
{
"lights": [
],
"components": [
{
"name": "cornellbox",
"value": {"Mesh": {
"filename": "./examples/cornellbox/CornellBox-Glossy.obj",
"transform": [
[ -2.0, 0.0, 0.0, 0.0 ],
[ 0.0, 2.0, 0.0, 1.0 ],
[ 0.0, 0.0, -2.0, 0.0 ],
[ 0.0, -1.5, 4.0, 1.0]
]
}}
},
{
"name": "light_sphere",
"value": {"Shaped": {
"shape": {"Sphere": {
"radius": 1.5,
"zmin": -2.0,
"zmax": 2.0,
"phimax": 6.28
}},
"material": {
"name": "light_sphere_matte",
"value": {"Matte": {
"kd": {
"name": "light_sphere_kd",
"value": {"Constant": {
"value": {"inner": [ 0.5, 0.5, 0.5 ]}
}}
},
"sigma": {
"name": "light_sphere_sigma",
"value": {"Constant": { "value": 3.0 }}
}
}}
},
"light": {
"name": "light_sphere_light",
"value": {"Constant": {
"value": {"inner": [ 15.5, 10.5, 5.5]}
}}
},
"transform": {
"x": [1.0, 0.0, 0.0, 0.0],
"y": [0.0, 1.0, 0.0, 0.0],
"z": [0.0, 0.0, 1.0, 0.0],
"w": [-3.0, 0.0, -4.5, 1.0]
}
}}
},
{
"name": "blue_sphere",
"value": {"Shaped": {
"shape": {"Sphere": {
"radius": 1.5,
"zmin": -2.0,
"zmax": 2.0,
"phimax": 6.28
}},
"material": {
"name": "light_sphere_matte"
},
"light": {
"name": "blue_sphere_light",
"value": {"Constant": {
"value": {"inner": [ 7.5, 7.5, 10.5]}
}}
},
"transform": {
"x": [1.0, 0.0, 0.0, 0.0],
"y": [0.0, 1.0, 0.0, 0.0],
"z": [0.0, 0.0, 1.0, 0.0],
"w": [2.0, 2.0, -2.5, 1.0]
}
}}
}
],
"sampler": {
"sampledx": 32,
"sampledy": 32,
"ndim": 8
},
"camera": {
"transform": [
[1, 0.0, 0, 0],
[0, 1.0, 0, 0],
[0, 0.0, 1, 0],
[0, 0.0, 0, 1]
],
"screen": {
"pmin": { "x": -1.0, "y": -0.75 },
"pmax": { "x": 1.0, "y": 0.7}
},
"znear": 0.1,
"zfar": 1000.0,
"fov": 1.2707964,
"lens": null,
"film": {
"resolution": { "x": 1024, "y": 768 },
"crop_window": {
"pmin": { "x": 0, "y": 0 },
"pmax": { "x": 1024, "y": 768 }
},
"filter_radius": { "x": 4.0, "y": 4.0 }
}
},
"multithreaded": true,
"max_depth": 8,
"outputfilename": "./examples/cornellbox/CornellBox-Glossy44.png"
}