Skip to content

Commit db336c8

Browse files
author
ParitoshK
committed
Implement obj mesh loader demo
1 parent 5c7c91b commit db336c8

File tree

6 files changed

+1131
-0
lines changed

6 files changed

+1131
-0
lines changed

tutorials/64_mesh_obj_demo/cfg.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"camera": {
3+
"position":[0.0, -1.0, 21.0],
4+
"aimed":[0.0, 0.0, 0.0],
5+
"up":[0.0, 1.0, 0.0],
6+
"focal_length":75.0,
7+
"translation": [0.0, 0.0, 0.0],
8+
"rotation": [0.0, 1.0, 0.0, 3.14159],
9+
"type": "perspective"
10+
},
11+
"light": {
12+
"type":"point",
13+
"translation": [0,1, 0],
14+
"rotation":[0,0,0,0],
15+
"radiant_power": [45,45,45],
16+
"intensity":3
17+
},
18+
"ibl" : {
19+
"path":"../../Resources/Textures/envLightImage.exr"
20+
},
21+
"obj": {
22+
"name": "floor",
23+
"geomObjFile": "../../Resources/Meshes/CornellBox-Sphere.obj",
24+
"translation": [0.0, -3.0, 0.0],
25+
"rotation": [0,0,0,0],
26+
"scale": [3, 3, 3]
27+
},
28+
"context": {
29+
"rendermode":"gi",
30+
"recursion":"10",
31+
"width":"1280",
32+
"height":"720",
33+
"iterations":"100",
34+
"batchsize":"32",
35+
"output":"test.png",
36+
"output.json":"output.json",
37+
"gui":"0",
38+
"device": {
39+
"gpu0":"1",
40+
"cpu":"0"
41+
}
42+
}
43+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"camera": {
3+
"position":[0.0, -1.0, 20.0],
4+
"aimed":[0.0, 0.0, 0.0],
5+
"up":[0.0, 1.0, 0.0],
6+
"focal_length":75.0,
7+
"translation": [0.0, 0.0, 0.0],
8+
"rotation": [0.0, 1.0, 0.0, 3.14159],
9+
"type": "perspective"
10+
},
11+
"obj": {
12+
"name": "floor",
13+
"geomObjFile": "../../Resources/Meshes/cornellBox.obj",
14+
"translation": [0.0, -3.0, 0.0],
15+
"rotation": [0,0,0,0],
16+
"scale": [1,1,1]
17+
},
18+
"context": {
19+
"rendermode":"gi",
20+
"recursion":"10",
21+
"width":"1280",
22+
"height":"720",
23+
"iterations":"100",
24+
"batchsize":"32",
25+
"output":"cornellbox.png",
26+
"output.json":"output.json",
27+
"gui":"0",
28+
"device": {
29+
"gpu0":"1",
30+
"cpu":"0"
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)