Drag[en]gine Script Module DragonScript
1.21
|
Directs camera and microphone required to render the game scene. More...
Public Member Functions | |
void | activate () |
Director has been activated. More... | |
void | applyParameters (Camera camera) |
Apply parameters to camera. More... | |
void | copyParameters (Camera camera) |
Copy parameters from camera. More... | |
void | copyParameters (CameraDirector director) |
Copy parameters from camera director. More... | |
void | deactivate () |
Director has been deactivated. More... | |
float | getAdaptionTime () |
Adaption time. More... | |
float | getBloomBlend () |
Bloom blend as multiplier of intensity beyond bloom intensity. More... | |
float | getBloomIntensity () |
Bloom intensity multiplier. More... | |
float | getBloomSize () |
Bloom size as percentage of screen width. More... | |
float | getBloomStrength () |
Bloom strength as multiplier of intensity beyond bloom intensity. More... | |
Camera | getCamera () |
Camera to modify. More... | |
bool | getEnableGI () |
Enable global illumination (GI) if supported. More... | |
bool | getEnableHDRR () |
Enable high definition range rendering (HDRR) if supported. More... | |
float | getExposure () |
Exposure. More... | |
float | getFov () |
Field of view. More... | |
float | getFovRatio () |
Field of view ratio (height / width). More... | |
float | getHighestIntensity () |
Highest intensity. More... | |
float | getImageDistance () |
Camera image distance. More... | |
LayerMask | getLayerMask () |
Layer mask. More... | |
float | getLowestIntensity () |
Lowest intensity. More... | |
Microphone | getMicrophone () |
Microphone to modify. More... | |
CurveBezier | getToneMapCurve () |
Custom tone mapping curve or empty curve to disable. More... | |
float | getViewDistance () |
Camera view distance. More... | |
float | getWhiteIntensity () |
White intensity multiplier. More... | |
void | initCameraParameters () |
Init camera parameters. More... | |
CameraDirector | new () |
Create camera director. More... | |
CameraDirector | new (Camera camera, Microphone microphone) |
Create camera director. More... | |
void | resetCameraAdaptedIntensity () |
Request graphic module to reset camera adapted intensity to optimal value. More... | |
void | setAdaptionTime (float time) |
Set adaption time. More... | |
void | setBloomBlend (float blend) |
Set bloom blend as multiplier of intensity beyond bloom intensity. More... | |
void | setBloomIntensity (float intensity) |
Set bloom intensity multiplier. More... | |
void | setBloomSize (float size) |
Bloom size as percentage of screen width. More... | |
void | setBloomStrength (float strength) |
Set bloom strength as multiplier of intensity beyond bloom intensity. More... | |
void | setCamera (Camera camera) |
Set camera to modify. More... | |
void | setEnableGI (bool enable) |
Set to enable global illumination (GI) if supported. More... | |
void | setEnableHDRR (bool enable) |
Set to enable high definition range rendering (HDRR) if supported. More... | |
void | setExposure (float exposure) |
Set exposure. More... | |
void | setFov (float fov) |
Set field of view. More... | |
void | setFovRatio (float ratio) |
Set field of view ratio (height / width). More... | |
void | setHighestIntensity (float intensity) |
Set highest intensity. More... | |
void | setImageDistance (float distance) |
Set camera image distance. More... | |
void | setLayerMask (LayerMask layerMask) |
Set layer mask. More... | |
void | setLowestIntensity (float intensity) |
Set lowest intensity. More... | |
void | setMicrophone (Microphone microphone) |
Set microphone to modify. More... | |
void | setToneMapCurve (CurveBezier curve) |
Set custom tone mapping curve or empty curve to disable. More... | |
void | setViewDistance (float distance) |
Set camera view distance. More... | |
void | setWhiteIntensity (float intensity) |
Set white intensity multiplier. More... | |
void | update (float elapsed) |
Update director. More... | |
void | updateCamera (float elapsed) |
Update camera. More... | |
void | updateMicrophone (float elapsed) |
Update microphone. More... | |
Public Attributes | |
final float | fovFirstPerson = 90 |
Typical first person FOV. More... | |
final float | fovLongTele = 6.87 |
Long tele camera FOV. More... | |
final float | fovMediumTele = 10.29 |
Medium tele camera FOV. More... | |
final float | fovNormal = 39.6 |
Normal camera FOV. More... | |
final float | fovShortFirstPerson = 75 |
Shorter first person FOV. More... | |
final float | fovShortTele = 22.62 |
Short tele camera FOV. More... | |
final float | fovUltraWide = 83.97 |
Ultra wide camera FOV. More... | |
final float | fovWide = 65.47 |
Wide camera FOV. More... | |
float | pAdaptionTime |
float | pBloomBlend |
float | pBloomIntensity |
float | pBloomSize |
float | pBloomStrength |
Camera | pCamera |
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 |
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.
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.
Reimplemented in Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector.
void Dragengine.CameraDirectors.CameraDirector.applyParameters | ( | Camera | camera | ) |
Apply parameters to camera.
void Dragengine.CameraDirectors.CameraDirector.copyParameters | ( | Camera | camera | ) |
Copy parameters from camera.
void Dragengine.CameraDirectors.CameraDirector.copyParameters | ( | CameraDirector | director | ) |
Copy parameters from camera director.
void Dragengine.CameraDirectors.CameraDirector.deactivate | ( | ) |
Director has been deactivated.
Reimplemented in Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector.
float Dragengine.CameraDirectors.CameraDirector.getAdaptionTime | ( | ) |
Adaption time.
float Dragengine.CameraDirectors.CameraDirector.getBloomBlend | ( | ) |
Bloom blend as multiplier of intensity beyond bloom intensity.
float Dragengine.CameraDirectors.CameraDirector.getBloomIntensity | ( | ) |
Bloom intensity multiplier.
float Dragengine.CameraDirectors.CameraDirector.getBloomSize | ( | ) |
Bloom size as percentage of screen width.
float Dragengine.CameraDirectors.CameraDirector.getBloomStrength | ( | ) |
Bloom strength as multiplier of intensity beyond bloom intensity.
Camera Dragengine.CameraDirectors.CameraDirector.getCamera | ( | ) |
Camera to modify.
bool Dragengine.CameraDirectors.CameraDirector.getEnableGI | ( | ) |
Enable global illumination (GI) if supported.
bool Dragengine.CameraDirectors.CameraDirector.getEnableHDRR | ( | ) |
Enable high definition range rendering (HDRR) if supported.
float Dragengine.CameraDirectors.CameraDirector.getExposure | ( | ) |
Exposure.
float Dragengine.CameraDirectors.CameraDirector.getFov | ( | ) |
Field of view.
float Dragengine.CameraDirectors.CameraDirector.getFovRatio | ( | ) |
Field of view ratio (height / width).
float Dragengine.CameraDirectors.CameraDirector.getHighestIntensity | ( | ) |
Highest intensity.
float Dragengine.CameraDirectors.CameraDirector.getImageDistance | ( | ) |
Camera image distance.
LayerMask Dragengine.CameraDirectors.CameraDirector.getLayerMask | ( | ) |
Layer mask.
float Dragengine.CameraDirectors.CameraDirector.getLowestIntensity | ( | ) |
Lowest intensity.
Microphone Dragengine.CameraDirectors.CameraDirector.getMicrophone | ( | ) |
Microphone to modify.
CurveBezier Dragengine.CameraDirectors.CameraDirector.getToneMapCurve | ( | ) |
Custom tone mapping curve or empty curve to disable.
float Dragengine.CameraDirectors.CameraDirector.getViewDistance | ( | ) |
Camera view distance.
float Dragengine.CameraDirectors.CameraDirector.getWhiteIntensity | ( | ) |
White intensity multiplier.
void Dragengine.CameraDirectors.CameraDirector.initCameraParameters | ( | ) |
Init camera parameters.
Reimplemented in Dragengine.ConversationSystem.ConversationCameraDirector.
CameraDirector Dragengine.CameraDirectors.CameraDirector.new | ( | ) |
Create camera director.
Reimplemented in Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector, and Dragengine.CameraDirectors.PlayerControlledActorCameraDirector.
CameraDirector Dragengine.CameraDirectors.CameraDirector.new | ( | Camera | camera, |
Microphone | microphone | ||
) |
Create camera director.
Reimplemented in Dragengine.ConversationSystem.ConversationCameraDirector, Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector, and Dragengine.CameraDirectors.PlayerControlledActorCameraDirector.
void Dragengine.CameraDirectors.CameraDirector.resetCameraAdaptedIntensity | ( | ) |
Request graphic module to reset camera adapted intensity to optimal value.
void Dragengine.CameraDirectors.CameraDirector.setAdaptionTime | ( | float | time | ) |
Set adaption time.
void Dragengine.CameraDirectors.CameraDirector.setBloomBlend | ( | float | blend | ) |
Set bloom blend as multiplier of intensity beyond bloom intensity.
void Dragengine.CameraDirectors.CameraDirector.setBloomIntensity | ( | float | intensity | ) |
Set bloom intensity multiplier.
void Dragengine.CameraDirectors.CameraDirector.setBloomSize | ( | float | size | ) |
Bloom size as percentage of screen width.
void Dragengine.CameraDirectors.CameraDirector.setBloomStrength | ( | float | strength | ) |
Set bloom strength as multiplier of intensity beyond bloom intensity.
void Dragengine.CameraDirectors.CameraDirector.setCamera | ( | Camera | camera | ) |
Set camera to modify.
Reimplemented in Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector.
void Dragengine.CameraDirectors.CameraDirector.setEnableGI | ( | bool | enable | ) |
Set to enable global illumination (GI) if supported.
void Dragengine.CameraDirectors.CameraDirector.setEnableHDRR | ( | bool | enable | ) |
Set to enable high definition range rendering (HDRR) if supported.
void Dragengine.CameraDirectors.CameraDirector.setExposure | ( | float | exposure | ) |
Set exposure.
void Dragengine.CameraDirectors.CameraDirector.setFov | ( | float | fov | ) |
Set field of view.
void Dragengine.CameraDirectors.CameraDirector.setFovRatio | ( | float | ratio | ) |
Set field of view ratio (height / width).
void Dragengine.CameraDirectors.CameraDirector.setHighestIntensity | ( | float | intensity | ) |
Set highest intensity.
void Dragengine.CameraDirectors.CameraDirector.setImageDistance | ( | float | distance | ) |
Set camera image distance.
void Dragengine.CameraDirectors.CameraDirector.setLayerMask | ( | LayerMask | layerMask | ) |
Set layer mask.
void Dragengine.CameraDirectors.CameraDirector.setLowestIntensity | ( | float | intensity | ) |
Set lowest intensity.
void Dragengine.CameraDirectors.CameraDirector.setMicrophone | ( | Microphone | microphone | ) |
Set microphone to modify.
void Dragengine.CameraDirectors.CameraDirector.setToneMapCurve | ( | CurveBezier | curve | ) |
Set custom tone mapping curve or empty curve to disable.
void Dragengine.CameraDirectors.CameraDirector.setViewDistance | ( | float | distance | ) |
Set camera view distance.
void Dragengine.CameraDirectors.CameraDirector.setWhiteIntensity | ( | float | intensity | ) |
Set white intensity multiplier.
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.
void Dragengine.CameraDirectors.CameraDirector.updateCamera | ( | float | elapsed | ) |
void Dragengine.CameraDirectors.CameraDirector.updateMicrophone | ( | float | elapsed | ) |
Update microphone.
Reimplemented in Dragengine.CameraDirectors.PlayerControlledActorCameraDirector.
final float Dragengine.CameraDirectors.CameraDirector.fovFirstPerson = 90 |
Typical first person FOV.
final float Dragengine.CameraDirectors.CameraDirector.fovLongTele = 6.87 |
Long tele camera FOV.
final float Dragengine.CameraDirectors.CameraDirector.fovMediumTele = 10.29 |
Medium tele camera FOV.
final float Dragengine.CameraDirectors.CameraDirector.fovNormal = 39.6 |
Normal camera FOV.
final float Dragengine.CameraDirectors.CameraDirector.fovShortFirstPerson = 75 |
Shorter first person FOV.
final float Dragengine.CameraDirectors.CameraDirector.fovShortTele = 22.62 |
Short tele camera FOV.
final float Dragengine.CameraDirectors.CameraDirector.fovUltraWide = 83.97 |
Ultra wide camera FOV.
final float Dragengine.CameraDirectors.CameraDirector.fovWide = 65.47 |
Wide camera FOV.
float Dragengine.CameraDirectors.CameraDirector.pAdaptionTime |
float Dragengine.CameraDirectors.CameraDirector.pBloomBlend |
float Dragengine.CameraDirectors.CameraDirector.pBloomIntensity |
float Dragengine.CameraDirectors.CameraDirector.pBloomSize |
float Dragengine.CameraDirectors.CameraDirector.pBloomStrength |
Camera Dragengine.CameraDirectors.CameraDirector.pCamera |
bool Dragengine.CameraDirectors.CameraDirector.pEnableGI |
bool Dragengine.CameraDirectors.CameraDirector.pEnableHDRR |
float Dragengine.CameraDirectors.CameraDirector.pExposure |
float Dragengine.CameraDirectors.CameraDirector.pFov |
float Dragengine.CameraDirectors.CameraDirector.pFovRatio |
float Dragengine.CameraDirectors.CameraDirector.pHighestIntensity |
float Dragengine.CameraDirectors.CameraDirector.pImageDistance |
LayerMask Dragengine.CameraDirectors.CameraDirector.pLayerMask |
float Dragengine.CameraDirectors.CameraDirector.pLowestIntensity |
Microphone Dragengine.CameraDirectors.CameraDirector.pMicrophone |
CurveBezier Dragengine.CameraDirectors.CameraDirector.pToneMapCurve |
float Dragengine.CameraDirectors.CameraDirector.pViewDistance |
float Dragengine.CameraDirectors.CameraDirector.pWhiteIntensity |