Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.CameraDirectors.ElementCameraDirector Class Reference

Place camera relative an element with orbit support. More...

Inheritance diagram for Dragengine.CameraDirectors.ElementCameraDirector:
Dragengine.CameraDirectors.CameraDirector Dragengine.CameraDirectors.PlayerControlledActorCameraDirector Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector

Public Member Functions

float getAzimuth ()
 Vertical rotation.
String getBone ()
 Bone name.
DMatrix getCameraMatrix ()
 Camera matrix.
ECBehaviorComponent.Instance getComponentBehavior ()
 Component behavior or null.
float getDistance ()
 Distance.
Element getElement ()
 Element.
float getElevation ()
 Horizontal rotation.
DMatrix getLocalMatrix ()
 Local matrix.
DVector getPivot ()
 Rotation point.
bool getUseOrientation ()
 Use element orientation.
ElementCameraDirector new (Element element)
 Create camera director.
ElementCameraDirector new (Element element, Camera camera, Microphone microphone)
 Create camera director.
void setAzimuth (float azimuth)
 Set vertical rotation.
void setBone (String bone)
 Set bone name.
void setDistance (float distance)
 Set distance.
void setElement (Element element)
 Set element.
void setElevation (float elevation)
 Set horizontal rotation.
void setLocalMatrix (DMatrix localMatrix)
 Set local matrix.
void setLocalMatrix (Vector position, Vector rotation)
 Set local matrix from position and rotation.
void setPivot (DVector pivot)
 Set rotation point.
void setUseOrientation (bool useOrientation)
 Set use element orientation.
void updateCamera (float elapsed)
 Update camera.
Public Member Functions inherited from Dragengine.CameraDirectors.CameraDirector
void activate ()
 Director has been activated.
void applyParameters (Camera camera)
 Apply parameters to camera.
void applyParameters (Microphone microphone)
 Apply parameters to microphone.
void copyParameters (Camera camera)
 Copy parameters from camera.
void copyParameters (CameraDirector director)
 Copy parameters from camera director.
void copyParameters (Microphone microphone)
 Copy parameters from microphone.
void deactivate ()
 Director has been deactivated.
float getAdaptionTime ()
 Adaption time.
float getBloomBlend ()
 Bloom blend as multiplier of intensity beyond bloom intensity.
float getBloomIntensity ()
 Bloom intensity multiplier.
float getBloomSize ()
 Bloom size as percentage of screen width.
float getBloomStrength ()
 Bloom strength as multiplier of intensity beyond bloom intensity.
Camera getCamera ()
 Camera to modify.
bool getEnableAuralization ()
 Enable auralization if supported.
bool getEnableGI ()
 Enable global illumination (GI) if supported.
bool getEnableHDRR ()
 Enable high definition range rendering (HDRR) if supported.
float getExposure ()
 Exposure.
float getFov ()
 Field of view.
float getFovRatio ()
 Field of view ratio (height / width).
float getHighestIntensity ()
 Highest intensity.
float getImageDistance ()
 Camera image distance.
LayerMask getLayerMask ()
 Layer mask or null if not set.
float getLowestIntensity ()
 Lowest intensity.
Microphone getMicrophone ()
 Microphone to modify.
CurveBezier getToneMapCurve ()
 Custom tone mapping curve or empty curve to disable.
float getViewDistance ()
 Camera view distance.
float getWhiteIntensity ()
 White intensity multiplier.
void initCameraParameters ()
 Init camera parameters.
void initMicrophoneParameters ()
 Init microphone parameters.
CameraDirector new ()
 Create camera director.
CameraDirector new (Camera camera, Microphone microphone)
 Create camera director.
void resetCameraAdaptedIntensity ()
 Request graphic module to reset camera adapted intensity to optimal value.
void setAdaptionTime (float time)
 Set adaption time.
void setBloomBlend (float blend)
 Set bloom blend as multiplier of intensity beyond bloom intensity.
void setBloomIntensity (float intensity)
 Set bloom intensity multiplier.
void setBloomSize (float size)
 Bloom size as percentage of screen width.
void setBloomStrength (float strength)
 Set bloom strength as multiplier of intensity beyond bloom intensity.
void setCamera (Camera camera)
 Set camera to modify.
