Jump to content
  • Advertisement
Sign in to follow this  
  • entry
    1
  • comments
    3
  • views
    2377

About this blog

Notes on editing skinned meshes and skeletal animations

Entries in this blog

 

Just some notes taken over the years

Nothing earth-shaking here - just notes to remind myself how to get some things done in Blender. The activities described assume a working familiarity with Blender 2.69, a knowledge of how to install an addon to Blender, links for a DirectX x-file export addon, and a willingness to go through all that to get an X-file with multiple animation sets in it.

Create a mesh.
In object mode, add an armature to the scene (shift-A)
Create the full skeleton.
Set the skeleton as the parent of the mesh: select the skeleton, shift-select the mesh, ctrl-p

Given a skinned mesh and armature:

Editing animation set:

Select frame to edit in the timeline window.
Select bone(s).
Orient bone(s) to desired position.
Select bone(s) modified in this frame.
Press I and save (normally) Rot --> for the first frame select all bones (press A). Press I and save LocRotScale.

To copy and paste frame data:
Select frame to copy.
With mouse over 3D view, press Ctrl-C.
Select frame to paste data into.
With mouse over 3D view, press Ctrl-V.
Press I and select LocRotScale to overwrite the frame data.

To create multiple animationsets in one file:

Create an animation set.
In another window, select DopeSheet.
In the dropdown menu (bottom of window) that probably says "Dope Sheet," select "Action Editor"
Select the action. Rename it if desired. Press F in the dropdown list of actions to create a fake user.

Create another action set by clicking "+" in the action selection dropdown.
The animation editor should show a "clean" timeline.
Edit that new animation set.
In the DopeSheet Action Editor, press F to create a fake user for that action.

Links to the Blender DirectX addon:

http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Import-Export/DirectX_Exporter
https://developer.blender.org/T22795

Exporting to DirectX X file:
In object mode, select the armature and the mesh.
File->Export->DirectX
Export:
Selected Objects Only
Meshes
Normals
UV Coordinates
Materials
Armature Bones
Animations
Include Frame Rate
Export Actions as AnimationSets
Attach Unused Actions to First
Note: There will be a "default action" or similar in the DirectX export file, probably at the end of the file. That can be deleted using an ASCII editor.

N.B., please see Ashaman73's comments below for alternate (and possibly better) ways to do things in Blender.

Buckeye

Buckeye

Sign in to follow this  
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!