Skip to content

how to export gltf with draco compression with webp texture compression #919

Answered by donmccurdy
Suprhimp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Suprhimp! I don't know if THREE.GLTFExporter is able to export WebP textures. It may indeed convert them to PNG, and I think you'd need to ask on the three.js repository or forums for ideas on that. /cc @elalish is this something Model Viewer deals with?

glTF Transform can certainly apply Draco compression without changing your textures, but I think you'd need to keep GLTFExporter out of that process. glTF Transform can also convert textures to WebP, but that texture conversion only works in a Node.js environment today, not in a web browser. See #801.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@elalish
Comment options

@Suprhimp
Comment options

@elalish
Comment options

@Suprhimp
Comment options

Answer selected by donmccurdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants