Skip to content

Buffer error when reaching 2GB (2.147.869.560) byteLength #116

@jimver04

Description

@jimver04

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

image

L34 @ StreamUtils.cpp

image

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions