I am encountering a specific issue where I need to export an indexed geometry with a draw range. Unfortunately, the GLTFExporter does not support this feature, as indicated by the comment in the code:
// @TODO Indexed buffer geometry with drawRange not supported yet
You can find this information in the GLTFExporter file on line 564 at the following link: https://github.com/mrdoob/three.js/blob/master/examples/js/exporters/GLTFExporter.js
After investigating the commit history, it seems like this functionality has not been updated for 3 months, indicating it may not be addressed anytime soon. I attempted to work around this by removing the index buffer and adjusting the position buffer attribute array based on the draw range, but unfortunately, this approach did not work and caused my geometry to break. Can anyone suggest a workaround or provide guidance on how to proceed with my geometry?
Any help would be greatly appreciated. Thank you.
EDIT:
As a temporary solution, I have opted to "de-index" my geometry for the export process and maintain the draw range, as this workaround is supported by the exporter. While this method involves creating a new geometry with new BufferAttributes, it only applies to the export process and can be done asynchronously. I am hopeful for a more efficient solution in the future.