jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
752 stars 43 forks source link

Can't load GLTF with shape-keys animations #176

Open strangetype opened 1 year ago

strangetype commented 1 year ago

PIXI3D can't load GLTF file with shape keys animation: image errors: image shader error: image

jnsmalm commented 1 year ago

Do you have an example glTF file so I can debug?

strangetype commented 1 year ago

yes, this file

jnsmalm commented 1 year ago

Sorry for taking so long, I forgot about this one. I have been looking into this issue and there is no quick fix for this. The implementation has to be changed to handle these many morph targets (150 of them).

A question, are you sure you need to use morph targets to do this kind of animation or was this file just to demo the issue in Pixi3D? If not, you can create this animation just using transformation animation instead.

strangetype commented 1 year ago

I need morph targets because this kind of animation creatied by physics emulation. there is no any 3d editors which is able to create physics animation using transform animation. this file is not for demo.

jnsmalm commented 1 year ago

Would it be possible to instead use joints/bones for the physics simulation and export those instead? Thing is I'm pretty occupied with other stuff right now and don't have time to implement support for more morph targets.

strangetype commented 1 year ago

thx for advice.