xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
715 stars 286 forks source link

GLB file does not display properly #1313

Closed ksinb closed 5 months ago

ksinb commented 8 months ago

Describe the bug

To Reproduce

Expected behavior

Screenshots v2.4.0-alpha-54 v2.4.0-alpha-73 or later
スクリーンショット 2023-12-25 10 49 09 スクリーンショット 2023-12-25 10 48 03

Desktop (please complete the following information):

xeolabs commented 6 months ago

This .glb file loads successfully using GLTFLoaderPlugin in @xeokit/xeokit-sdk 2.5.2-beta-23:

Screenshot from 2024-02-26 09-42-56

xeolabs commented 6 months ago

Also, for completeness, convert2xkt is running out of memory while attempting to convert this .glb file - see below.

So indeed the best option for this file is to load it directly using GLTFLoaderPlugin.

node --max-old-space-size=18076 convert2xkt.js  -t -c convert2xkt.conf.json -s public-use-sample-apartment.glb -o geometry.xkt                         -l 
[convert2xkt] Running convert2xkt v1.1.15-beta-4...
[convert2xkt] Using JSON configs file: convert2xkt.conf.json
[convert2xkt] Converting single input file public-use-sample-apartment.glb...
[convert2xkt] Reading input file: public-use-sample-apartment.glb
[convert2xkt] Input file size: 16178.78 kB
[convert2xkt] Not embedding metadata in XKT
[convert2xkt] [ERROR]: [parseGLTFIntoXKTModel] Error: maxMemoryUsageInMB limit exceeded by at least 225MB