[SOLVED] Importing animations with shape keys from Blender to PlayCanvas?

I understand that blend shapes / morph targets are now supported in PlayCanvas. However, my team is struggling on understanding how to get this right. We suspect that the problem could be the exporting from Blender. Do anyone here have any knowledge of this?

We are importing the animations from Blender as FBX, and have been looking at this tutorial: How to create Blender shape key animations and import them in UE4 as morph target animations

We are getting the animation clips exported into PlayCanvas, however the shape keys / morph targets are not working when we try to play them either with the Animation (Legacy) or Anim components. We can’t seem to get the shape keys applied to the mesh. Animations that do not use the shape keys play correctly, however. When we use the internal GLB viewer on the model, we do see that we can manipulate the shape keys in viewer.

So we are wondering:

  • Do anyone have a good guide on exporting animations with shape keys from Blender over to PlayCanvas?
  • Is there a special trick to play animations with shape keys in PlayCanvas?

Thanks! :slight_smile:

Eivind

Hi @eivind,

This is possibly a bug on our side. Any chance you can share an FBX so we can investigate?

Thanks!

1 Like

Thanks for the quick reply, @slimbuck :slight_smile:

Here’s a test project we’ve set up with shape keys animations: PlayCanvas 3D HTML5 Game Engine

Thanks for your help!

Eivind

Hello again!

Sorry to bother you, but have you had the chance to look at this, @slimbuck? :slight_smile:
We have tried just about everything at this point, and it would be great to find out if it’s something we are doing wrong, or if it is in fact a bug in PlayCanvas.

Hi @eivind,

Sorry for not getting back to you earlier. I haven’t had a chance to look into this further, but may get a chance today. I did test a number of different FBX models and some work, others not. At this point I feel confident that the issue lies with us, but hopefully I can either get a fix or a workaround to you soonish.

Will keep you posted.

Hi @eivind,

Quick update here. It turns out our FBX converter never converted the morph target animations! I’ve now implemented that, but needs review, testing etc.

I’d expect it to go live in the next few weeks.

Thanks!

4 Likes

Great news! Thank you for all your help! :smiley:

Eivind

And it’s live: Release v1.21.39 · playcanvas/editor · GitHub

Enjoy! :tada:

3 Likes

This is fantastic! Thank you very much! :smiley: :partying_face:

1 Like

Hey,

Can someone give me an example of this working. I’m not sure what I’m doing wrong

-Thanks