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

Directs camera and microphone required to render the game scene. More...

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

Public Member Functions

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 updateCamera (float elapsed)
 Update camera.
void updateMicrophone (float elapsed)
 Update microphone.

Public Attributes

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

Detailed Description

Directs camera and microphone required to render the game scene.

The default implementation sets the camera at the origin of the world and the microphone at the same place and orientation as the camera. Subclasses are responsible to set the camera in useful places.

Member Function Documentation

◆ activate()

void Dragengine.CameraDirectors.CameraDirector.activate ( )

Director has been activated.

Useful for init camera parameters that do not change over time. Default implementation calls initCameraParameters if camera is not null and initMicrophoneParameters if microphone is not null.

Reimplemented in Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector.

References setBloomBlend().

Referenced by updateMicrophone().

◆ applyParameters() [1/2]

void Dragengine.CameraDirectors.CameraDirector.applyParameters ( Camera camera)

Apply parameters to camera.

Version
1.21

References pBloomIntensity, and setBloomIntensity().

Referenced by updateMicrophone().

◆ applyParameters() [2/2]

void Dragengine.CameraDirectors.CameraDirector.applyParameters ( Microphone microphone)

Apply parameters to microphone.

Version
1.23

References getBloomBlend(), and pBloomBlend.

◆ copyParameters() [1/3]

void Dragengine.CameraDirectors.CameraDirector.copyParameters ( Camera camera)

Copy parameters from camera.

Version
1.21

References pWhiteIntensity, and setWhiteIntensity().

◆ copyParameters() [2/3]

void Dragengine.CameraDirectors.CameraDirector.copyParameters ( CameraDirector director)

Copy parameters from camera director.

Version
1.21

References getWhiteIntensity(), and pWhiteIntensity.

Referenced by updateMicrophone().

◆ copyParameters() [3/3]

void Dragengine.CameraDirectors.CameraDirector.copyParameters ( Microphone microphone)

Copy parameters from microphone.

Version
1.23

References getBloomIntensity().

◆ deactivate()

void Dragengine.CameraDirectors.CameraDirector.deactivate ( )

Director has been deactivated.

Reimplemented in Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector.

References getBloomSize(), and pBloomBlend.

Referenced by updateMicrophone().

◆ getAdaptionTime()

float Dragengine.CameraDirectors.CameraDirector.getAdaptionTime ( )

Adaption time.

References getFovRatio().

Referenced by setWhiteIntensity(), and updateMicrophone().

◆ getBloomBlend()

float Dragengine.CameraDirectors.CameraDirector.getBloomBlend ( )

Bloom blend as multiplier of intensity beyond bloom intensity.

Version
1.21

References pImageDistance, and setImageDistance().

Referenced by applyParameters(), and updateMicrophone().

◆ getBloomIntensity()

float Dragengine.CameraDirectors.CameraDirector.getBloomIntensity ( )

Bloom intensity multiplier.

Version
1.21

References pAdaptionTime, and setAdaptionTime().

Referenced by copyParameters(), and updateMicrophone().

◆ getBloomSize()

float Dragengine.CameraDirectors.CameraDirector.getBloomSize ( )

Bloom size as percentage of screen width.

Version
1.21

References getEnableGI(), and pEnableGI.

Referenced by deactivate(), and updateMicrophone().

◆ getBloomStrength()

float Dragengine.CameraDirectors.CameraDirector.getBloomStrength ( )

Bloom strength as multiplier of intensity beyond bloom intensity.

Version
1.21

References pViewDistance.

Referenced by resetCameraAdaptedIntensity(), and updateMicrophone().

◆ getCamera()

◆ getEnableAuralization()

bool Dragengine.CameraDirectors.CameraDirector.getEnableAuralization ( )

Enable auralization if supported.

Version
1.23

References getLowestIntensity(), and pLowestIntensity.

Referenced by getToneMapCurve(), and updateMicrophone().

◆ getEnableGI()

bool Dragengine.CameraDirectors.CameraDirector.getEnableGI ( )

Enable global illumination (GI) if supported.

