textureCompress on client side #973
-
Hello and thank you for this amazing tool ! I am working on a Web App for sharing 3D assets. I looked for solution to manipulate and simplify 3D models from Client side, before uploading them to the server. Do you suggest a workaround for using your tool with another textureCompression process ? Great thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Search-For-a-Friend! Unfortunately I don't have a workaround for client-side texture compression right now. There appears to be some progress toward a WebAssembly version of Sharp (lovell/sharp#3522) which would not immediately mean browser support, but might eventually lead there. You might also look at https://github.com/kleisauke/wasm-vips or other libraries. If you find a library that supports the environment and compression methods that you need, using that with glTF Transform shouldn't be too difficult. See the discussion below for how you might write a function applying your own compression in glTF Transform: |
Beta Was this translation helpful? Give feedback.
-
Thank you for this detailed workaround, as I don't have strong requirements for the compression itself I am sure I will come up with something satisfying with the leads you gave me. |
Beta Was this translation helpful? Give feedback.
Hi @Search-For-a-Friend! Unfortunately I don't have a workaround for client-side texture compression right now. There appears to be some progress toward a WebAssembly version of Sharp (lovell/sharp#3522) which would not immediately mean browser support, but might eventually lead there. You might also look at https://github.com/kleisauke/wasm-vips or other libraries. If you find a library that supports the environment and compression methods that you need, using that with glTF Transform shouldn't be too difficult. See the discussion below for how you might write a function applying your own compression in glTF Transform: