xeokit-sdk
xeokit-sdk copied to clipboard
GLB file does not display properly
Describe the bug
- GLB files do not display properly when the SDK version is
v2.4.0-alpha-73or later versions
To Reproduce
- Open below sample GLB file with
GLTFLoader - sample GLB file
Expected behavior
- GLB files display properly
Screenshots
| v2.4.0-alpha-54 | v2.4.0-alpha-73 or later |
|---|---|
Desktop (please complete the following information):
- OS: MacOS 14.1.2
- Browser: Chrome
- Version: 120.0.6099.129
This .glb file loads successfully using GLTFLoaderPlugin in @xeokit/xeokit-sdk 2.5.2-beta-23:
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