how to export gltf with draco compression with webp texture compression #919
-
Hi, I'm using gltf-transform/core module for export Three js scene to glb with compression draco. It's good to use but I found that, even I open webp textured glb in three js, when I export glb with draco, It change webp texture to just png texture. Is there any example of that situation? Any way right now Im using this way to change scene to gltf with draco compression by this code below.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.