查看: 321|回复: 7

[引擎各个功能] 【Editing Animation Layers | Unreal Engine】

[复制链接]

1

主题

342

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
75866
发表于 2016-6-25 13:41:06 | 显示全部楼层 |阅读模式



Animation Layer Editing allows you to modify any existing 动画序列 inside Unreal Engine 4 as part of Additive Layer Tracks. With Animation Layer Editing you can take an existing animation and adjust it to produce a different take on that animation, or you can create a separate, new animation with its own motion you provide based off the original.

This page will show you how to use the Animation Layer Editing tools and take an Idle animation and repurpose it into a Reload animation.

本页面的内容:

      
Creating the New Animation

Editing the New Animation

Conclusion  FAQ
     
For this guide, we created a New Project using the Blueprint First Person template with Starter Content enabled.
Creating the New Animation
In this section, we will create a copy of the Idle animation that we can then modify, leaving the original intact.

Inside the Content Browser, under the Game/FirstPersonBP/Animations folder, open the Prone_Idle animation.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



With the animation open, use the Playback Controls to pause the animation and set it to frame 0 so it is at the beginning.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



Click the Create Asset button from the Toolbar Menu, then under Create Animation, select From Current Animation.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



Here we are creating a new animation based off the idle animation. There are also options for creating a new animation based off a specific pose within an animation or from the base reference pose. For our purposes, we want the entire idle animation from which to work with when modifying it to perform a reload motion, therefore From Current Animation is the best choice.

In the Create a New Animation Asset window, select the Animations folder, name it FirstPerson_Reload then click OK.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



The animation will be created and automatically open, allowing us to begin editing it.
Editing the New Animation
With the FirstPerson_Reload animation created, we can begin editing it through Animation Layer Editing.

With the FirstPerson_Reload animation open, click the ToNext button in the Playback Controls and advance to frame 15.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



In the Skeleton Tree, click the upperarm_l Bone so that it is selected.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



In order to start editing, you must first select the Bone that will be modified in the Additive Layer Tracks which we have done above.

You might want to also fly the camera around to get a better view of the left arm which will make editing easier. Inside the viewport, hold the Right Mouse Button and use the WASD keys to move the camera around to your desired view.

From the Toolbar Menu, click the Add Key button.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



This will add keys to the Additive Layer Tracks as shown below for the Bone's current location.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



Above, three separate tracks were added for the upperarm_l Bone: a Translation track (1), a Rotation track (2) and a Scale track (3).

Click the ToNext button to advance to frame 30.




Inside the viewport, Left-click on the yellow arch of the Rotation widget.




It will change to an Axis Rotation widget, move the mouse to the left to the -60.00 mark.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



From a first person perspective, this will pull the hand down off screen.

From the Toolbar Menu, click the Add Key button (or press the S key).

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



The new keys will be added to the Additive Layer Tracks and a curve from the first key to the second key will be created.

Click the ToNext button on the Playback Controls to advance to frame 45.

In the viewport, Left-click on and drag the yellow arch of the Rotation widget, then rotate to the right to the 60.00 mark.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



From the Toolbar Menu, click the Add Key button (or press the S key).




The new keys will be added and should be the same values as the first set of keys.

Click the ToNext button on the Playback Controls to advance to frame 50, then press S to add a set of keys.




Click the ToNext button on the Playback Controls to advance to frame 60.

In the viewport, press W to switch to Translation mode, then Left-click and drag the yellow arrow to the right slightly.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



This will shift the arm backwards as if "pumping" the shotgun. You can use your discretion to determine how much to move it.



From the Toolbar Menu, click the Add Key button (or press the S key).

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



The keys for the pose will be added to the Additive Layer Tracks along with a curve from the previous keys.

Click the ToNext button on the Playback Controls to advance to frame 65, then press S to add a set of keys.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



The values for the new keys will be zeroed out, which you can verify by clicking on the key in the track.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]



You can also manually enter the Time or Value for a key by clicking on it in the track to get exact values if you wish.

From the Toolbar Menu, click the green Apply button to apply the changes to the animation.




When keys and curves are added to an animation, the result is an additive motion applied to the base animation. By clicking the Apply button, the key and curve data will be baked into the final animation.

Click the Save button as your animation is complete.

Below is an example of the animation playing on a character in-game.

【虚幻4翻译文档-Editing Animation Layers | Unreal Engine】[虚幻4中文文档]

Conclusion  FAQ
You can continue to modify this animation by moving to a frame on the timeline and selecting the Bone you want to modify and keying it, then moving the timeline forward some and moving the Bone to a new location and keying it again. The Bone will move from your first key to your second key along the curve created as the timeline progresses. You can modify as many Bones as you wish for more precision than our example, but the process of keying is the same.

FAQ
What happens if you export the animation

When you export, it will be whichever baked version of the animation is available. If you apply all the curves, it will export with curves.

What happens if you re-import the animation

Reimporting the animation, it will overwrite the source data and apply the curves. If you do not want the curves, you can remove them.

Can I temporarily disable or remove tracks

Yes, you can do both from the Track Options menu located in the upper right-corner of the track window.




Is there a way to see the difference of my edited animation versus its source

Inside the Show menu options, you can enable the Source Animation and (or) Baked Animation for display in the viewport. The Source Animation can be seen as a white skeleton, while the Baked Animation can be seen as a blue skeleton as shown in the image below.




Can Animation Layer Editing be used to create root motion

Yes. Select your Root Bone and key it, then scrub the timeline forward and move the Root Bone and re-key it.




Above we have enabled the Source and Baked Animation preview where the white skeleton is the source animation.



   



   


      




   


      相关页面

  




       动画序列








      AnimMontage








      动画蓝图








      使用附加动画








      骨架资源








      动画系统概述




回复

使用道具 举报

0

主题

934

帖子

3100

积分

vip会员

Rank: 1

积分
3100
发表于 2016-7-2 18:50:03 来自手机 | 显示全部楼层
恩,好资源~ 哈哈~
回复 支持 反对

使用道具 举报

0

主题

1240

帖子

3954

积分

vip会员

Rank: 1

积分
3954
发表于 2016-7-3 20:55:27 来自手机 | 显示全部楼层
这个支持了呀,不错,顶顶帖拿拿钱
回复 支持 反对

使用道具 举报

0

主题

851

帖子

2834

积分

vip会员

Rank: 1

积分
2834
发表于 2016-7-4 10:48:32 来自手机 | 显示全部楼层
看看这个好不好啊
回复 支持 反对

使用道具 举报

0

主题

881

帖子

2924

积分

vip会员

Rank: 1

积分
2924
发表于 2016-7-4 18:52:25 | 显示全部楼层
怎么样呢急
回复 支持 反对

使用道具 举报

0

主题

851

帖子

2798

积分

vip会员

Rank: 1

积分
2798
发表于 2016-7-8 19:17:44 来自手机 | 显示全部楼层
看看贵不贵,不贵就下
回复 支持 反对

使用道具 举报

0

主题

843

帖子

2762

积分

vip会员

Rank: 1

积分
2762
发表于 2016-7-18 11:32:23 | 显示全部楼层
回复看看!!!!!!!!!楼主辛苦
回复 支持 反对

使用道具 举报

0

主题

864

帖子

2858

积分

vip会员

Rank: 1

积分
2858
发表于 2016-7-22 15:33:19 | 显示全部楼层
看看效果,谢谢分享
回复 支持 反对

使用道具 举报

*滑块验证:
您需要登录后才可以回帖 登录 | enginedx注册

本版积分规则

 
 



邮件留言:


 
返回顶部