This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
创建内容
Content Optimization
Materials
Art Samples
Tutorials

场景导航

In UnigineEditor, there are controls that are used to move in the scene and control the camera behavior. All the available controls can be found in the Controls section of the Settings window.在 UnigineEditor 中,有一些控件用于在场景中移动并控制相机行为。所有可用的控件都可以在 Settings 窗口的 Controls 部分中找到。

The camera can be moved freely in the scene or relative to a target. In terms of UnigineEditor, the target is a point relative to which the camera is positioned. You can set the target by focusing the camera on a selected node or a group of nodes.相机可以在场景中或相对于目标自由移动。就 UnigineEditor 而言,target 是一个相对于相机定位的点。您可以通过设置目标聚焦选定节点或一组节点上的相机。

注意
If the camera does not focus on a node, the position of the target coincides with the camera position.如果相机没有聚焦在某个节点上,则目标位置与相机位置重合。

Whether the target is set or not, you can freely navigate in the scene: move the camera, change direction of the camera (horizontally and vertically), track the camera or zoom it in and out.无论是否设置目标,都可以在场景中自由导航:移动相机,改变方向相机(水平和垂直),追踪相机或飞涨它进进出出。

If the camera is focused on a node (in other words — positioned relative to the target), you can also orbit the camera about the target and zoom it towards or away from the target by using the dolly zoom.如果相机是专注在一个节点上(换句话说——相对于目标定位),你也可以轨道关于目标的相机和飞涨使用推车变焦朝向或远离目标。

In addition to the commonly used terms (for example, Move left, Move up and so on), the following terms are used in UnigineEditor:除了常用的术语(例如向左移动、向上移动等)外,UnigineEditor 中还使用了以下术语:

  • Change direction means changing the yaw/pitch angle to rotate the camera around its vertical/horizontal axis respectively.改变方向意味着改变偏航角/俯仰角以分别围绕其垂直/水平轴旋转相机。
  • Track (Crab) means tracking the camera in the plane which is perpendicular to the view direction.Track (Crab) 是指在垂直于视线方向的平面内跟踪摄像机。
  • Orbit means tumbling around the target.Orbit 表示围绕目标翻滚。
  • Zoom (Dolly) means zooming the camera towards or away from the target so that the camera cannot continue to zoom in when it reaches the target.Zoom (Dolly) 表示将相机向目标或远离目标缩放,以便相机在到达目标时无法继续放大。

The following schemes demonstrate the main navigation controls that are used in UnigineEditor:以下方案演示了 UnigineEditor 中使用的主要导航控件:

Navigation controls used to freely move the camera in the scene用于在场景中自由移动相机的导航控件
Additional navigation controls used to move the camera relative to the target用于相对于目标移动相机的附加导航控件

Focusing the Camera对焦相机#

To set and reset the camera focus, you can use the following default controls:要设置和重置相机焦点,您可以使用以下默认控件:

Control Description
F Focus the camera on the selected nodes.将相机聚焦在所选节点上。
G Reset the camera focus.重置相机对焦。

When you focus the camera on the group of nodes, you should set the pivot point (see Pivot Point Toggle for details) on the main menu:当您将相机聚焦在节点组上时,您应该设置枢轴点(请参阅枢轴点切换详情)在主菜单上:

  • If the pivot point is set to Center ( is set), the target will be set to the center of selection.如果枢轴点设置为 Center(设置为 ),则目标将设置为选择的中心。

    The Center button is activeCenter 按钮处于活动状态
  • If the pivot point is set to Pivot ( is set), the target will be set to the last selected node.如果枢轴点设置为 Pivot(设置为 ),则目标将设置为最后选择的节点。

    The Pivot button is active; Node 2 is the last selected nodePivot 按钮处于活动状态; Node 2 是最后选择的节点

If you focus the camera on the node (or the group of nodes), the target position will coincide with the center of the node (or the group of nodes). Therefore, you will be able to orbit the camera around this target and zoom (dolly) the camera towards or away from this target.如果将相机聚焦在节点(或节点组)上,则目标位置将与节点(或节点组)的中心重合。因此,您将能够轨道这个目标周围的相机和变焦(小车)相机朝向或远离该目标。

Moving the Camera移动相机#

To move in the scene, you can use the following default controls:要在场景中移动,您可以使用以下默认控件:

Control Description
RIGHT-CLICK + Drag

Change the camera direction.改变相机方向。

  • Press and hold this key and drag the mouse left or right to change the yaw angle. In this case, the camera will rotate around its vertical axis.按住此键并向左或向右拖动鼠标可更改偏航角。在这种情况下,相机将围绕其垂直轴旋转。
  • Press and hold this key and drag the mouse up or down to change the pitch angle. In this case, the camera will rotate around its horizontal axis.按住此键并向上或向下拖动鼠标可更改俯仰角。在这种情况下,相机将围绕其水平轴旋转。
