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