pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.41k stars 290 forks source link

Is there a way to force scale = 1? #224

Open vasco3 opened 10 months ago

vasco3 commented 10 months ago

When I ran transform I get the jsx but all of the meshes and groups are with scale=0.01 which affects the positions when I scale it up to 1.

example pnpm gltfjsx ./public/3d/premiline_v2.gltf --transform -k --precision=3 --keepmeshes

jsx result:

image

Any ideas how to force scale=1?

donmccurdy commented 5 months ago

gltfjsx copies the scale of the object as found in the input file. To 'remove' the scale without changing the visual result, you'd need to apply that scale to the raw vertex data. gltfjsx can't do that, but you can do this in Blender ("Apply Scale") in the search bar, or in glTF Transform.