SwiftGLTF icon indicating copy to clipboard operation
SwiftGLTF copied to clipboard

Models fails to import when byteStride is non-zero

Open FreakTheMighty opened this issue 2 years ago • 2 comments

The attached model fails to import and I think I tracked it down to this chunk of code.

https://github.com/schwa/SwiftGLTF/blob/3c623dbdb50d6e38ca303f39efc44f2967b03b1c/Sources/SwiftGLTF/gltf.swift#L133-L135

The model's bufferView contains a byteStride of 12. I've made some attempts at fixing it, but I cant quite seem to get the data right here.

Box-byteStride.glb.zip

FreakTheMighty avatar Jan 16 '23 20:01 FreakTheMighty