Open PaulLockett opened 2 years ago
I can't access the replit (password protected), but this error might happen if the .gltf
file has multiple .bin
resources — does that sound right? Some consolidation to pack those into a .glb
.
A quick workaround might be to drop the file into https://gltf.report/, open the script tab, and run the script below:
const buffers = document.getRoot().listBuffers();
const mainBuffer = buffers[0];
document.getRoot().listAccessors().forEach((accessor) => {
accessor.setBuffer(buffers[0]);
});
buffers.forEach((buffer, index) => {
if (index > 0) buffer.dispose();
});
console.log('... ✅ Done');
I run this and get this error:
you can see the code and find the .gltf file here: link
I want to be able to export my new 3d design after using this tool to manipulate it. I think the -T transform function will let me do that.