glue-viz / glue-ar

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Updates to Draco compression infrastructure #23

Closed Carifio24 closed 4 months ago

Carifio24 commented 4 months ago

This PR updates the package's use of gltf-pipeline for doing Draco compression. When I had set this up previously, it was just "this will work if you have gltf-pipeline installed", which is fine for a hack but doesn't work for a proper package. The improvements here are based on the setup that pywwt uses to install the WWT research app. Basically, we use the js folder to install gltf-pipeline, and then make sure that our setup copies the relevant JavaScript directories into the Python installation location so that we're able to access the main gltf-pipeline script at runtime.