gltf-transform optimize
removes uv1
attribute from geometry.
#1296
-
Here are the differences in the geometry attributes before and after optimization using gltf-transform. Command I used: gltf-transform optimize without_compression.glb scene_opt.glb --compress draco --flatten false --join false --palette false --texture-compress auto Is there a way to fix this? UPDATE: If we run each step separately, it seems to preserve the gltf-transform dedup without_compression.glb scene_opt.glb
gltf-transform instance scene_opt.glb scene_opt.glb
gltf-transform weld scene_opt.glb scene_opt.glb
gltf-transform simplify scene_opt.glb scene_opt.glb
gltf-transform resample scene_opt.glb scene_opt.glb
gltf-transform prune scene_opt.glb scene_opt.glb
gltf-transform sparse scene_opt.glb scene_opt.glb
gltf-transform png scene_opt.glb scene_opt.glb
gltf-transform jpeg scene_opt.glb scene_opt.glb
gltf-transform draco scene_opt.glb scene_opt.glb The issue that I'm majorly facing is: UPDATE Upon doing some digging, what I found is: glTF-Transform/packages/cli/src/cli.ts Lines 361 to 366 in 255b715 And I believe the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @subhankar-trisetra! You're correct that the |
Beta Was this translation helpful? Give feedback.
Hi @subhankar-trisetra! You're correct that the
keepAttributes: false
option is responsible for removing UVs (and other vertex attributes) that are unused in the given file. Currently theoptimize
CLI command doesn't expose that as a flag. If you're doing this programmatically in a script you can of course choose whichever options, or I'd be open to PRs adding this flag to theoptmize
CLI command.