Open lilleyse opened 7 years ago
Any changes on this?
No change right now - however both --separate
and --binary
are not affected by this problem. This only happens when embedding resources as data-uris.
You might try this in node v8.10. It fixed a problem we were having with a max string size limitation.
Heads-up that we may also be able to reduce instances of the string limitation by binning buffers, iirc obj2gltf
tries to generate a single output buffer, but there's tons of models out there where the geometry can be "binned" into multiple buffers based on something simple like material use or perhaps different vertex attributes.
Buffers larger than ~192MB cannot be base64 encoded due to a NodeJS limitation. https://github.com/nodejs/node/issues/4266
It would be good to get around this. In most cases however using the
--separate
flag is the way go.