|
Drag[en]gine Script Module DragonScript 1.35
|
Place camera relative an element with orbit support. More...
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. | |
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.
| float Dragengine.CameraDirectors.ElementCameraDirector.getAzimuth | ( | ) |
| String Dragengine.CameraDirectors.ElementCameraDirector.getBone | ( | ) |
Bone name.
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().
| DMatrix Dragengine.CameraDirectors.ElementCameraDirector.getCameraMatrix | ( | ) |
Camera matrix.
Reimplemented in Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector.
References componentBehavior, getBone(), Dragengine.CameraDirectors.CameraDirector.getCamera(), getCameraMatrix(), getComponentBehavior(), getUseOrientation(), new(), pBone, pDistance, pElement, pLocalMatrix, pPivot, pUseOrientation, setBone(), setUseOrientation(), and updateCamera().
Referenced by getCameraMatrix().
| ECBehaviorComponent.Instance Dragengine.CameraDirectors.ElementCameraDirector.getComponentBehavior | ( | ) |
Component behavior or null.
References getDistance(), and pDistance.
Referenced by getCameraMatrix().
| float Dragengine.CameraDirectors.ElementCameraDirector.getDistance | ( | ) |
| Element Dragengine.CameraDirectors.ElementCameraDirector.getElement | ( | ) |
References new(), Dragengine.CameraDirectors.CameraDirector.setCamera(), and Dragengine.CameraDirectors.CameraDirector.setMicrophone().
Referenced by getPivot().
| float Dragengine.CameraDirectors.ElementCameraDirector.getElevation | ( | ) |
| DMatrix Dragengine.CameraDirectors.ElementCameraDirector.getLocalMatrix | ( | ) |
| DVector Dragengine.CameraDirectors.ElementCameraDirector.getPivot | ( | ) |
| bool Dragengine.CameraDirectors.ElementCameraDirector.getUseOrientation | ( | ) |
Use element orientation.
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().
| ElementCameraDirector Dragengine.CameraDirectors.ElementCameraDirector.new | ( | Element | element | ) |
Create camera director.
References new(), pLocalMatrix, and pPivot.
Referenced by getCameraMatrix(), getDistance(), getElement(), getUseOrientation(), and new().
| ElementCameraDirector Dragengine.CameraDirectors.ElementCameraDirector.new | ( | Element | element, |
| Camera | camera, | ||
| Microphone | microphone ) |
Create camera director.
References setElement().
| void Dragengine.CameraDirectors.ElementCameraDirector.setAzimuth | ( | float | azimuth | ) |
Set vertical rotation.
Referenced by Dragengine.CameraDirectors.PlayerControlledActorCameraDirector.actorChanged(), getBone(), and Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector.getCameraMatrix().
| void Dragengine.CameraDirectors.ElementCameraDirector.setBone | ( | String | bone | ) |
Set bone name.
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().
| void Dragengine.CameraDirectors.ElementCameraDirector.setDistance | ( | float | distance | ) |
| void Dragengine.CameraDirectors.ElementCameraDirector.setElement | ( | Element | element | ) |
| void Dragengine.CameraDirectors.ElementCameraDirector.setElevation | ( | float | elevation | ) |
Set horizontal rotation.
Referenced by Dragengine.CameraDirectors.PlayerControlledActorCameraDirector.actorChanged(), Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector.getCameraMatrix(), and setBone().
| void Dragengine.CameraDirectors.ElementCameraDirector.setLocalMatrix | ( | DMatrix | localMatrix | ) |
| void Dragengine.CameraDirectors.ElementCameraDirector.setLocalMatrix | ( | Vector | position, |
| Vector | rotation ) |
Set local matrix from position and rotation.
References componentBehavior.
| void Dragengine.CameraDirectors.ElementCameraDirector.setPivot | ( | DVector | pivot | ) |
Set rotation point.
Referenced by Dragengine.CameraDirectors.PlayerControlledActorCameraDirector.actorChanged(), and getDistance().
| void Dragengine.CameraDirectors.ElementCameraDirector.setUseOrientation | ( | bool | useOrientation | ) |
Set use element orientation.
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().
| void Dragengine.CameraDirectors.ElementCameraDirector.updateCamera | ( | float | elapsed | ) |
Update camera.
Reimplemented from Dragengine.CameraDirectors.CameraDirector.
Reimplemented in Dragengine.CameraDirectors.PlayerControlledActorCameraDirector, and Dragengine.CameraDirectors.VRPlayerControlledActorCameraDirector.
References setDistance().
Referenced by getCameraMatrix().
|
protected |
Component behavior or null.
Referenced by getAzimuth(), getCameraMatrix(), and setLocalMatrix().
| float Dragengine.CameraDirectors.ElementCameraDirector.pAzimuth |
Referenced by getBone(), and setUseOrientation().
| String Dragengine.CameraDirectors.ElementCameraDirector.pBone |
Referenced by getCameraMatrix().
| float Dragengine.CameraDirectors.ElementCameraDirector.pDistance |
Referenced by getCameraMatrix(), and getComponentBehavior().
| Element Dragengine.CameraDirectors.ElementCameraDirector.pElement |
Referenced by getCameraMatrix(), getLocalMatrix(), getPivot(), and setLocalMatrix().
| float Dragengine.CameraDirectors.ElementCameraDirector.pElevation |
| DMatrix Dragengine.CameraDirectors.ElementCameraDirector.pLocalMatrix |
Referenced by getCameraMatrix(), getUseOrientation(), new(), setDistance(), and setUseOrientation().
| DVector Dragengine.CameraDirectors.ElementCameraDirector.pPivot |
Referenced by getCameraMatrix(), getElevation(), new(), and setDistance().
| bool Dragengine.CameraDirectors.ElementCameraDirector.pUseOrientation |
Referenced by getCameraMatrix().