Version
1.5

References getExposure(), pEnableHDRR, and pExposure.

Referenced by getBloomSize(), and updateMicrophone().

◆ getEnableHDRR()

bool Dragengine.CameraDirectors.CameraDirector.getEnableHDRR ( )

Enable high definition range rendering (HDRR) if supported.

Version
1.5

References getMicrophone(), pCamera, and pMicrophone.

Referenced by getImageDistance(), and updateMicrophone().

◆ getExposure()

float Dragengine.CameraDirectors.CameraDirector.getExposure ( )

Exposure.

References pMicrophone, and setMicrophone().

Referenced by getEnableGI(), and updateMicrophone().

◆ getFov()

float Dragengine.CameraDirectors.CameraDirector.getFov ( )

Field of view.

Referenced by getLowestIntensity(), and updateMicrophone().

◆ getFovRatio()

float Dragengine.CameraDirectors.CameraDirector.getFovRatio ( )

Field of view ratio (height / width).

Version
1.21

References setCamera(), and setMicrophone().

Referenced by getAdaptionTime(), and updateMicrophone().

◆ getHighestIntensity()

float Dragengine.CameraDirectors.CameraDirector.getHighestIntensity ( )

Highest intensity.

References pFov, and setFov().

Referenced by setEnableAuralization(), and updateMicrophone().

◆ getImageDistance()

float Dragengine.CameraDirectors.CameraDirector.getImageDistance ( )

Camera image distance.

Version
1.21

References getEnableHDRR().

Referenced by setBloomStrength(), and updateMicrophone().

◆ getLayerMask()

LayerMask Dragengine.CameraDirectors.CameraDirector.getLayerMask ( )

Layer mask or null if not set.

References pEnableAuralization, and setEnableAuralization().

Referenced by updateMicrophone().

◆ getLowestIntensity()

float Dragengine.CameraDirectors.CameraDirector.getLowestIntensity ( )

Lowest intensity.

References getFov(), and pFov.

Referenced by getEnableAuralization(), and updateMicrophone().

◆ getMicrophone()

Microphone Dragengine.CameraDirectors.CameraDirector.getMicrophone ( )

◆ getToneMapCurve()

CurveBezier Dragengine.CameraDirectors.CameraDirector.getToneMapCurve ( )

Custom tone mapping curve or empty curve to disable.

Version
1.21

References getEnableAuralization(), and pEnableAuralization.

Referenced by updateMicrophone().

◆ getViewDistance()

float Dragengine.CameraDirectors.CameraDirector.getViewDistance ( )

Camera view distance.

Referenced by setBloomIntensity(), and updateMicrophone().

◆ getWhiteIntensity()

float Dragengine.CameraDirectors.CameraDirector.getWhiteIntensity ( )

White intensity multiplier.

Version
1.21

References pHighestIntensity, and setHighestIntensity().

Referenced by copyParameters(), and updateMicrophone().

◆ initCameraParameters()

void Dragengine.CameraDirectors.CameraDirector.initCameraParameters ( )

Init camera parameters.

References pBloomIntensity.

Referenced by updateMicrophone().

◆ initMicrophoneParameters()

void Dragengine.CameraDirectors.CameraDirector.initMicrophoneParameters ( )

Init microphone parameters.

Version
1.23

References pBloomStrength, and setBloomStrength().

Referenced by updateMicrophone().

◆ new() [1/2]

CameraDirector Dragengine.CameraDirectors.CameraDirector.new ( )

◆ new() [2/2]

◆ resetCameraAdaptedIntensity()

void Dragengine.CameraDirectors.CameraDirector.resetCameraAdaptedIntensity ( )

Request graphic module to reset camera adapted intensity to optimal value.

Version
1.4

References getBloomStrength(), and pBloomStrength.

Referenced by updateMicrophone().

◆ setAdaptionTime()

void Dragengine.CameraDirectors.CameraDirector.setAdaptionTime ( float time)

Set adaption time.

References pFovRatio.

Referenced by getBloomIntensity(), and updateMicrophone().

◆ setBloomBlend()