RIGHT-CLICK + W Move the camera forward.向前移动相机。
RIGHT-CLICK + S Move the camera backward.向后移动相机。
RIGHT-CLICK + A Move the camera left.将相机向左移动。
RIGHT-CLICK + D Move the camera right.向右移动相机。
RIGHT-CLICK + Q Move the camera down.向下移动相机。
RIGHT-CLICK + E Move the camera up.向上移动相机。
Alt + MIDDLE CLICK + Drag Alt + 中间点击 + 拖动 Track (crab) the camera in the plane which is perpendicular to the view direction.在垂直于视图方向的平面中跟踪(捕获)相机。
Alt + LEFT CLICK + Drag Alt + 左键单击 + 拖动 Orbit the camera about the target.围绕目标旋转相机。

Also you can change the camera position by setting its coordinates via the Navigation Panel of the Editor Viewport as follows: 您也可以通过导航面板设置坐标来更改相机位置。编辑器视口如下:

Zooming the Camera缩放相机#

To zoom the camera, you can use the following default controls:要缩放相机,您可以使用以下默认控件:

Control Description
WHEEL UP 轮UP

Zoom the camera in.放大相机。

注意
If the camera reaches the target and continues zooming, the target will be moved with the camera.如果相机到达目标并继续缩放,目标将随相机移动。
WHEEL DOWN 下车

Zoom the camera out.缩小相机。

注意
When zooming out, the position of the target remains the same.缩小时,位置目标保持原样。
Alt + RIGHT-CLICK + Drag Zoom (dolly) the camera toward or away from the target by using the dolly zoom.使用推车变焦将相机朝向或远离目标缩放(推车)。

Changing the Camera Speed改变相机速度#

There are 3 modes of the camera speed. You can switch between them via the Navigation Panel. Also you can change the speed value set for one of the speed modes. For example, you can change the value of the 1st speed node as follows: 相机速度有 3 种模式。您可以通过导航面板在它们之间切换。您也可以更改为其中一种速度模式设置的速度值。例如,您可以按如下方式更改 1st speed 节点的值:

In addition, the following controls can be used to change the camera speed:此外,以下控件可用于更改相机速度:

Control Description
Shift Speed up the camera movement. Press and hold this key when moving the camera.加快相机移动。按住此键时移动相机。
1 / 2 / 3 Enable the 1st, the 2nd or the 3rd mode of the camera speed.启用相机速度的第一、第二或第三模式。

Camera Utilities相机实用程序#

Flashlight Settings手电筒设置
Control Description
L Toggle a flashlight attached to the camera.切换连接到相机的手电筒。

Flashlight Settings手电筒设置#

Color A flashlight color.一种手电筒颜色。
Intensity A flashlight color intensity. The higher the value, the brighter the light is.手电筒颜色强度。值越高,光线越亮。
Attenuation A flashlight attenuation power. It simulates light intensity gradual fading.一个手电衰减功率。它模拟光强度逐渐衰减。
Radius A radius of the area illuminated by the flashlight.手电筒照射区域的半径。
Field of View A field of view of the flashlight. This parameter defines the angle of the light clipping in range from 10 to 160 degrees.手电筒的视野。该参数定义了范围从 10160 度的光剪裁角度。

Using Several Cameras使用多个相机#

In a large virtual world, you can use cameras as watchpoints for fast navigation: you can add and position any number of the cameras in different points of the world, save their positions and then switch between them via the Camera panel of the Editor Viewport when it is necessary.在大型虚拟世界中,您可以使用摄像机作为快速导航的观察点:您可以在世界的不同点添加和定位任意数量的摄像机,保存它们的位置,然后通过摄像机面板在它们之间切换。编辑器视口必要时。

To create such watchpoint:要创建这样的观察点:

  1. Add a new camera to the world.添加新相机致全世界。
  2. Position the camera.位置相机。

The following pictures show 2 cameras positioned in different points in the world:下图显示了位于世界不同地点的 2 个摄像头:

camera_0 camera used as watch-pointcamera_0 相机用作观察点
camera_0 camera viewcamera_0 相机视图
camera_1 camera used as watch-pointcamera_1 相机用作观察点
camera_1 camera viewcamera_1 相机视图

When you switch to one of the saved cameras, you can freely move it in the world: changes in its position and orientation won't be saved. To return to the saved position and orientation of the camera, switch to another camera and then choose the required camera again. 当您切换到已保存的摄像机之一时,您可以在世界中自由移动它:不会保存其位置和方向的更改。 要返回相机的保存位置和方向,请切换到另一个相机,然后再次选择所需的相机。

Video Tutorial: The Scene Viewport视频教程:场景视口#

最新更新: 2021-06-24
Build: ()