Animating an Object in Blender Using Armatures and Exporting to COLLADA Format (Part 4)

Part 4: Creating the Main Animation and Exporting to Collada

Blender does not support or export COLLADA’s animation clips. In order to export multiple animations you must create a single animation that contains all of the animations you wish to export. Once in Vanda Engine you can reference portions of the main animation to act as clips.

In the Dope Sheet window select the Look action. Select all the keyframes and press Ctrl-C to copy them. Select the Crawl action and hit the plus button next to the name field to create a new action. The new action will contain the three frames from the Crawl action. Rename the new action to Main and press the F next to the name field.

Blender-Animate-Armature-Export-COLLADA-Image28.jpg

Select one frame after the frames from the crawl, in this case the 31st, and press Ctrl-V with the mouse over the Dope Sheet window to paste the Look action into it.

Blender-Animate-Armature-Export-COLLADA-Image29.jpg

Select the frame position of the last keyframe, which should be 146, and press E to set that as the end of the Main action. Press space and type Bake into the field. Select Bake Action from the results and press OK.

Blender-Animate-Armature-Export-COLLADA-Image30.jpg

Adding a Texture to the Mesh

Here is a texture for the worm you can download:

With the worm mesh selected, select the Materials Tab in the Properties panel. Click the plus symbol next to the material list to add a new material.

Blender-Animate-Armature-Export-COLLADA-Image31.jpg

Click the Texture tab to the right of the Materials tab. Click New under the texture list.

Blender-Animate-Armature-Export-COLLADA-Image32.jpg

Under the Image section of the newly created texture click Open and find the texture image you downloaded above.

Blender-Animate-Armature-Export-COLLADA-Image33.jpg

To map the texture to the mesh it must be unwrapped. With the mesh selected, press Tab to enter Edit mode. Press U and then select Cylinder Projection and select Align to Object under Direction in the dialogue that appears on the left.

Blender-Animate-Armature-Export-COLLADA-Image34.jpg

Set the Viewport Shading to material mode to view the texture on your mesh. You may also want to hide your armature by selecting it and hitting H. To unhide it at any time hit Alt-H.

Blender-Animate-Armature-Export-COLLADA-Image35.jpg

Lastly, let’s make the material shinier to make the worm look slimy. Return to the Material Tab. Under the Specular section of the settings increase the Intensity to a value of about 0.25.

Blender-Animate-Armature-Export-COLLADA-Image36.jpg

Exporting the Animation

Select File -> Export -> Collada (Default) (.dae), select the location you’d like to export to, and click Export. See Tutorial 1: Exporting from Blender to COLLADA Format for more information on exporting.

Importing into Vanda Engine

When you first import your animation the skeleton and mesh may not be aligned. After cycling through the animation once this will correct itself. See Tutorial 1: Exporting from Blender to COLLADA Format for more information on importing.

Patrick-Manhatton

Patrick Manhatton (macklehatton@gmail.com)

Patrick is an independent game designer interested in absolutely every aspect of making games. He does a little of everything involved in game development and a lot of conceptual design and 3d modelling. He is currently studying computer science and psychology and hopes work in research using games.

(c) copyright Zehne Ziba Co., Ltd. For more information, please refer to copyright notice.

adminAnimating an Object in Blender Using Armatures and Exporting to COLLADA Format (Part 4)