Skip to content

Instantly share code, notes, and snippets.

@mikedh
Created July 28, 2022 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikedh/82522310b1fc403efaa08c3dc4579203 to your computer and use it in GitHub Desktop.
Save mikedh/82522310b1fc403efaa08c3dc4579203 to your computer and use it in GitHub Desktop.
Byte alignment error
{
"scene": 0,
"scenes": [{ "nodes": [0] }],
"asset": {
"version": "2.0",
"generator": "https://github.com/mikedh/trimesh"
},
"accessors": [
{
"componentType": 5125,
"type": "SCALAR",
"bufferView": 0,
"count": 3840,
"max": [641],
"min": [0]
},
{
"componentType": 5126,
"type": "VEC3",
"byteOffset": 0,
"bufferView": 1,
"count": 642,
"max": [1.0, 1.0, 1.0],
"min": [-1.0, -1.0, -1.0]
},
{
"componentType": 5126,
"type": "SCALAR",
"byteOffset": 0,
"max": [0.9999246597290039],
"min": [0.0006878557032905519],
"bufferView": 2,
"count": 642
},
{
"componentType": 5123,
"type": "SCALAR",
"byteOffset": 0,
"max": [997],
"min": [1],
"bufferView": 3,
"count": 642
},
{
"componentType": 5122,
"type": "SCALAR",
"byteOffset": 0,
"max": [999],
"min": [3],
"bufferView": 4,
"count": 642
},
{
"componentType": 5126,
"type": "VEC3",
"byteOffset": 0,
"max": [0.9992577433586121, 0.9934207797050476, 0.9993398785591125],
"min": [
0.0011495116632431746,
0.0035160810220986605,
0.002970956265926361
],
"bufferView": 5,
"count": 642
},
{
"componentType": 5126,
"type": "MAT4",
"byteOffset": 0,
"bufferView": 6,
"count": 642
}
],
"meshes": [
{
"name": "geometry_0",
"extras": {},
"primitives": [
{
"attributes": {
"POSITION": 1,
"_CustomFloat32Scalar": 2,
"_CustomUInt16Scalar": 3,
"_CustomInt16Scalar": 4,
"_CustomFloat32Vec3": 5,
"_CustomFloat32Mat4": 6
},
"indices": 0,
"mode": 4
}
]
}
],
"nodes": [
{ "name": "world", "children": [1] },
{ "name": "geometry_0", "mesh": 0 }
],
"buffers": [{ "byteLength": 76992 }],
"bufferViews": [
{ "buffer": 0, "byteOffset": 0, "byteLength": 15360 },
{ "buffer": 0, "byteOffset": 15360, "byteLength": 7704 },
{ "buffer": 0, "byteOffset": 23064, "byteLength": 2568 },
{ "buffer": 0, "byteOffset": 25632, "byteLength": 1284 },
{ "buffer": 0, "byteOffset": 26916, "byteLength": 1284 },
{ "buffer": 0, "byteOffset": 28200, "byteLength": 7704 },
{ "buffer": 0, "byteOffset": 35904, "byteLength": 41088 }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment