-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to insert extract nodes vs using implement channels attrib…
…ute on conversion from gltf. (#8)
- Loading branch information
Showing
18 changed files
with
795 additions
and
50 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
242 changes: 242 additions & 0 deletions
242
docs/data/RTS_GLTF/SciFiHelmet.gltf_converted.mtlx.gltf
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,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 not shown.
Oops, something went wrong.