pmndrs / gltfjsx

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

Some part of the model in wrong position #62

Closed DBingo closed 3 years ago

DBingo commented 3 years ago

I use the robot's glb file from https://threejs.org/examples/webgl_animation_skinning_morph.html

It can be correctly rendered (include animations) in https://gltf-viewer.donmccurdy.com/ But when I use gltfjsx and react-three-fiber, the robot's hand have something wrong.

I notice that the glb file contain some errors when validate by https://github.khronos.org/glTF-Validator/ But I don't know how to fix this problem.

Robot.zip

drcmda commented 3 years ago

it's a bit weird indeed. it has no problems if you just use <primitive instead. i think the problem is that the armature is confused. it containes meshes in and outside of the bones. hands are outside, the rest is tied to the bones.

drcmda commented 3 years ago

this is fixed