3D shadowmap and skinned animation deformation (solved)

Hi forum.

Pretty newbie with Defold so not sure if it’s a bug. I’ve followed the manual and as a test created and imported a skinned animation that deforms the mesh in a model, it’s played with model.play_anim(), which all works as expected.

But when rendering the shadowmap, the deformation of the mesh isn’t applied. It’s kind of “stuck” in the “rest pose”. Like this:

Any suggestions how to solve this?

Edit: so I read the “Getting Help”, some context here. I’m running version 1.9.5 (channel: editor_alpha) on MacOS.

1 Like

A similar thing happened to me because the shadow material’s ‘Vertex Space’ was set to ‘Local’, while the skinned model’s ‘Vertex Space’ was set to ‘World’.
They should both be set to ‘World’ if you want shadows to work with skinned animation; otherwise, you’ll get the shadow of the model without the pose.

5 Likes

Thank you so very much, that solved it!!

3 Likes