Difference between revisions of "Custom Animations"
From Wolfire Games Wiki
Silverfish (talk | contribs) m (→Event Keyframes: Removed double-newline) |
(→Event Keyframes: Removed almost definitely redundant table columns. Removed TODOs. Added more events to table.) |
||
Line 13: | Line 13: | ||
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. | 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. | An event is saved as a ''Custom Property'' of a bone in the Blender files shipped with the game. | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | ! Event | + | ! Event Name !! Description |
|- | |- | ||
− | | | + | | event_attackimpact || Will trigger the actual impact while attacking a character |
|- | |- | ||
− | | | + | |event_attackblocked|| |
+ | |- | ||
+ | |event_rightcrouchwalkstep|| | ||
+ | |- | ||
+ | |event_rightrunstep||Will trigger footstepsound, particles and IK ? | ||
+ | |- | ||
+ | |event_rightwalkstep|| | ||
+ | |- | ||
+ | |event_rightwallstep|| | ||
+ | |- | ||
+ | |event_golimp|| | ||
+ | |- | ||
+ | |event_grabitem|| | ||
+ | |- | ||
+ | |event_heldweaponswap|| | ||
+ | |- | ||
+ | |event_rightweaponrelease|| | ||
+ | |- | ||
+ | |event_sheatherighthandlefthip|| | ||
+ | |- | ||
+ | |event_sheatherighthandrighthip|| | ||
+ | |- | ||
+ | |event_throatcut|| | ||
+ | |- | ||
+ | |event_unsheatherighthandlefthip|| | ||
+ | |- | ||
+ | |event_unsheatherighthandrighthi|| | ||
|} | |} | ||
Line 27: | Line 52: | ||
# Select the appropriate bone for the event you want to trigger while being in pose mode | # Select the appropriate bone for the event you want to trigger while being in pose mode | ||
# Set the playhead in the timeline to the moment you want the event to happen | # Set the playhead in the timeline to the moment you want the event to happen | ||
− | # In the '''Properties''' | + | # In the '''Properties''' editor, press '''Bone''' and scroll down to '''Custom Properties''' |
− | # Hover over the property that corresponds to the event you want to trigger and press '''I''' to add a keyframe. (Value doesn't matter | + | # Hover over the property that corresponds to the event you want to trigger and press '''I''' to add a keyframe. (Value doesn't matter) |
==Animating Morph Targets== | ==Animating Morph Targets== |
Revision as of 13:15, 20 July 2018
Contents
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
- Create your custom animation in Blender
- 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?
- 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.
Event Name | Description |
---|---|
event_attackimpact | Will trigger the actual impact while attacking a character |
event_attackblocked | |
event_rightcrouchwalkstep | |
event_rightrunstep | Will trigger footstepsound, particles and IK ? |
event_rightwalkstep | |
event_rightwallstep | |
event_golimp | |
event_grabitem | |
event_heldweaponswap | |
event_rightweaponrelease | |
event_sheatherighthandlefthip | |
event_sheatherighthandrighthip | |
event_throatcut | |
event_unsheatherighthandlefthip | |
event_unsheatherighthandrighthi |
Adding an event Keyframe to your animation
- Select the 3rd of the rig's layers from the bottom right.TODO: ADD IMAGE The bones should be named
DEF-<Bonename>
- Select the appropriate bone for the event you want to trigger while being in pose mode
- Set the playhead in the timeline to the moment you want the event to happen
- In the Properties editor, press Bone and scroll down to Custom Properties
- Hover over the property that corresponds to the event you want to trigger and press I to add a keyframe. (Value doesn't matter)
Animating Morph Targets
Todo: Add this section