InterleavedBufferAttribute is not supported by GLTFExporter currently.
There is a comment which verifies this:
// @TODO Fails on InterleavedBufferAttribute, and could probably be
// optimized for normal BufferAttribute.
I'm happy to implement this, but I wanted to create an issue first to make sure the issue is visible, it's not currently being worked on and everyone is notified about the progress about it.
r98
Agreed it would be nice to support this. I haven't worked on it yet, but note https://github.com/mrdoob/three.js/pull/15348 does affect that code a little bit. If you're able to open a PR that would be great thanks!
/cc @takahirox @fernandojsg
Thanks for the heads up. Can I regard the the code within #15348 as the most up to date version of the exporter, ie. can I base my updates on top of that?
Depends on how comfortable you are with Git rebasing later 馃槄 I think we can get the other PR merged soon though.
+1 to a PR adding support for it! ^_^
I am currently using following code to fix this:
Let me know if I am missing anything else.
Fixed via 39fbd2c3d0dbf0f42a3c3fe486b39b6447ab270b and 1969817095dd2a3df8fe6b30fccb5918f9c20c96.
If interleaved data should be retained in the produced glTF
asset, it's best to make a new issue. The current implementation just deinterleaves data.
@Mugen87 why itemSize check is > 3 and not > 4
Using 4 is of course better. Fixing...
Most helpful comment
@Mugen87 why itemSize check is > 3 and not > 4