void Dragengine.CameraDirectors.CameraDirector.setBloomBlend ( float blend)

Set bloom blend as multiplier of intensity beyond bloom intensity.

Version
1.21

Referenced by activate(), and updateMicrophone().

◆ setBloomIntensity()

void Dragengine.CameraDirectors.CameraDirector.setBloomIntensity ( float intensity)

Set bloom intensity multiplier.

Version
1.21

References getViewDistance(), pViewDistance, and setViewDistance().

Referenced by applyParameters(), and updateMicrophone().

◆ setBloomSize()

void Dragengine.CameraDirectors.CameraDirector.setBloomSize ( float size)

Bloom size as percentage of screen width.

Version
1.21

References pEnableGI, and setEnableGI().

Referenced by updateMicrophone().

◆ setBloomStrength()

void Dragengine.CameraDirectors.CameraDirector.setBloomStrength ( float strength)

Set bloom strength as multiplier of intensity beyond bloom intensity.

Version
1.21

References getImageDistance(), and pImageDistance.

Referenced by initMicrophoneParameters(), and updateMicrophone().

◆ setCamera()

void Dragengine.CameraDirectors.CameraDirector.setCamera ( Camera camera)

◆ setEnableAuralization()

void Dragengine.CameraDirectors.CameraDirector.setEnableAuralization ( bool enable)

Set to enable auralization if supported.

Version
1.23

References getHighestIntensity(), pHighestIntensity, pLowestIntensity, and setLowestIntensity().

Referenced by getLayerMask(), and updateMicrophone().

◆ setEnableGI()

void Dragengine.CameraDirectors.CameraDirector.setEnableGI ( bool enable)

Set to enable global illumination (GI) if supported.

Version
1.5

References pExposure, and setExposure().

Referenced by setBloomSize(), and updateMicrophone().

◆ setEnableHDRR()

void Dragengine.CameraDirectors.CameraDirector.setEnableHDRR ( bool enable)

Set to enable high definition range rendering (HDRR) if supported.

Version
1.5

Referenced by setImageDistance(), and updateMicrophone().

◆ setExposure()

void Dragengine.CameraDirectors.CameraDirector.setExposure ( float exposure)

Set exposure.

Referenced by setEnableGI(), and updateMicrophone().

◆ setFov()

void Dragengine.CameraDirectors.CameraDirector.setFov ( float fov)

◆ setFovRatio()

void Dragengine.CameraDirectors.CameraDirector.setFovRatio ( float ratio)

Set field of view ratio (height / width).

Version
1.21

References getCamera(), pCamera, and setCamera().

Referenced by Dragengine.ConversationSystem.ConversationCameraDirector.new(), setViewDistance(), and updateMicrophone().

◆ setHighestIntensity()

void Dragengine.CameraDirectors.CameraDirector.setHighestIntensity ( float intensity)

Set highest intensity.

Referenced by getWhiteIntensity(), and updateMicrophone().

◆ setImageDistance()

void Dragengine.CameraDirectors.CameraDirector.setImageDistance ( float distance)

Set camera image distance.

Version
1.21

References pEnableHDRR, and setEnableHDRR().

Referenced by getBloomBlend(), and updateMicrophone().

◆ setLayerMask()

void Dragengine.CameraDirectors.CameraDirector.setLayerMask ( LayerMask layerMask)

Set layer mask or null if not set.

Referenced by updateMicrophone().

◆ setLowestIntensity()

void Dragengine.CameraDirectors.CameraDirector.setLowestIntensity ( float intensity)

Set lowest intensity.

Referenced by setEnableAuralization(), and updateMicrophone().

◆ setMicrophone()

void Dragengine.CameraDirectors.CameraDirector.setMicrophone ( Microphone microphone)

◆ setToneMapCurve()

void Dragengine.CameraDirectors.CameraDirector.setToneMapCurve ( CurveBezier curve)

Set custom tone mapping curve or empty curve to disable.

Version
1.21
Note
If enabled make sure to match the curve range to the white intensity.

Referenced by updateMicrophone().

◆ setViewDistance()

