Open dottodot opened 2 years ago
before you go through gltfjsx make sure to prepare the model for the web. the model is almost 80mb, that is way too much. otherwise you would have to configure node to hold out a little longer, i don't know how accurate the information is but something like this perhaps https://support.circleci.com/hc/en-us/articles/360009208393-How-can-I-increase-the-max-memory-for-Node-
Related:
The memory limit comes from the jpeg-js
dependency, rather than the memory limit of Node.js itself. Other image resizing solutions (sharp
, @squoosh/lib
) would use memory more efficiently but aren't integrated into glTF Transform yet because they don't work in a web environment. Progress on that end:
when running
npx gltfjsx scene.gltf -t -T
I'm getting this errorIs there anyway to increase the memory limit, the model I'm using is one I downloaded from here https://sketchfab.com/3d-models/the-king-s-hall-d18155613363445b9b68c0c67196d98d