Repository navigation
Expand file tree
/
Copy pathAvatarMultipleAnimations.html
More file actions
43 lines (43 loc) · 3.62 KB
/
Copy pathAvatarMultipleAnimations.html
File metadata and controls
43 lines (43 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32.png">
<link rel="apple-touch-icon" sizes="192x192" href="apple-touch-icon.png">
<title>Avatar Multiple Animations — CNA Samples</title>
<meta name="description" content="Play Celebrate on the body and Wave on the right arm simultaneously, using CNA and WebGL 2.">
<link rel="stylesheet" href="assets/site.css">
</head>
<body>
<header class="site-head"><div class="wrap"><h1 class="site-title"><a href="index.html">CNA Samples</a></h1></div></header>
<main class="wrap">
<div class="detail-head"><h1>Avatar Multiple Animations</h1></div>
<p class="origin">Ported from Microsoft's XNA 4.0 Avatar Multiple Animations Sample for Xbox 360.</p>
<p class="sample-source"><a href="https://github.com/libcna/cna-samples/tree/develop/samples/AvatarMultipleAnimations">Source for this sample on GitHub ↗</a></p>
<img class="shot" src="assets/img/avatar-multiple-animations.png" width="1280" height="720" alt="The running sample: a CNA avatar playing Celebrate and Wave simultaneously.">
<a class="play" href="AvatarMultipleAnimations/AvatarMultipleAnimations_cna_samples.html" target="_blank" rel="noopener">Play ▸</a>
<p class="play-note">Opens in a new tab. Click the game canvas to focus the keyboard. CNA supplies its own avatars and preset motions; their appearance and timing differ from Xbox avatars. Keyboard emulation is enabled alongside gamepad input. <a href="https://github.com/libcna/cna-samples/blob/develop/samples/AvatarMultipleAnimations/diff.md">Documented differences ↗</a></p>
<nav class="pager pager-before-about" aria-label="Sample navigation">
<a class="prev" href="AvatarAnimationBlending.html"><span class="label">Previous</span>Avatar Animation Blending</a><a class="next" href="ObjectPlacementOnAvatar.html"><span class="label">Next</span>Object Placement on Avatar</a>
</nav>
<section><h2>About this sample</h2>
<p>This sample plays two animations on different parts of one avatar at the same time. It takes Celebrate for the body, then replaces the right-arm subtree with Wave. The remaining bones keep Celebrate, so the avatar can celebrate and wave at once.</p>
<p>Cycle between the combined pose, Celebrate alone and Wave alone to compare them. Both animations continue playing in every mode, and the facial expression comes from Celebrate as in the original sample. You can orbit the camera or create another random avatar.</p>
</section>
<section><h2>Controls</h2><table class="controls">
<tr><th>Action</th><th>Keyboard</th><th>Gamepad</th></tr>
<tr><td>Cycle combined / Celebrate / Wave</td><td>Q</td><td>Left shoulder</td></tr>
<tr><td>New random avatar</td><td>E</td><td>Right shoulder</td></tr>
<tr><td>Orbit camera</td><td>Arrow keys</td><td>Right stick</td></tr>
<tr><td>Zoom out / in</td><td>Z / C</td><td>Left / right trigger</td></tr>
<tr><td>Reset camera</td><td>Right Shift</td><td>Right stick click</td></tr>
<tr><td>Stop the sample</td><td>Escape</td><td>Back</td></tr>
</table></section>
<nav class="pager" aria-label="Sample navigation">
<a class="prev" href="AvatarAnimationBlending.html"><span class="label">Previous</span>Avatar Animation Blending</a><a class="next" href="ObjectPlacementOnAvatar.html"><span class="label">Next</span>Object Placement on Avatar</a>
</nav>
</main>
<footer class="site-foot"><div class="wrap"><p>The sample is Microsoft's, published under the Microsoft Permissive License. The C++ port and the WebAssembly build are CNA.</p></div></footer>
</body>
</html>