CNA Samples

Custom Avatar Animation

Ported from Microsoft's XNA 4.0 Custom Avatar Animation Sample for Xbox 360.

Source for this sample on GitHub ↗

The running sample: a CNA avatar on the original ground model. Play ▸

Opens in a new tab. Click the game canvas to focus the keyboard. Press E to load a random avatar if none is visible. CNA supplies its own avatars and built-in idles; their appearance and idle timing differ from Xbox avatars. The five custom motions and facial expressions are the original sample data. Keyboard emulation is enabled alongside gamepad input. Documented differences ↗

About this sample

This sample processes avatar FBX animation and expression keyframes through its own Content Pipeline processor. Its player applies the custom bone and facial keys to an avatar, with forward and reverse playback, looping and clamping.

Jump, kick, punch and faint, or walk with the left stick. The camera follows the avatar across the original ground model. Four built-in Stand idles are loaded; the original random selection chooses only the first three. You can create a random avatar or reload the signed-in profile.

Controls

ActionKeyboardGamepad
Jump / Kick / Punch / FaintK / L / J / IA / B / X / Y
Move / walkW / A / S / DLeft stick
Signed-in profile avatarQLeft shoulder
New random avatarERight shoulder
Orbit cameraArrow keysRight stick
Zoom out / inZ / CLeft / right trigger
Reset cameraRight ShiftRight stick click
Stop the sampleEscapeBack