void setEnableAuralization (bool enable)
 Set to enable auralization if supported.
void setEnableGI (bool enable)
 Set to enable global illumination (GI) if supported.
void setEnableHDRR (bool enable)
 Set to enable high definition range rendering (HDRR) if supported.
void setExposure (float exposure)
 Set exposure.
void setFov (float fov)
 Set field of view.
void setFovRatio (float ratio)
 Set field of view ratio (height / width).
void setHighestIntensity (float intensity)
 Set highest intensity.
void setImageDistance (float distance)
 Set camera image distance.
void setLayerMask (LayerMask layerMask)
 Set layer mask or null if not set.
void setLowestIntensity (float intensity)
 Set lowest intensity.
void setMicrophone (Microphone microphone)
 Set microphone to modify.
void setToneMapCurve (CurveBezier curve)
 Set custom tone mapping curve or empty curve to disable.
void setViewDistance (float distance)
 Set camera view distance.
void setWhiteIntensity (float intensity)
 Set white intensity multiplier.
void update (float elapsed)
 Update director.
void updateMicrophone (float elapsed)
 Update microphone.

Public Attributes

float pAzimuth
String pBone
float pDistance
Element pElement
float pElevation
DMatrix pLocalMatrix
DVector pPivot
bool pUseOrientation
Public Attributes inherited from Dragengine.CameraDirectors.CameraDirector
final float fovFirstPerson = 90
 Typical first person FOV.
final float fovLongTele = 6.87
 Long tele camera FOV.
final float fovMediumTele = 10.29
 Medium tele camera FOV.
final float fovNormal = 39.6
 Normal camera FOV.
final float fovShortFirstPerson = 75
 Shorter first person FOV.
final float fovShortTele = 22.62
 Short tele camera FOV.
final float fovUltraWide = 83.97
 Ultra wide camera FOV.
final float fovWide = 65.47
 Wide camera FOV.
float pAdaptionTime
float pBloomBlend
float pBloomIntensity
float pBloomSize
float pBloomStrength
Camera pCamera
bool pEnableAuralization
bool pEnableGI
bool pEnableHDRR
float pExposure
float pFov
float pFovRatio
float pHighestIntensity
float pImageDistance
LayerMask pLayerMask
float pLowestIntensity
Microphone pMicrophone
CurveBezier pToneMapCurve
float pViewDistance
float pWhiteIntensity

Protected Attributes

ECBehaviorComponent.Instance componentBehavior
 Component behavior or null.

Detailed Description

Place camera relative an element with orbit support.

Camera is placed using a rotation point, oribtal rotation and a matrix local to this rotation point. Optionally a bone can be specified to use as rotation point.

Member Function Documentation

◆ getAzimuth()

float Dragengine.CameraDirectors.ElementCameraDirector.getAzimuth ( )

Vertical rotation.

References componentBehavior.

Referenced by setUseOrientation().

◆ getBone()

String Dragengine.CameraDirectors.ElementCameraDirector.getBone ( )

Bone name.

Version
1.33

If not null this is the name of the bone to use as rotation point. Requires element with ECBehaviorComponent#Instance present.

References getElevation(), pAzimuth, pElevation, and setAzimuth().

Referenced by getCameraMatrix().

◆ getCameraMatrix()

◆ getComponentBehavior()

ECBehaviorComponent.Instance Dragengine.CameraDirectors.ElementCameraDirector.getComponentBehavior ( )

Component behavior or null.

Version
1.33

References getDistance(), and pDistance.

Referenced by getCameraMatrix().

◆ getDistance()

float Dragengine.CameraDirectors.ElementCameraDirector.getDistance ( )

Distance.

References new(), and setPivot().

Referenced by getComponentBehavior().

◆ getElement()

Element Dragengine.CameraDirectors.ElementCameraDirector.getElement ( )

◆ getElevation()

float Dragengine.CameraDirectors.ElementCameraDirector.getElevation ( )

Horizontal rotation.

References getPivot(), and pPivot.

Referenced by getBone().

◆ getLocalMatrix()

DMatrix Dragengine.CameraDirectors.ElementCameraDirector.getLocalMatrix ( )

Local matrix.

References pElement, and setElement().

Referenced by setDistance().

◆ getPivot()

