Giter Site home page Giter Site logo

Comments (4)

xeolabs avatar xeolabs commented on June 21, 2024

We have a solution for this, I'll describe below.

This happens when NodeJS cannot allocate all the necessary memory it needs to convert large files. NodeJS always has a hard 1GB limit on how much memory it can allocate for text strings in memory. When we try to process large glTF and JSON files, users often encounter the error you've shown.

In xeokit-sdk 2.4.0 we can now avoid this error by using the model splitting feature described in this tutorial.

For splitting, we extended ifc2gltfcxconverter and convert2xkt, to automatically split models into parts, and we also extended xeokit-sdk and xeokit-bim-viewer to seamlessly load split models. Note that ifc2gltfcxconverter is our closed source tool provided by Creoox with a commercial license.

As a result, we are now able to convert and load models like this 2GB Baku stadium IFC, so it seems to solve this problem pretty nicely:

Screenshot from 2023-11-10 02-00-29

from xeokit-convert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.