void Dragengine.CameraDirectors.CameraDirector.setViewDistance ( float distance)

◆ setWhiteIntensity()

void Dragengine.CameraDirectors.CameraDirector.setWhiteIntensity ( float intensity)

Set white intensity multiplier.

Version
1.21

References getAdaptionTime(), and pAdaptionTime.

Referenced by copyParameters(), and updateMicrophone().

◆ update()

void Dragengine.CameraDirectors.CameraDirector.update ( float elapsed)

Update director.

Default implementation calls updateCamera if camera is not null and updateMicrophone if microphone is not null.

References pBloomSize.

Referenced by updateMicrophone().

◆ updateCamera()

◆ updateMicrophone()

Member Data Documentation

◆ fovFirstPerson

final float Dragengine.CameraDirectors.CameraDirector.fovFirstPerson = 90

Typical first person FOV.

Referenced by new().

◆ fovLongTele

final float Dragengine.CameraDirectors.CameraDirector.fovLongTele = 6.87

Long tele camera FOV.

◆ fovMediumTele

final float Dragengine.CameraDirectors.CameraDirector.fovMediumTele = 10.29

Medium tele camera FOV.

◆ fovNormal

final float Dragengine.CameraDirectors.CameraDirector.fovNormal = 39.6

Normal camera FOV.

◆ fovShortFirstPerson

final float Dragengine.CameraDirectors.CameraDirector.fovShortFirstPerson = 75

Shorter first person FOV.

◆ fovShortTele

final float Dragengine.CameraDirectors.CameraDirector.fovShortTele = 22.62

Short tele camera FOV.

◆ fovUltraWide

final float Dragengine.CameraDirectors.CameraDirector.fovUltraWide = 83.97

Ultra wide camera FOV.

◆ fovWide

final float Dragengine.CameraDirectors.CameraDirector.fovWide = 65.47

Wide camera FOV.

◆ pAdaptionTime

float Dragengine.CameraDirectors.CameraDirector.pAdaptionTime

◆ pBloomBlend

float Dragengine.CameraDirectors.CameraDirector.pBloomBlend

◆ pBloomIntensity

float Dragengine.CameraDirectors.CameraDirector.pBloomIntensity

◆ pBloomSize

float Dragengine.CameraDirectors.CameraDirector.pBloomSize

◆ pBloomStrength

float Dragengine.CameraDirectors.CameraDirector.pBloomStrength

◆ pCamera

Camera Dragengine.CameraDirectors.CameraDirector.pCamera

◆ pEnableAuralization

bool Dragengine.CameraDirectors.CameraDirector.pEnableAuralization

◆ pEnableGI

bool Dragengine.CameraDirectors.CameraDirector.pEnableGI

◆ pEnableHDRR

bool Dragengine.CameraDirectors.CameraDirector.pEnableHDRR

◆ pExposure

float Dragengine.CameraDirectors.CameraDirector.pExposure

◆ pFov

float Dragengine.CameraDirectors.CameraDirector.pFov

◆ pFovRatio

float Dragengine.CameraDirectors.CameraDirector.pFovRatio

◆ pHighestIntensity

float Dragengine.CameraDirectors.CameraDirector.pHighestIntensity

◆ pImageDistance

float Dragengine.CameraDirectors.CameraDirector.pImageDistance

◆ pLayerMask

LayerMask Dragengine.CameraDirectors.CameraDirector.pLayerMask

Referenced by setFov(), and updateMicrophone().

◆ pLowestIntensity

float Dragengine.CameraDirectors.CameraDirector.pLowestIntensity

◆ pMicrophone

Microphone Dragengine.CameraDirectors.CameraDirector.pMicrophone

◆ pToneMapCurve

CurveBezier Dragengine.CameraDirectors.CameraDirector.pToneMapCurve

Referenced by setMicrophone(), and updateMicrophone().

◆ pViewDistance

float Dragengine.CameraDirectors.CameraDirector.pViewDistance

◆ pWhiteIntensity

float Dragengine.CameraDirectors.CameraDirector.pWhiteIntensity

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