Skip to content

Commit

Permalink
V0.0.3 (#3)
Browse files Browse the repository at this point in the history
* Core updates
- Handle no material case (mtlx)
- Add material if none (gltf)
- Find absolute paths to resources for data packing (gltb)
- Add package version number
- Add Adobe Substance 3D example with different geom "shader ball".

* Add in Pysically Based Examples.
  • Loading branch information
kwokcb committed Nov 15, 2023
1 parent 1089d2e commit 9fc7f77
Show file tree
Hide file tree
Showing 73 changed files with 2,585 additions and 118 deletions.
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "MaterialXglTF"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 0.0.1
PROJECT_NUMBER = 0.0.3

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
Binary file not shown.
Binary file added docs/data/Geometry/test_cube.bin
Binary file not shown.
230 changes: 230 additions & 0 deletions docs/data/Geometry/test_cube.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v3.6.28",
"version":"2.0"
},
"extensionsUsed":[
"KHR_materials_clearcoat",
"KHR_materials_transmission",
"KHR_materials_specular",
"KHR_materials_ior"
],
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube"
}
],
"materials":[
{
"doubleSided":true,
"extensions":{
"KHR_materials_clearcoat":{
"clearcoatFactor":0.022727273404598236,
"clearcoatRoughnessFactor":0.1663636416196823
},
"KHR_materials_transmission":{
"transmissionFactor":0.22727273404598236
},
"KHR_materials_specular":{
"specularColorFactor":[
0.38111396192933505,
0.2244931429797119,
0.2450934815163317
]
},
"KHR_materials_ior":{
"ior":9.94999885559082
}
},
"name":"Material",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.8000000715255737,
0.009745790623128414,
0.11368794739246368,
1
],
"metallicFactor":0.17272727191448212,
"roughnessFactor":0.5
}
},
{
"doubleSided":true,
"emissiveFactor":[
0.014503229409456253,
0.014503229409456253,
0.014503229409456253
],
"extensions":{
"KHR_materials_clearcoat":{
"clearcoatFactor":0.059090908616781235,
"clearcoatRoughnessFactor":0.11181817948818207
},
"KHR_materials_transmission":{
"transmissionFactor":0.06818182021379471
},
"KHR_materials_specular":{
"specularColorFactor":[
0.10496773232530021,
0.11140182461173363,
0.2498355062097603
]
},
"KHR_materials_ior":{
"ior":10.249999046325684
}
},
"name":"Material.001",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.033420365303754807,
0.06746689230203629,
0.8000000715255737,
1
],
"metallicFactor":0.09545454382896423,
"roughnessFactor":0.5
}
}
],
"meshes":[
{
"name":"Cube",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":24,
"max":[
1,
1,
1
],
"min":[
-1,
-1,
-1
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":24,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":24,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":36,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":24,
"max":[
1,
1,
1
],
"min":[
-1,
-1,
-1
],
"type":"VEC3"
},
{
"bufferView":5,
"componentType":5126,
"count":24,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":24,
"type":"VEC2"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":288,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":288,
"byteOffset":288,
"target":34962
},
{
"buffer":0,
"byteLength":192,
"byteOffset":576,
"target":34962
},
{
"buffer":0,
"byteLength":72,
"byteOffset":768,
"target":34963
},
{
"buffer":0,
"byteLength":288,
"byteOffset":840,
"target":34962
},
{
"buffer":0,
"byteLength":288,
"byteOffset":1128,
"target":34962
},
{
"buffer":0,
"byteLength":192,
"byteOffset":1416,
"target":34962
}
],
"buffers":[
{
"byteLength":1608,
"uri":"test_cube.bin"
}
]
}
Binary file added docs/data/Geometry/test_sphere.bin
Binary file not shown.
Loading

0 comments on commit 9fc7f77

Please sign in to comment.