microsoft / microsoft/glTF-SDK
Buffer error when reaching 2GB (2.147.869.560) byteLength
Open
@bghgary is already working on this.
Since Dec 7, 2023.
bug
- Dominant language
- C++
- Stars
- 626
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
my data to export are very big, and GLTFSDK raises an exception.
totalbyteLength seems not to go beyond 2.147.869.560 bytes.
Do you know the maximum of the offset that ResourceWriter can write ?
How can I extend it ?
L86 @ ResourceWriter.cpp

L34 @ StreamUtils.cpp

I noticed that Buffer and BufferView always have 1 item when exporting to glb.
Shouldn't be more reasonable to have multiple BufferViews and Buffers so as not to reach exceptions?
Best,
Dimitrios
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.