-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from Cchen-77/main
feature: one-sample-mis for micrograin material & gaussian process implicit surface rendering support
- Loading branch information
Showing
44 changed files
with
1,953 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ target | |
NJUCG.mdj | ||
cmake-build* | ||
.idea | ||
./doxygen-doc | ||
./doxygen-doc | ||
scenes/**/*.hdr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
{ | ||
"renderer" : { | ||
"spp" : 1, | ||
"output_file" : "gpis" | ||
}, | ||
|
||
"mediums" : [ | ||
{ | ||
"name" : "gpis", | ||
"type" : "gpis", | ||
"num_sample_points": 8, | ||
"marching_step_size": 10000, | ||
"gaussian_process":{ | ||
"type":"std", | ||
"mean":{ | ||
"type":"procedural", | ||
"func":"knob", | ||
"transform":{ | ||
"position":[0,0,0], | ||
"scale":[1,1,1], | ||
"rotation":[0,30,0] | ||
} | ||
}, | ||
"covariance":{ | ||
"type":"squared_exponential", | ||
"lengthScale":0.1, | ||
"sigma":0.01 | ||
} | ||
}, | ||
"phase":{ | ||
"type":"lambert", | ||
"albedo":[0.9, 0.3, 0.35] | ||
} | ||
} | ||
], | ||
|
||
"materials" : [ | ||
{ | ||
"name" : "leftWall", | ||
"type" : "lambert", | ||
"albedo" : [0.63, 0.0065, 0.05] | ||
}, | ||
{ | ||
"name" : "rightWall", | ||
"type" : "lambert", | ||
"albedo" : [0.14, 0.45, 0.091] | ||
}, | ||
{ | ||
"name" : "floor", | ||
"type" : "lambert", | ||
"albedo" : [0.725, 0.71, 0.68] | ||
}, | ||
{ | ||
"name" : "ceiling", | ||
"type" : "lambert", | ||
"albedo" : [0.725, 0.71, 0.68] | ||
}, | ||
{ | ||
"name" : "backWall", | ||
"type" : "lambert", | ||
"albedo" : [0.725, 0.71, 0.68] | ||
}, | ||
{ | ||
"name" : "light", | ||
"type" : "lambert", | ||
"albedo" : [0, 0, 0] | ||
}, | ||
{ | ||
"name" : "interface", | ||
"type" : "null", | ||
"in_medium" : "gpis" | ||
} | ||
], | ||
|
||
"entities" : [ | ||
{ | ||
"type" : "quad", | ||
"base" : [0, 0, 0], | ||
"edge0" : [2, 0, 0], | ||
"edge1" : [0, 0, 2], | ||
"material" : "floor" | ||
}, | ||
{ | ||
"type" : "quad", | ||
"base" : [0, 2, 0], | ||
"edge0" : [0, 0, -2], | ||
"edge1" : [-2, 0, 0], | ||
"material" : "ceiling" | ||
}, | ||
{ | ||
"type" : "quad", | ||
"base" : [0, 1, -1], | ||
"edge0" : [-2, 0, 0], | ||
"edge1" : [0, 2, 0], | ||
"material" : "backWall" | ||
}, | ||
{ | ||
"type" : "quad", | ||
"base" : [-1, 1, 0], | ||
"edge0" : [0, 0, 2], | ||
"edge1" : [0, 2, 0], | ||
"material" : "leftWall" | ||
}, | ||
{ | ||
"type" : "quad", | ||
"base" : [1, 1, 0], | ||
"edge0" : [0, 0, -2], | ||
"edge1" : [0, 2, 0], | ||
"material" : "rightWall" | ||
}, | ||
{ | ||
"type" : "quad", | ||
"transform": { | ||
"position": [-0.005, 1.98, -0.03], | ||
"scale": [0.47, 0.1786, 0.38], | ||
"rotation": [0, 180, 180] | ||
}, | ||
"emission" : [30, 28, 20], | ||
"material" : "light" | ||
}, | ||
{ | ||
"type" : "cube", | ||
"material" : "interface", | ||
"transform" : { | ||
"scale" : [3, 3, 3], | ||
"position" : [0, 1, 0] | ||
} | ||
} | ||
], | ||
|
||
"camera" : { | ||
"resolution" : [512, 512], | ||
"type" : "pinhole", | ||
"fov" : 19.5, | ||
|
||
"transform" : { | ||
"position" : [0, 1, 7], | ||
"up" : [0, 1, 0], | ||
"look_at" : [0, 1, 0] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
{ | ||
"renderer" : { | ||
"spp" : 32, | ||
"output_file" : "gpis" | ||
}, | ||
|
||
"mediums" : [ | ||
{ | ||
"name" : "gpis-hard", | ||
"type" : "gpis", | ||
"marching_num_sample_points":64, | ||
"marching_step_size": 10000, | ||
"gaussian_process":{ | ||
"type":"std", | ||
"mean":{ | ||
"type":"procedural", | ||
"func":"knob", | ||
"transform":{ | ||
"position":[-0.8,0.37,0], | ||
"scale":[0.5,0.5,0.5], | ||
"rotation":[0,0,0] | ||
} | ||
}, | ||
"covariance":{ | ||
"type":"squared_exponential", | ||
"lengthScale":0.1, | ||
"sigma":0.01 | ||
}, | ||
"global_condition":{ | ||
"enable":false, | ||
"points":[ | ||
[0,0,0], | ||
[1,1,1] | ||
], | ||
"derivative_types":[ | ||
"none", | ||
"first" | ||
], | ||
"derivative_dirs":[ | ||
[0,0,0], | ||
[1,0,0] | ||
], | ||
"values":[ | ||
0, | ||
1 | ||
] | ||
} | ||
}, | ||
"phase":{ | ||
"type":"lambert", | ||
"albedo":[0.9, 0.3, 0.35] | ||
} | ||
}, | ||
{ | ||
"name" : "gpis-soft", | ||
"type" : "gpis", | ||
"marching_num_sample_points":32, | ||
"marching_step_size": 10000, | ||
"gaussian_process":{ | ||
"type":"std", | ||
"mean":{ | ||
"type":"procedural", | ||
"func":"knob", | ||
"transform":{ | ||
"position":[0.8,0.37,0], | ||
"scale":[0.5,0.5,0.5], | ||
"rotation":[0,0,0] | ||
} | ||
}, | ||
"covariance":{ | ||
"type":"squared_exponential", | ||
"lengthScale":0.1, | ||
"sigma":0.05 | ||
} | ||
}, | ||
"phase":{ | ||
"type":"lambert", | ||
"albedo":[0.9, 0.3, 0.35] | ||
} | ||
}, | ||
{ | ||
"name" : "homogeneous", | ||
"type" : "homogeneous", | ||
"sigmaT" : [20, 20, 20], | ||
"albedo" : [0.8, 0.8, 0.8] | ||
} | ||
], | ||
|
||
"materials" : [ | ||
{ | ||
"name": "floor", | ||
"albedo": { | ||
"type": "checker", | ||
"on_color": [ | ||
0.725, | ||
0.71, | ||
0.68 | ||
], | ||
"off_color": [ | ||
0.325, | ||
0.31, | ||
0.25 | ||
], | ||
"res_u": 20, | ||
"res_v": 20 | ||
}, | ||
"type": "lambert" | ||
}, | ||
{ | ||
"name" : "interface-hard", | ||
"type" : "null", | ||
"in_medium":"gpis-hard" | ||
}, | ||
{ | ||
"name" : "interface-soft", | ||
"type" : "null", | ||
"in_medium":"gpis-soft" | ||
} | ||
], | ||
|
||
"entities" : [ | ||
{ | ||
"type" : "quad", | ||
"base" : [0, 0, 0], | ||
"edge0" : [6, 0, 0], | ||
"edge1" : [0, 0, 6], | ||
|
||
"material" : "floor" | ||
}, | ||
{ | ||
"type" : "infinite_sphere", | ||
"emission" : "textures/envmap.hdr" | ||
}, | ||
{ | ||
"type" : "cube", | ||
"material" : "interface-hard", | ||
"transform" : { | ||
"scale" : [2, 2, 2], | ||
"position" : [-0.8, 1.05, 0] | ||
} | ||
}, | ||
{ | ||
"type" : "cube", | ||
"material" : "interface-soft", | ||
"transform" : { | ||
"scale" : [2, 2, 2], | ||
"position" : [0.8, 1.05, 0] | ||
} | ||
} | ||
], | ||
|
||
"camera" : { | ||
"resolution" : [1024, 1024], | ||
"type" : "pinhole", | ||
"fov" : 19.5, | ||
|
||
"transform" : { | ||
"position" : [0, 4, 7], | ||
"up" : [0, 1, 0], | ||
"look_at" : [0, 0, 0] | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.