obj2gltf icon indicating copy to clipboard operation
obj2gltf copied to clipboard

Node string limitations

Open lilleyse opened this issue 8 years ago • 4 comments

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.

lilleyse avatar Apr 12 '17 17:04 lilleyse

Any changes on this?

patty-victor avatar Sep 15 '17 20:09 patty-victor

No change right now - however both --separate and --binary are not affected by this problem. This only happens when embedding resources as data-uris.

lilleyse avatar Sep 15 '17 20:09 lilleyse

You might try this in node v8.10. It fixed a problem we were having with a max string size limitation.

roy7 avatar Mar 27 '18 16:03 roy7

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.

likangning93 avatar Feb 19 '19 16:02 likangning93