Skip to content

textureCompress on client side #973

Discussion options

You must be logged in to vote

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:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by donmccurdy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants