xeokit-sdk icon indicating copy to clipboard operation
xeokit-sdk copied to clipboard

GLB file does not display properly

Open ksinb opened this issue 2 years ago • 2 comments

Describe the bug

  • GLB files do not display properly when the SDK version is v2.4.0-alpha-73 or later versions

To Reproduce

Expected behavior

  • GLB files display properly

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):

  • OS: MacOS 14.1.2
  • Browser: Chrome
  • Version: 120.0.6099.129

ksinb avatar Dec 25 '23 02:12 ksinb

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 avatar Feb 26 '24 08:02 xeolabs

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

xeolabs avatar Feb 26 '24 08:02 xeolabs