Camera control in the Editor
Free camera mode
The console command g_cheatkeys [ 1 | 0 ]
controls the ability to activate or deactivate the free camera mode in Simulation Mode [F1].
Enabling Free camera mode: When you enter
g_cheatkeys 1
in the console, you enable the functionality to activate the free camera mode. With this setting enabled, pressing the key combinationCtrl+Shift+T
turns on the free camera, allowing for unrestricted movement around the game environment.Deactivating Free camera mode: Pressing
Ctrl+Shift+T
again will deactivate the free camera and return control to the standard camera settings.
This command is useful for developers who need to navigate freely within the game's simulation environment for testing or demonstration purposes.
First-person view mode
In Simulation Mode, you can switch the camera to a first-person view of a selected unit, provided the unit has an active visor, by using the Shift+F
key combination. Pressing the combination again will exit the first-person view mode.
Mouse-based map navigation
The camera moves based on a selected point on the map, ensuring that navigation is anchored and consistent, regardless of where you move the mouse.
This method allows the camera to moves freely across the map without being influenced by distance from objects or the tilt of the camera.
Fix a point on the map by holding down the
Space
key.Move the mouse while holding down the LMB key without releasing the Space key.
Camera сontrol panel in the Editor
The Clip Camera Position checkbox in the Map Editor serves as a toggle for enabling or disabling camera movement restrictions.
The same function is performed by the console command cam_clip [ 1 | 0 ]
.
Camera settings panel
The Camera settings panel is located in the Mission Editor menu into the Simulation Mode.
Description of the camera settings panel buttons
Alt
Adjusts the camera's elevation above the ground
A
Pitch: Tilts the camera forward or backward
Y
Yaw: Rotates the camera horizontally
R
Roll: Rotates the camera around its viewing axis
F
FOV (Field of View): Adjusts the camera's viewing angle
Holding down the Ctrl key while clicking a button will change the values ten times faster or slower.
High roll values (R) may cause shadows to display incorrectly
Console Commands for Camera
The general working principle of console commands is described in the article titled Console
General Camera Parameters
cam_follow
[0 | 1]
Turns off/on camera follow for a selected unit under direct control. Does not work in the current version of the engine.
cam_followPosition
0,6
Camera offset when following a unit under direct control. The command does not work in the current version of the engine.
cam_allowMouseScroll
[0 | 1]
Turns off/on scrolling when the mouse approaches the edge of the screen.
cam_scaleBias
[0 | 1]
Turns off/on the Z-buffer offset for shadow calculations.
cam_zNear1
30
Sets the z_near plane in distance units when the camera has a near-horizontal tilt.
cam_zFar
5000
Sets the distance for the z_far plane in distance units.
Ground Contact Camera Settings
Settings for preventing the camera from sinking into the ground. These settings are designed to prevent the camera from unintentionally sinking into the ground during navigation, ensuring a stable viewing experience in environments with varying terrain elevations.
cam_liftAuto
[0 | 1]
Off/On for automatically lifting the camera if it goes below the ground.
cam_liftRadius
1.5
Radius in meters for points assessing whether the camera has gone underground.
v_camAutoLiftingVolume
[0 | 1]
Off/On for displaying points that assess camera submersion into the ground.
To see the points, stop rendering by pressing Alt+Pause
and move the camera aside.
cam_liftSteadyUpMin
-2.0
Lower limit of deviation from the calculated auto-lift value at maximum zoom in, in meters.
cam_liftSteadyUpMax
-2.0
Lower limit of deviation from the calculated auto-lift value at maximum zoom out, in meters.
cam_liftSteadyDownMin
2.0
Upper limit of deviation from the calculated auto-lift value at maximum zoom in, in meters.
cam_liftSteadyDownMax
2.0
Upper limit of deviation from the calculated auto-lift value at maximum zoom out, in meters.
cam_liftSteadyBlendStart
0.0
[0.0 .. 0.9] Start of operation of limits, relative to distance restrictions in the clip.
cam_liftSteadyBlendEnd
1
[0 .. 1] End of operation of limits, relative to distance restrictions in the clip.
Camera Shake from Explosions
This configuration allows for the adjustment of camera responsiveness to explosive events, enhancing the immersion and realism in the game environment.
cam_shake
[0 | 1]
Off/On for camera shake due to explosions.
cam_shakeScale
1.0
[0 .. 10] Scaling of shake intensity.
Camera Limits
Settings for Camera limits and recommended values. These parameters allow for precise control over the camera's operational range, including its movement limits and viewing angles, to ensure optimal visibility and performance within the game environment.
cam_clip
[0 | 1]
Off/On for camera clipping limits.
cam_viewAngleFree
true | false
If true, uses a wider range from clipper and set for distance or viewAngle (pitch). If false, uses a narrower range.
cam_viewAngleMin
5
Minimum camera tilt angle (0 - horizontal, parallel to the ground).
cam_viewAngleMax
85
Maximum camera tilt angle (90 - vertical, top-down).
cam_viewAngleDistanceK
0.5
How to clamp the camera angle as it approaches the ground.
cam_distanceMin
100
Minimum distance from the ground to the camera.
cam_distanceMax
660
Maximum distance from the ground to the camera.
cam_viewFovMin
0.0
If greater than 0, changes the camera's FoV depending on the distance from the camera to the ground.
cam_viewFovMax
0.0
If greater than 0, changes the camera's FoV depending on the distance from the camera to the ground.
Third-person view camera settings
Configuration parameters and recommended values for Third-person view camera. These settings allow for precise control of the camera in a third-person perspective, adjusting distances, angles, and field of view to optimize player visibility and interaction.
cam_tpsFollowDistanceV
2
Vertical zoom follow distance (meters).
cam_tpsFollowDistanceH
2
Horizontal zoom follow distance (meters).
cam_tpsFollowOffsetUpV
2
Vertical offset of the camera during vertical zoom (meters).
cam_tpsFollowOffsetUpH
2
Vertical offset of the camera during horizontal zoom (meters).
cam_tpsFollowOffsetSideV
0
Lateral offset of the camera during vertical zoom (meters).
cam_tpsFollowOffsetSideH
0
Lateral offset of the camera during horizontal zoom (meters).
cam_tpsFollowOffsetForwardV
0
Forward offset of the camera during vertical zoom (meters).
cam_tpsFollowOffsetForwardH
0
Forward offset of the camera during horizontal zoom (meters).
cam_tpsFollowPitchMin
45
Minimum pitch of the moving camera (degrees).
cam_tpsFollowPitchMax
85
Maximum pitch of the moving camera (degrees).
cam_tpsFollowFOV
65
Field of view of the moving camera (degrees).
cam_tpsFollowSpeedH
2
Camera follow speed for mouse movements in horizontal zoom position (degrees).
cam_tpsFollowSpeedV
1
Camera follow speed for mouse movements in vertical zoom position (degrees).
cam_tpsDefaultFOV
60.0
Default field of view of the camera (degrees).
cam_tpsCameraBone
camera
Name of the bone the camera operates on.
Last updated