Closed ernstnaezer closed 6 years ago
I noticed that the byteLength for indices doesn't add up to the number of indices - it's off by 4 bytes.
byteLength
When exporting the default Blender cube this is what I get:
accessors ... { "componentType": 5123, "count": 36, "name": "accessor_buffer_Cube_0", "type": "SCALAR" } bufferViews... { "byteLength": 76, "name": "bufferView_buffer_Cube_0", }
The element size of type 5123 (UNSIGNED_SHORT) is 2 bytes, so 36 * 2 should be 72, not 76. When I force maximum unsigned shorts indices on the Khronos Group exporter, this does gives the correct length of 72 bytes.
Any idea?
I noticed that the
byteLength
for indices doesn't add up to the number of indices - it's off by 4 bytes.When exporting the default Blender cube this is what I get:
The element size of type 5123 (UNSIGNED_SHORT) is 2 bytes, so 36 * 2 should be 72, not 76. When I force maximum unsigned shorts indices on the Khronos Group exporter, this does gives the correct length of 72 bytes.
Any idea?