0
$\begingroup$

I have a simple animation which I export into FBX.
When I import it into Unity (or back into Blender), it looks different.

This is how it is supposed to look ():

This is how it looks (exported FBX):

Is anyone able to explain what is the reason for this?

Additional info:

  • Animal rigify armature with custom Jaw bone added
  • Distortion around frame 50
  • FBX file if needed
$\endgroup$

1 Answer 1

0
$\begingroup$

As foreword, your exported FBX is full of unnecessary things that make your file messy and heavy.

When you export, make sure you export only the selection, and only deform bones. You can also disable leaf bones if it's a final export (I.E. you will not import the rig somewhere else and edit it). And also set the FBX Armature node to Root might help with compatibility.

enter image description here


To me, it looks like your modification of the rig actually broke the rig. We can see a bunch of bones that aren't moving normally:

demo gif

Plus your model and rigs aren't aligned to begin with, and your wolf is facing the right side instead of the front side:

enter image description here

I'm not sure exactly what you did, it looks like you deleted some parts of the rig and added some, but it didn't go well. I will try to show a way to fix it.

Fix rotation

First, let's fix the rotation issue. Select your mesh in Object mode and hit ⎇ AltP > Clear parent Keep Offset.
Hit RZ90⏎ Enter to rotate that wolf, then hit ⎈ CtrlA > Apply Rotation. Now the mesh object is fixed. You can select the metarig and hit ⎇ AltR to revert its rotations to zero, and delete the rig (we'll make a new one from the metarig). Also, RMB RMB your WGTS collections > Delete hierarchy.

Fix rig

I create a new wolf metarig, to be sure to start from a clean working base. Feel free to start from your metarig, but it's less safe.

Select the metarig and ↹ Tab into Edit Mode. Enable these options in the Armature properties to better see what you do:

enter image description here

  1. ↹ Tab into edit mode and delete the face and paw bones with x.
  2. Select spine.011 then shift select spine.010 and press ⎇ AltP > Disconnect Bone.
  3. Move spine.011 tail to where you want to rotate the jaw from, and hit e to extrude the jaw bone from there, name it spine.012.
  4. In spine.011's Bone properties > Rigify Type panel, set it to basic.copy_chain:
    enter image description here
  5. Check if spine.009's rig type is spines.basic_spine.
  6. Make sure all the neck, face and jaw bones are in the Spine bone collection:
    enter image description here
  7. In the Armature Properties > Rigify panel, set a proper rig name like Wolf_rig and remove the "Overwrite Existing" entries.
    enter image description here
  8. Optional: In the Bone Collection UI subpanel, remove the three Face layers (you will not need them just for a jaw bone) and also the two Paws layers (you have nothing for paws).
  9. Generate Rig.
  10. ↹ Tab into object mode, select the mesh then armature, Ctrl P > Set Parent To Armature Deform.
  11. Select the mesh and go to its mesh data properties > Vertex Groups. You already have weights made for what was your jaw and head bones in the previous rig, but they don't have the same name anymore. So rename DEF-jaw to DEF-spine.012, and DEF-spine.010 to DEF-spine.011.
  12. Optionally, select your rig, tab in edit mode, and rename your controller bones to what you want. But only the controllers, not the other bones.
  13. Optionally, select your spine.011 bone and lock its location channels. As we set it to non-connected child, it is otherwise free to move away from the neck with no proper deformation. The head bone already does that job more accurately with the rig actually deforming correctly.

Result:

enter image description here

Exporting

When you want to export, first SAVE your file. Then select only your deform bones layer, then the bones inside it, then bake the animation (menu Pose > Animation > Bake Action) with only selected and clear constraints and parents enabled:

enter image description here

After exporting an animation, the result is preserved (left is original, right is export):

enter image description here

$\endgroup$
1
  • $\begingroup$ Thanks alot for bunch of practical hints! Not moving ORG bones is definitely something I will pay attention to from now on. I followed the steps, but failed on setting Rigify Types (need to educate myself on that) and receiving error: Input to rig type must be a chain of 3 or more bones. In the end I made it work by only setting basic.copy_chain on spine.010 - it still works as I'd expect though. $\endgroup$
    – Dedemonn
    Commented Nov 22, 2023 at 22:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .