ws-3d: model/gltf (glTF 2.0 JSON + GLB read/write: accessors of every type incl. normalized/sparse/strided/padded matrices, PBR + KHR_materials_*, KHR_texture_transform, images kept encoded, samplers, cameras, KHR_lights_punctual, skins, animations, morph targets, KHR_mesh_quantization, extras/unknown extensions round trip); Khronos sample assets + gltfpack + assimp fixtures

This commit is contained in:
4DBug committed 2026-10-31 09:02:59 -05:00
1 parent 35891a06d1
commit 20ca5a054d
93 files changed
+5167 -5

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# LICENSE file for the model: Animated Morph Cube
All files in this directory tree are licensed as indicated below.
* All files directly associated with the model including all text, image and binary files:
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
* This file and all other metadocumentation files including "metadata.json":
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
Full license text of these licenses are available at the links above.
This license excludes logos and associated trademarks.
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
@@ -0,0 +1,259 @@
{
"buffers":[
{
"uri":"AnimatedMorphCube.bin",
"byteLength":1700
}
],
"asset":{
"version":"2.0",
"generator":"gltfpack 0.13"
},
"extensionsUsed":[
"KHR_mesh_quantization"
],
"extensionsRequired":[
"KHR_mesh_quantization"
],
"bufferViews":[
{
"buffer":0,
"byteOffset":0,
"byteLength":288,
"byteStride":4,
"target":34962
},
{
"buffer":0,
"byteOffset":288,
"byteLength":576,
"byteStride":8,
"target":34962
},
{
"buffer":0,
"byteOffset":864,
"byteLength":72,
"target":34963
},
{
"buffer":0,
"byteOffset":936,
"byteLength":508
},
{
"buffer":0,
"byteOffset":1444,
"byteLength":254
}
],
"accessors":[
{
"bufferView":0,
"byteOffset":0,
"componentType":5120,
"count":24,
"type":"VEC3",
"normalized":true
},
{
"bufferView":1,
"byteOffset":0,
"componentType":5123,
"count":24,
"type":"VEC3",
"min":[
0,
5451,
0
],
"max":[
5481,
10932,
5481
]
},
{
"bufferView":0,
"byteOffset":96,
"componentType":5120,
"count":24,
"type":"VEC3",
"normalized":true
},
{
"bufferView":1,
"byteOffset":192,
"componentType":5122,
"count":24,
"type":"VEC3",
"min":[
0,
0,
0
],
"max":[
0,
5188,
0
]
},
{
"bufferView":0,
"byteOffset":192,
"componentType":5120,
"count":24,
"type":"VEC3",
"normalized":true
},
{
"bufferView":1,
"byteOffset":384,
"componentType":5122,
"count":24,
"type":"VEC3",
"min":[
0,
0,
0
],
"max":[
0,
5451,
0
]
},
{
"bufferView":2,
"byteOffset":0,
"componentType":5123,
"count":36,
"type":"SCALAR"
},
{
"bufferView":3,
"byteOffset":0,
"componentType":5126,
"count":127,
"type":"SCALAR",
"min":[
0
],
"max":[
4.19999981
]
},
{
"bufferView":4,
"byteOffset":0,
"componentType":5121,
"count":254,
"type":"SCALAR",
"normalized":true
}
],
"materials":[
{
"name":"Material",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.603827417,
0.603827417,
0.603827417,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
}
],
"meshes":[
{
"primitives":[
{
"attributes":{
"NORMAL":0,
"POSITION":1
},
"mode":4,
"targets":[
{
"NORMAL":2,
"POSITION":3
},
{
"NORMAL":4,
"POSITION":5
}
],
"indices":6,
"material":0
}
],
"weights":[
0,
0
]
}
],
"animations":[
{
"name":"Square",
"samplers":[
{
"input":7,
"output":8
}
],
"channels":[
{
"sampler":0,
"target":{
"node":0,
"path":"weights"
}
}
]
}
],
"nodes":[
{
"mesh":0,
"translation":[
-0.0100000044,
-0.0298908409,
-0.00999999978
],
"scale":[
3.64900689e-06,
3.64900689e-06,
3.64900689e-06
]
},
{
"name":"AnimatedMorphCube",
"rotation":[
0,
0.707106709,
-0.707106829,
0
],
"scale":[
100,
100,
100
],
"children":[
0
]
}
],
"scenes":[
{
"nodes":[
1
]
}
],
"scene":0
}