xuzhusheng / gltf-to-3d-tiles

Convert glTF model to Glb, b3dm and 3D tiles format.
MIT License
133 stars 38 forks source link

Big memory usage #6

Open Amoki opened 2 years ago

Amoki commented 2 years ago

Hi,

I'm trying the CLI to convert a 16MB glTF to 3d-tiles and the process takes more than 10 BG of RAM until it is killed by my kernel.

The gltf file uses big coordinates (up to ~5 000 000), I don't know if it may be related.

python main.py tileset building.gltf outputs/

building.zip

xuzhusheng commented 2 years ago

I check your gltf model. while spliting gltf to b3dm / i3dm, I copy the needed buffer views. for your model, it share buffer views between gltf nodes, as a result, when splited to thousands of b3dm/i3dm, the buffer data copy thousands time