The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE3:Camera (UT3)
Contents
- 1 Properties
- 1.1 bCamOverridePostProcess
- 1.2 bConstrainAspectRatio
- 1.3 bEnableColorScaleInterp
- 1.4 bEnableColorScaling
- 1.5 bEnableFading
- 1.6 BlendParams
- 1.7 BlendTimeToGo
- 1.8 bLockedFOV
- 1.9 CameraCache
- 1.10 CameraStyle
- 1.11 CamPostProcessSettings
- 1.12 ColorScale
- 1.13 ColorScaleInterpDuration
- 1.14 ColorScaleInterpStartTime
- 1.15 ConstrainedAspectRatio
- 1.16 DefaultAspectRatio
- 1.17 DefaultFOV
- 1.18 DesiredColorScale
- 1.19 FadeAmount
- 1.20 FadeColor
- 1.21 FreeCamDistance
- 1.22 FreeCamOffset
- 1.23 LockedFOV
- 1.24 ModifierList
- 1.25 OriginalColorScale
- 1.26 PCOwner
- 1.27 PendingViewTarget
- 1.28 ViewTarget
- 1.29 Default values
- 2 Enums
- 3 Structs
- 4 Functions
- Package:
- Engine
- Direct subclass:
- AnimatedCamera
- This class in other games:
- RTNP, U1, UT, UT2003, UT2004, U2, UE2Runtime, U2XMP, UDK
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Camera: defines the Point of View of a player in world space. Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.
Properties[edit]
bCamOverridePostProcess[edit]
Type: bool
Indicates if CamPostProcessSettings should be used when using this Camera to view through.
bConstrainAspectRatio[edit]
Type: bool
If we should insert black areas when rendering the scene to ensure an aspect ratio of ConstrainedAspectRatio
bEnableColorScaleInterp[edit]
Type: bool
Should interpolate color scale values
bEnableColorScaling[edit]
Type: bool
Turn on scaling of color channels in final image using ColorScale property.
bEnableFading[edit]
Type: bool
If we should apply FadeColor/FadeAmount to the screen.
BlendParams[edit]
Type: ViewTargetTransitionParams
Default value:
Member | Value |
---|---|
BlendExp | 2.0 |
BlendFunction | VTBlend_Cubic |
BlendTimeToGo[edit]
Type: float
Time left when blending to pending view target
bLockedFOV[edit]
Type: bool
true if FOV is locked to a constant value
CameraCache[edit]
Type: TCameraCache
Default value:
Member | Value | ||||
---|---|---|---|---|---|
POV |
|
CameraStyle[edit]
Type: name
Camera Mode
CamPostProcessSettings[edit]
Type: PostProcessVolume.PostProcessSettings
Post-process settings to use if bCamOverridePostProcess is TRUE.
Default value:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bEnableBloom | True | ||||||||||
bEnableSceneEffect | True | ||||||||||
Bloom_InterpolationDuration | 1.0 | ||||||||||
Bloom_Scale | 1.0 | ||||||||||
DOF_BlurKernelSize | 16.0 | ||||||||||
DOF_FalloffExponent | 4.0 | ||||||||||
DOF_FocusInnerRadius | 2000.0 | ||||||||||
DOF_InterpolationDuration | 1.0 | ||||||||||
DOF_MaxFarBlurAmount | 1.0 | ||||||||||
DOF_MaxNearBlurAmount | 1.0 | ||||||||||
DOF_ModulateBlurColor |
|
||||||||||
MotionBlur_Amount | 0.5 | ||||||||||
MotionBlur_CameraRotationThreshold | 45.0 | ||||||||||
MotionBlur_CameraTranslationThreshold | 10000.0 | ||||||||||
MotionBlur_FullMotionBlur | True | ||||||||||
MotionBlur_InterpolationDuration | 1.0 | ||||||||||
MotionBlur_MaxVelocity | 1.0 | ||||||||||
Scene_HighLights |
|
||||||||||
Scene_InterpolationDuration | 1.0 | ||||||||||
Scene_MidTones |
|
ColorScale[edit]
Type: Object.Vector
Allows control over scaling individual color channels in the final image.
ColorScaleInterpDuration[edit]
Type: float
Total time for color scale interpolation to complete
ColorScaleInterpStartTime[edit]
Type: float
Time at which interpolation started
ConstrainedAspectRatio[edit]
Type: float
If bConstrainAspectRatio is true, add black regions to ensure aspect ratio is this. Ratio is horizontal/vertical.
DefaultAspectRatio[edit]
Type: float
Default aspect ratio
Default value: 1.333333
DefaultFOV[edit]
Type: float
default FOV
Default value: 90.0
DesiredColorScale[edit]
Type: Object.Vector
Desired color scale which ColorScale will interpolate to
FadeAmount[edit]
Type: float
Amount of fading to apply.
FadeColor[edit]
Type: Object.Color
Color to fade to.
FreeCamDistance[edit]
Type: float
Distance to place free camera from view target
Default value: 256.0
FreeCamOffset[edit]
Type: Object.Vector
Offset to Z free camera position
LockedFOV[edit]
Type: float
value FOV is locked at
ModifierList[edit]
Type: array<CameraModifier>
List of camera modifiers to apply during update of camera position/ rotation
OriginalColorScale[edit]
Type: Object.Vector
Color scale value at start of interpolation
PCOwner[edit]
Type: PlayerController
PlayerController Owning this Camera Actor
PendingViewTarget[edit]
Type: TViewTarget
Pending view target for blending
Default value:
Member | Value | ||||
---|---|---|---|---|---|
POV |
|
ViewTarget[edit]
Type: TViewTarget
Current ViewTarget
Default value:
Member | Value | ||||
---|---|---|---|---|---|
POV |
|
Default values[edit]
Property | Value |
---|---|
bHidden | True |
CollisionType | COLLIDE_CustomDefault |
Enums[edit]
EViewTargetBlendFunction[edit]
- VTBlend_Linear
- Camera does a simple linear interpolation.
- VTBlend_Cubic
- Camera has a slight ease in and ease out, but amount of ease cannot be tweaked.
- VTBlend_EaseIn
- Camera immediately accelerates, but smoothly decelerates into the target. Ease amount controlled by BlendExp.
- VTBlend_EaseOut
- Camera smoothly accelerates, but does not decelerate into the target. Ease amount controlled by BlendExp.
- VTBlend_EaseInOut
- Camera smoothly accelerates and decelerates. Ease amount controlled by BlendExp.
Structs[edit]
TCameraCache[edit]
Modifiers: native
The actors which the camera shouldn't see. Used to hide actors which the camera penetrates.
- float TimeStamp
- Cached Time Stamp
- Object.TPOV POV
- cached Point of View
TViewTarget[edit]
Modifiers: native
View Target definition A View Target is responsible for providing the Camera with an ideal Point of View (POV)
- Actor Target
- Target Actor used to compute ideal POV
- Controller Controller
- Controller of Target (only for non Locally controlled Pawns)
- Object.TPOV POV
- Point of View
- float AspectRatio
- Aspect ratio
- PlayerReplicationInfo PRI
- PlayerReplicationInfo (used to follow same player through pawn transitions, etc., when spectating)
ViewTargetTransitionParams[edit]
Modifiers: native
A set of parameters to describe how to transition between viewtargets.
- float BlendTime
- Total duration of blend to pending view target. 0 means no blending.
- EViewTargetBlendFunction BlendFunction
- Function to apply to the blend parameter
- float BlendExp
- Exponent, used by certain blend functions to control the shape of the curve.
Default values:
Property | Value |
---|---|
BlendExp | 2.0 |
BlendFunction | VTBlend_Cubic |
Functions[edit]
Native functions[edit]
CheckViewTarget[edit]
Make sure ViewTarget is valid
SetViewTarget[edit]
Set a new ViewTarget with optional BlendTime
Events[edit]
ApplyCameraModifiers[edit]
Apply modifiers on Camera.
Parameters:
- DeltaTime - Time is seconds since last update
- OutPOV - Point of View
UpdateCamera[edit]
Performs camera update. Called once per frame after all actors have been ticked.
Other instance functions[edit]
AllowPawnRotation[edit]
BlendViewTargets[edit]
Blend 2 viewtargets.
Parameters:
- A - Source view target
- Alpha - Alpha, % of blend from A to B.
Paramn: B destination view target
DisplayDebug[edit]
Overrides: Actor.DisplayDebug
list important Camera variables on canvas. HUD will call DisplayDebug() on the current ViewTarget when the ShowDebug exec is used
Parameters:
- HUD - HUD with canvas to draw on
- out_YL - Height of the current font
- out_YPos - Y position on Canvas. out_YPos += out_YL, gives position to draw text for next debug line.
FillCameraCache[edit]
Cache update results
GetCameraViewPoint[edit]
Master function to retrieve Camera's actual view point. do not call this directly, call PlayerController::GetPlayerViewPoint() instead.
Parameters:
- OutCamLoc - Camera Location
- OutCamRot - Camera Rotation
GetFOVAngle[edit]
returns camera's current FOV angle
InitializeFor[edit]
Initialize Camera for associated PlayerController
Parameters:
- PC - PlayerController attached to this Camera.
ProcessViewRotation[edit]
Give each modifier a chance to change view rotation/deltarot
SetDesiredColorScale[edit]
Sets the new desired color scale and enables interpolation.
SetFOV[edit]
Lock FOV to a specific value. A value of 0 to beyond 170 will unlock the FOV setting.
UpdateViewTarget[edit]
Query ViewTarget and outputs Point Of View.
Parameters:
- OutVT - ViewTarget to use.
- DeltaTime - Delta Time since last camera update (in seconds).