DVector Dragengine.CameraDirectors.ElementCameraDirector.getPivot ( )

Rotation point.

References getElement(), and pElement.

Referenced by getElevation().

◆ getUseOrientation()

bool Dragengine.CameraDirectors.ElementCameraDirector.getUseOrientation ( )

Use element orientation.

Version
1.19

If true the camera rotates together with the element. If false the camera only moves together with the element. The default is false.

References new(), pLocalMatrix, and setLocalMatrix().

Referenced by getCameraMatrix().

◆ new() [1/2]

ElementCameraDirector Dragengine.CameraDirectors.ElementCameraDirector.new ( Element element)

Create camera director.

References new(), pLocalMatrix, and pPivot.

Referenced by getCameraMatrix(), getDistance(), getElement(), getUseOrientation(), and new().

◆ new() [2/2]

ElementCameraDirector Dragengine.CameraDirectors.ElementCameraDirector.new ( Element element,
Camera camera,
Microphone microphone )

Create camera director.

References setElement().

◆ setAzimuth()

void Dragengine.CameraDirectors.ElementCameraDirector.setAzimuth ( float azimuth)

◆ setBone()

void Dragengine.CameraDirectors.ElementCameraDirector.setBone ( String bone)

Set bone name.

Version
1.33

If not null this is the name of the bone to use as rotation point. Requires element with ECBehaviorComponent#Instance present.

References pElevation, and setElevation().

Referenced by getCameraMatrix().

◆ setDistance()

void Dragengine.CameraDirectors.ElementCameraDirector.setDistance ( float distance)

Set distance.

References getLocalMatrix(), pLocalMatrix, and pPivot.

Referenced by updateCamera().

◆ setElement()

◆ setElevation()

void Dragengine.CameraDirectors.ElementCameraDirector.setElevation ( float elevation)

◆ setLocalMatrix() [1/2]

void Dragengine.CameraDirectors.ElementCameraDirector.setLocalMatrix ( DMatrix localMatrix)

Set local matrix.

References pElement.

Referenced by getUseOrientation(), and setUseOrientation().

◆ setLocalMatrix() [2/2]

void Dragengine.CameraDirectors.ElementCameraDirector.setLocalMatrix ( Vector position,
Vector rotation )

Set local matrix from position and rotation.

References componentBehavior.

◆ setPivot()

void Dragengine.CameraDirectors.ElementCameraDirector.setPivot ( DVector pivot)

◆ setUseOrientation()

void Dragengine.CameraDirectors.ElementCameraDirector.setUseOrientation ( bool useOrientation)

Set use element orientation.

Version
1.19

If true the camera rotates together with the element. If false the camera only moves together with the element. The default is false.

References getAzimuth(), pAzimuth, pLocalMatrix, and setLocalMatrix().

Referenced by getCameraMatrix().

◆ updateCamera()

void Dragengine.CameraDirectors.ElementCameraDirector.updateCamera ( float elapsed)

Member Data Documentation

◆ componentBehavior

ECBehaviorComponent.Instance Dragengine.CameraDirectors.ElementCameraDirector.componentBehavior
protected

Component behavior or null.

Referenced by getAzimuth(), getCameraMatrix(), and setLocalMatrix().

◆ pAzimuth

float Dragengine.CameraDirectors.ElementCameraDirector.pAzimuth

Referenced by getBone(), and setUseOrientation().

◆ pBone

String Dragengine.CameraDirectors.ElementCameraDirector.pBone

Referenced by getCameraMatrix().

◆ pDistance

float Dragengine.CameraDirectors.ElementCameraDirector.pDistance

◆ pElement

Element Dragengine.CameraDirectors.ElementCameraDirector.pElement

◆ pElevation

float Dragengine.CameraDirectors.ElementCameraDirector.pElevation

Referenced by getBone(), and setBone().

◆ pLocalMatrix

DMatrix Dragengine.CameraDirectors.ElementCameraDirector.pLocalMatrix

◆ pPivot

DVector Dragengine.CameraDirectors.ElementCameraDirector.pPivot

◆ pUseOrientation

bool Dragengine.CameraDirectors.ElementCameraDirector.pUseOrientation

Referenced by getCameraMatrix().


The documentation for this class was generated from the following file: