Difference between revisions of "Custom Animations"

From Wolfire Games Wiki
Jump to: navigation, search
(Added basic layout & text.)
 
m (Exporting an animation: added TODO: Is that important?)
Line 8: Line 8:
 
#* Click the '''From Timeline''' button to set the timeline's start & end frames as the start & end points of your animation; '''Note:''' Keyframes outside of this time frame won't be exported.
 
#* Click the '''From Timeline''' button to set the timeline's start & end frames as the start & end points of your animation; '''Note:''' Keyframes outside of this time frame won't be exported.
 
#* Set the '''Looping''' value to 0 if you don't want your animation to loop. Set it to 1 if you want it to loop. '''Todo: If the value is higher, will it do sth different, like play the animation n times?'''
 
#* Set the '''Looping''' value to 0 if you don't want your animation to loop. Set it to 1 if you want it to loop. '''Todo: If the value is higher, will it do sth different, like play the animation n times?'''
# With the skeleton selected, press '''File > Export > Phoenix Animation (.anm)'''
+
# With the skeleton selected('''TODO: Is that important?'''), press '''File > Export > Phoenix Animation (.anm)'''
  
 
==Event Keyframes==
 
==Event Keyframes==

Revision as of 21:46, 10 April 2018

Overview

Animations for rigged objects in Overgrowth are stored with one of the Phoenix Engine's custom binary file formats, namely the PHXANM (Phoenix Animation) format. To export an animation to a PHXANM (File mask: .anm) file you need to use Wolfire's custom export addon for Blender. A repackaged version of Blender for Windows with the export addon and with the UI set up for this task can be downloaded here.

Exporting an animation

  1. Create your custom animation in Blender
  2. Set the metadata for your animation in the properties sidebar of the skeleton TODO: ADD IMAGE
    • Click the From Timeline button to set the timeline's start & end frames as the start & end points of your animation; Note: Keyframes outside of this time frame won't be exported.
    • Set the Looping value to 0 if you don't want your animation to loop. Set it to 1 if you want it to loop. Todo: If the value is higher, will it do sth different, like play the animation n times?
  3. With the skeleton selected(TODO: Is that important?), press File > Export > Phoenix Animation (.anm)

Event Keyframes

Event keyframes are used to tell the game at which moment of an animation an event is going to happen. This is used to trigger attack impacts and footstep sounds among other things. An event is saved as a Custom Property of a bone in the Blender files shipped with the game. TODO: Maybe a list with event keyframes could be helpful?

Event Applyable to Value Description
attackimpact every bone Doesn't matter ? Will trigger the actual impact while attacking a character
rightrunstep every bone Doesn't matter ? Sound volume ? Will trigger footstepsound, particles and IK ?


Adding an event Keyframe to your animation

  1. Select the 3rd of the rig's layers from the bottom right.TODO: ADD IMAGE The bones should be named DEF-<Bonename>
  2. Select the appropriate bone for the event you want to trigger while being in pose mode
  3. Set the playhead in the timeline to the moment you want the event to happen
  4. In the Properties "editor type", (TODO: Better name for this? If not, remove) press Bone and scroll down to Custom Properties
  5. Hover over the property that corresponds to the event you want to trigger and press I to add a keyframe. (Value doesn't matter TODO: is this true for every event keyframe? Or at all?)

Animating Morph Targets

Todo: Add this section