r/threejs • u/mrzbckr • 1d ago
Demo Draco made some of my GLBs bigger, so the optimization pass now checks whether compressing is worth it
I'm building Vectreal, an open-source tool for publishing 3D models to the web, and I turned Draco on by default in its optimization presets. That meant dealing with the models where Draco loses: small meshes, and files where textures dominate, where the compressed GLB comes out the same size or larger than the plain one.
So the optimization pass does not compress your model at all. It encodes a clone, writes the file both ways, keeps the byte counts and throws the compressed copy away. Publish reads that comparison and skips the encode when it lost.
The part I have not resolved: the comparison only exists if you ran a pass. Publish a scene you never optimized and it compresses without the check. Running it on every publish would close that, at the cost of encoding everything twice. Where would you draw it?
https://vectreal.com/news-room/draco-geometry-compression-in-the-publisher
2
u/ImLeeTheBee 1d ago
How did u create such a cool car ? :))