Skip to content

Commit

Permalink
Add option to insert extract nodes vs using implement channels attrib…
Browse files Browse the repository at this point in the history
…ute on conversion from gltf. (#8)
  • Loading branch information
kwokcb committed Nov 28, 2023
1 parent d3c9046 commit 1209982
Show file tree
Hide file tree
Showing 18 changed files with 795 additions and 50 deletions.
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ INLINE_INHERITED_MEMB = NO
# shortest path that makes the file name unique will be used
# The default value is: YES.

FULL_PATH_NAMES = YES
FULL_PATH_NAMES = NO

# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
# Stripping is only done if one of the specified strings matches the left-hand
Expand Down
242 changes: 242 additions & 0 deletions docs/data/RTS_GLTF/SciFiHelmet.gltf_converted.mtlx.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
{
"asset": {
"generator": "MaterialX 1.38 to glTF 2.0 generator. https://github.com/kwokcb/glTF_MaterialX",
"version": "2.0",
"copyright": "Copyright 2022-2023: Bernard Kwok."
},
"scene": 0,
"scenes": [
{
"name": "Scene",
"nodes": [
0
]
}
],
"nodes": [
{
"mesh": 0,
"name": "Sphere"
}
],
"animations": [
{
"channels": [
{
"sampler": 0,
"target": {
"node": 0,
"path": "translation"
}
},
{
"sampler": 1,
"target": {
"node": 0,
"path": "rotation"
}
},
{
"sampler": 2,
"target": {
"node": 0,
"path": "scale"
}
}
],
"name": "SphereAction",
"samplers": [
{
"input": 5,
"interpolation": "STEP",
"output": 6
},
{
"input": 5,
"interpolation": "STEP",
"output": 7
},
{
"input": 5,
"interpolation": "STEP",
"output": 8
}
]
}
],
"materials": [
{
"extensions": {
"KHR_materials_volume": {
"attenuationColor": [
1.0,
1.0,
1.0
],
"attenuationDistance": 100000.0
}
},
"name": "SciFiHelmet",
"pbrMetallicRoughness": {
"baseColorFactor": [
1.0,
1.0,
1.0,
1.0
],
"metallicFactor": 1.0,
"roughnessFactor": 1.0
}
}
],
"meshes": [
{
"name": "Sphere",
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1,
"NORMAL": 2,
"TANGENT": 3
},
"indices": 4,
"material": 0
}
]
}
],
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 559,
"max": [
0.9999997019767761,
1,
0.9999993443489075
],
"min": [
-0.9999990463256836,
-1,
-1
],
"type": "VEC3"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 559,
"type": "VEC2"
},
{
"bufferView": 2,
"componentType": 5126,
"count": 559,
"type": "VEC3"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 559,
"type": "VEC4"
},
{
"bufferView": 4,
"componentType": 5123,
"count": 2880,
"type": "SCALAR"
},
{
"bufferView": 5,
"componentType": 5126,
"count": 1,
"max": [
0.041666666666666664
],
"min": [
0.041666666666666664
],
"type": "SCALAR"
},
{
"bufferView": 6,
"componentType": 5126,
"count": 1,
"type": "VEC3"
},
{
"bufferView": 7,
"componentType": 5126,
"count": 1,
"type": "VEC4"
},
{
"bufferView": 8,
"componentType": 5126,
"count": 1,
"type": "VEC3"
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 6708,
"byteOffset": 0,
"target": 34962
},
{
"buffer": 0,
"byteLength": 4472,
"byteOffset": 6708,
"target": 34962
},
{
"buffer": 0,
"byteLength": 6708,
"byteOffset": 11180,
"target": 34962
},
{
"buffer": 0,
"byteLength": 8944,
"byteOffset": 17888,
"target": 34962
},
{
"buffer": 0,
"byteLength": 5760,
"byteOffset": 26832,
"target": 34963
},
{
"buffer": 0,
"byteLength": 4,
"byteOffset": 32592
},
{
"buffer": 0,
"byteLength": 12,
"byteOffset": 32596
},
{
"buffer": 0,
"byteLength": 16,
"byteOffset": 32608
},
{
"buffer": 0,
"byteLength": 12,
"byteOffset": 32624
}
],
"buffers": [
{
"byteLength": 32636,
"uri": "test_sphere.bin"
}
],
"extensionsUsed": [
"KHR_materials_volume"
]
}
Binary file added docs/data/RTS_GLTF/test_cube.bin
Binary file not shown.
Loading

0 comments on commit 1209982

Please sign in to comment.