Replies: 2 comments 3 replies
-
Hi @Zego92! If you'd like self-contained output with textures and other resources embedded, you can write to a gltf-transform optimize input/first.gltf output/first.glb --compress draco --texture-compress ktx2 |
Beta Was this translation helpful? Give feedback.
-
Thanks for clarification ` const readdir = promisify(fs.readdir); const inputDir = path.join(__dirname, 'input'); async function convertTextureToKtx2(inputPath, outputPath) { async function convertGltfToKtx2(gltfFilePath, outputFilePath) {
} async function main() {
} main(); |
Beta Was this translation helpful? Give feedback.
-
Hello
I tried to optimize my gltf files using the next command
gltf-transform optimize input/first.gltf output/first.gltf --compress draco --texture-compress ktx2
as a result, I have separated specific files with the next formats:
Is there any way to avoid creating these additional files and have them included in a single gltf format file?
Thanks for help!
Beta Was this translation helpful? Give feedback.
All reactions