ProtoArt / spritec

The Sprite Compiler turns your 3D models into 2D spritesheets
https://protoart.me/
Mozilla Public License 2.0
32 stars 5 forks source link

sample model Fox doesn't work #211

Closed daose closed 4 years ago

daose commented 4 years ago

thread 'main' panicked at 'Unable to read index buffer from glTF geometry', src/libcore/option.rs:1188:5

https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/Fox

sunjay commented 4 years ago

I looked into this more. If a model doesn't have an index buffer, we're supposed to use its triangles as-is. That is, we're supposed to treat every 3 positions as a triangle, rather than having them all deduplicated.

To fix this bug, we would need to somehow convert meshes without index buffers into a mesh with an index buffer. This is technically possible, but not high priority, so I am closing this for now.

It's easy to workaround this issue by importing the model into Blender and re-exporting it.

fox