Importing

Blender -> Godot

  • About:

  • Formats:

    • glTF:

      • Example usage of some import options .

      • Shape Keys:

        • "If your model contains blend shapes (also known as 'shape keys' and 'morph targets'), your glTF export setting Export Deformation Bones Only  needs to be configured to Enabled  under the Animation export configurations. Exporting non-deforming bones anyway will lead to incorrect shading." - Godot Docs.

        • [Godot Bug] Sometimes the Mesh needs to be reopened for the Shape Keys to work properly after editing and saving one in Blender.

    • .blend:

      • Example of Blender to Godot workflow .

      • "From Godot 4.0 onwards, the editor can directly import .blend  files by calling Blender's glTF export functionality in a transparent manner." It is not explained how  this is done, but it does not seem to make a difference.

  • Animations:

    • Setting a 'Manual Frame Range' in Blender makes the animation cut off when imported to Godot; this is desired.

    • Enabling the 'Cyclic Animation' option in Blender does not make the animation loop in Godot.

    • Importing using '-loop' at the end of the Animation  or NLA Track  name makes it loop inside Godot by default. Example: 'animation_or_track_name-loop'.

    • NLA Editor:

      • Empty tracks are not exported to Godot.

      • If you are editing an animation in the NLA Editor, nothing can be exported. It will give an 'action is read-only' error. Stop editing the animation and try again if this happens.

  • Rigging:

    • IKs:

      • IKs can be imported without issues, but they do nothing.

      • During export to glTF, IKs are baked to FK so that the animation plays even though IKs do not work. The IK controller Bones move during the animation but have no effect on the Armature, as the IK was removed.

    • Bones:

      • Only deformation Bones are exported.

      • Regardless of animation method ( Common/Tweaks + IK  or Common/Tweaks + FK ), after exporting, all Deformation Bones are auto-baked and all other Bone influences removed. Good but strange.

    • "What to do when using animations defined with both IK and FK simultaneously?"

      • Ensure that when an animation uses FK, the IKs should not influence the Mesh, and when using IK, they should.

        • This ensures no issues during Deformation Bone baking.

      • Considering this baking condition, ideally maintain consistency: choose IK or FK and keep Mesh influence consistent to avoid issues during 'auto-bake' on export.

    • [~Possible Godot Bug] I believe Godot Bones point by default to the origin point  of the mesh when there is a direct parenting between a Mesh and Bone via 'Ctrl + P -> Bone' (i.e., direct, without Weight Paint).

      • To avoid this visual bug, do not use 'Apply Location' on the Mesh; instead use 'RMB -> Set Origin -> Origin to Geometry', so the origin point  stays inside the mesh instead of the floor when viewed in Godot.