3DStreet / 3dstreet

🚲🚢🚌 Web-based 3D visualization of streets using A-Frame
https://3dstreet.app
Other
249 stars 30 forks source link

AR optimized gltf Export #627

Open kfarr opened 2 weeks ago

kfarr commented 2 weeks ago

this should be an additional option, separate from

temporarily remove / hide these elements from the scene, then re-add / reshow them:

vincentfretin commented 2 weeks ago

Currently with GLTFExporter, you end up with duplicated textures, so consuming more GPU memory. You can check that with https://gltf.report/ I'm using

gltf-transform optimize --simplify false scene.glb scene_opt.glb

to have the glb optimized, the optimize command includes the dedup step that dedup the materials and so the textures. We should be able to execute that step in javascript just after GLTFExporter.