pmndrs / gltfjsx

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

Skinned meshes aren't attached to the body #76

Closed bfuhne closed 3 years ago

bfuhne commented 3 years ago

I convert a .glb file with animations, here a container has animated side panels. These side panels should be attached to the body, but are looking like this

Incorrect Bildschirmfoto 2021-04-12 um 21 51 00

Using the online version here: https://gltf.pmnd.rs/

they appear correctly: Correct: Bildschirmfoto 2021-04-12 um 21 51 07

drcmda commented 3 years ago

i hope it's fixed. the reason was that materials had duplicate names. if it accidentally picked a duplicate without the "skinning" attribute, skinning is broken and models are detached.

bfuhne commented 3 years ago

I converted the glb-file and it not only fixed the positioning of the side panels correctly, we can also trigger the animation as expected. Thank you very much!