- Download a 3D model (Preferably STL)
- Compress number of verticies here.. Preferably have a total of less than 15k
- Convert STL to GLB
- Clone the webgl outlines repo
- In the
vertex-welder
directory, runnpm run dev
and upload the GLB file to there - Set
thresholdAngle
to as high as a value that seems reasonable. Usually just shy of 90 works fine for most models, but models with more curves may benefit from one less than 45 - Depending on the number of verticies, this step will take a while. Click
weldVerticies
to run. 15k takes around 30 seconds to run. Anything more than 20k will cause the program to hang for quite a long time (at least for my machine). Note that changing thethresholdAngle
will cause it to re-weld, so changing this value again will take a while to run - Download the file
- Run
npx gltf-pipeline -i welded_model.glb -d --draco.compressionLevel 10 -o compressed.glb
to compress the glb file
-
Notifications
You must be signed in to change notification settings - Fork 0
Winston-Lu/Winston-Lu.github.io
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Personal Portfolio
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published