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: Mesh Primitive Modes
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,233 @@
{
"asset": {
"version": "2.0"
},
"scene": 0,
"scenes": [
{
"nodes": [0, 1, 2, 3, 4, 5, 6]
}
],
"nodes": [
{
"translation": [-0, 3, 0],
"mesh": 0
},
{
"translation": [-2, 0, 0],
"mesh": 1
},
{
"translation": [0, 0, 0],
"mesh": 2
},
{
"translation": [2, 0, 0],
"mesh": 3
},
{
"translation": [-2, -3, 0],
"mesh": 4
},
{
"translation": [0, -3, 0],
"mesh": 5
},
{
"translation": [2, -3, 0],
"mesh": 6
}
],
"meshes": [
{
"name": "mesh with POINTS",
"primitives": [
{
"attributes": {
"POSITION": 7
},
"indices": 0,
"mode": 0
}
]
},
{
"name": "mesh with LINES",
"primitives": [
{
"attributes": {
"POSITION": 7
},
"indices": 1,
"mode": 1
}
]
},
{
"name": "mesh with LINE_LOOP",
"primitives": [
{
"attributes": {
"POSITION": 7
},
"indices": 2,
"mode": 2
}
]
},
{
"name": "mesh with LINE_STRIP",
"primitives": [
{
"attributes": {
"POSITION": 7
},
"indices": 3,
"mode": 3
}
]
},
{
"name": "mesh with TRIANGLES",
"primitives": [
{
"attributes": {
"POSITION": 7
},
"indices": 4,
"mode": 4
}
]
},
{
"name": "mesh with GL_TRIANGLE_STRIP",
"primitives": [
{
"attributes": {
"POSITION": 7
},
"indices": 5,
"mode": 5
}
]
},
{
"name": "mesh with GL_TRIANGLE_FAN",
"primitives": [
{
"attributes": {
"POSITION": 7
},
"indices": 6,
"mode": 6
}
]
}
],
"buffers": [
{
"uri": "buffer.bin",
"byteLength": 216
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 130,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 132,
"byteLength": 84,
"target": 34962
}
],
"accessors": [
{
"name": "indices for POINTS",
"bufferView": 0,
"byteOffset": 0,
"componentType": 5123,
"count": 7,
"type": "SCALAR",
"max": [6],
"min": [0]
},
{
"name": "indices for LINES",
"bufferView": 0,
"byteOffset": 14,
"componentType": 5123,
"count": 12,
"type": "SCALAR",
"max": [6],
"min": [0]
},
{
"name": "indices for LINE_LOOP",
"bufferView": 0,
"byteOffset": 38,
"componentType": 5123,
"count": 7,
"type": "SCALAR",
"max": [6],
"min": [0]
},
{
"name": "indices for LINE_STRIP",
"bufferView": 0,
"byteOffset": 52,
"componentType": 5123,
"count": 7,
"type": "SCALAR",
"max": [6],
"min": [0]
},
{
"name": "indices for TRIANGLES",
"bufferView": 0,
"byteOffset": 66,
"componentType": 5123,
"count": 18,
"type": "SCALAR",
"max": [6],
"min": [0]
},
{
"name": "indices for TRIANGLE_STRIP",
"bufferView": 0,
"byteOffset": 102,
"componentType": 5123,
"count": 6,
"type": "SCALAR",
"max": [6],
"min": [1]
},
{
"name": "indices for TRIANGLE_FAN",
"bufferView": 0,
"byteOffset": 114,
"componentType": 5123,
"count": 8,
"type": "SCALAR",
"max": [6],
"min": [0]
},
{
"name": "positions",
"bufferView": 1,
"byteOffset": 0,
"componentType": 5126,
"count": 7,
"type": "VEC3",
"max": [0.866, 1.0, 0.0],
"min": [-0.866, -1.0, 0.0]
}
]
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B