查看: 733|回复: 9

[引擎各个功能] 【Shooting from a Camera Rig Rail | Unreal Engine】

[复制链接]

1

主题

342

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
75866
发表于 2016-6-25 14:01:59 | 显示全部楼层 |阅读模式



The Camera Rig Rail Actor can be used to produce fly-through, 360 degree, or any other moving shots by attaching a camera to a rail to move along.The path for the rail can be defined using a Spline Component and in Sequencer, you can keyframe the position along the rail where the camera should be at any given time.

In this how-to we create a 180 degree rail where the attached camera stays focused on our character.
Steps
For this how-to, we are using the Blueprint Third Person Template project with Starter Content enabled.

In your project on the Modes panel under Cinematic, drag a Camera Rig Rail asset into the level.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



Also from the Modes panel under Cinematic, drag in a Cine Camera Actor.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



In the World Outliner, drag-and-drop the CineCameraActor onto the CameraRig_Rail to attach it.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



In the Details panel for the CineCameraActor, set the XYZ for Location to 0, 0, 60.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



This will push the camera up slightly off the ground for our shot.

Select the CameraRigRail in the level, then select and move the end point so the rail moves to the left of the character.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



With the end point still selected, hold Alt then drag out another point as shown below.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



Select and move the red tangents to bend the rail to produce a curved shape.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



Select and move the second point and its tangents to smooth out the curve.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



Select the last point on the rail, then Alt drag out another point and adjust to smooth out the curve as desired.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



From the Main Toolbar, click Cinematics then select Add Level Sequence.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



Hold Ctrl and select the Camera Rig Rail and Cine Camera Actor then add both to Sequencer.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



Click the Add button and add a Camera Cut Track.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



Click the + Camera button and add the Cine Camera Actor as the camera to shoot from.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



Our shot is now ready to shoot from the Cine Camera Actor attached to our Camera Rig Rail.

Add a key for the current Transform on the CineCameraActor.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



On the CameraRig_Rail, click the + Track button and add the Current Position on Rail property.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



This value represents the position of the attached camera where 0 is at the start of the rail and 1 is the end of the rail.

Move the Timeline marker to the end of the Sequence (150).

With the Camera Rig Rail selected, in the Details panel set the Current Position on Rail to 1.0 then add a keyframe.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



You can set this value inside Sequencer on the Current Position on Rail track or by clicking the keyframe in the Details panel.

Select the Cine Camera Actor, then check Enable Look at Tracking for the ThirdPersonCharacter with a Z offset of 45.0.

【虚幻4翻译文档-Shooting from a Camera Rig Rail | Unreal Engine】[虚幻4中文文档]



Here we are setting our camera to always follow the location of the Actor to Track, in this case the ThirdPersonCharacter.

Lock the viewport to the Camera Cut Track then click the preview play button.
End Result
You should have something similar where the camera pans 180 degrees around the character.

You could continue to add key frames and points along the Camera Rig Rail for a full 360 degree orbit around the character. You could also use the rail for fly-through paths in game level or to highlight something of importance.

There is an advanced method you can use to work with the Camera Rig Rail asset in Sequencer that will automate several of the steps from this how-to. Please see the Workflow Shortcuts section for more information.



   



   


      




   


      相关页面

  




       Sequencer 概述








      Sequencer 编辑器参考




回复

使用道具 举报

0

主题

869

帖子

2838

积分

vip会员

Rank: 1

积分
2838
发表于 2016-7-2 18:55:33 来自手机 | 显示全部楼层
这个必须顶,,,,
回复 支持 反对

使用道具 举报

0

主题

914

帖子

3005

积分

vip会员

Rank: 1

积分
3005
发表于 2016-7-3 21:20:04 来自手机 | 显示全部楼层
谢谢楼主分享!回复看下
回复 支持 反对

使用道具 举报

wxx0136 该用户已被删除
发表于 2016-7-4 10:57:30 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

0

主题

877

帖子

2861

积分

vip会员

Rank: 1

积分
2861
发表于 2016-7-6 13:41:57 来自手机 | 显示全部楼层
搬运工 辛苦了
回复 支持 反对

使用道具 举报

0

主题

907

帖子

2989

积分

vip会员

Rank: 1

积分
2989
发表于 2016-7-11 06:31:47 来自手机 | 显示全部楼层
要查看本帖隐藏内容请回复
回复 支持 反对

使用道具 举报

0

主题

876

帖子

2847

积分

vip会员

Rank: 1

积分
2847
发表于 2016-7-15 15:22:07 来自手机 | 显示全部楼层
瞧一瞧看一看,看看我又没有!
回复 支持 反对

使用道具 举报

0

主题

872

帖子

2891

积分

vip会员

Rank: 1

积分
2891
发表于 2016-7-17 06:06:41 来自手机 | 显示全部楼层
超cool。。。喜欢,下载来看看。。
回复 支持 反对

使用道具 举报

0

主题

864

帖子

2873

积分

vip会员

Rank: 1

积分
2873
发表于 2016-7-17 17:35:57 | 显示全部楼层
看看是什么东西
回复 支持 反对

使用道具 举报

0

主题

915

帖子

3032

积分

vip会员

Rank: 1

积分
3032
发表于 2016-7-20 09:54:07 来自手机 | 显示全部楼层
谢谢分享,顶一个
回复 支持 反对

使用道具 举报

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

本版积分规则

 
 



邮件留言:


 
返回顶部