This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
Программирование
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
CIGI Client Plugin
Rendering-Related Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Players

Players are cameras creating viewports into the world:

  •   Player Actor is a player with a rigid physical body that can only walk on the ground.
  •   Player Dummy is a simple viewport into the world that has no physical properties and cannot collide with objects.
  •   Player Persecutor is a free flying camera without a physical body that follows the target node at the specified distance. It can collide with objects but cannot interact with them.
  •   Player Spectator is a free flying camera without a physical body that is used to create a spectator mode. It can collide with objects but cannot push or interact with them.

See Also#

There are other types of cameras not present in the Editor but can be controlled by the code:

  • A Player class to edit all kinds of players via UnigineScript

Editing Players#

For all players listed above, there is the set of common settings. They can be changed on the corresponding tab of the Parameters window:

Vertical Player Parameters

Physically-Based Player Parameters

Setting Bit Masks#

A set of bit-masks available for the player:

Viewport Viewport mask, specifying objects that can be seen in the camera's viewport.
Reflection Reflection mask, specifying if the reflections will be rendered into the camera's viewport.
Source Sound source mask, specifying what sound channels are played for this camera.
Reverb Reverberation mask, specifying what reverberations are played for this camera.

Viewing Frustum Parameters#

Depending on the FOV Mode, parameters defining a player's viewing frustum differ:

  • Vertical FOV is used for the standard player. In this case, the FOV is set in degrees.
  • Physically-Based Camera is used for the physically-based player with the horizontal FOV. In this case, the FOV is calculated depending on the film gate and focal length of the player according to the formula:

    FOV = 2 * atan(film_gate / (2 * focal_length)) * UNIGINE_RAD2DEG

Field of View Player's vertical field of view, in degrees.
Focal Length Focal length of the physically-based camera lens.
Film Gate Film gate for the physically-based camera with horizontal FOV.
Near Clipping Distance to the near clipping plane of the player's viewing frustum, in units.
Far Clipping Distance to the far clipping plane of the player's viewing frustum, in units.
Last update: 27.12.2018
Build: ()