This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_camera [2025/03/11 02:32] – [Optional Behaviors] dragonlord | dragengine:modules:dragonscript:behavior_camera [2025/03/13 17:05] (current) – dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
Line 13: | Line 13: | ||
Behavior adds a Camera resource to the the behavior element. Creates a camera attached to the element collider which can be individually modified. | Behavior adds a Camera resource to the the behavior element. Creates a camera attached to the element collider which can be individually modified. | ||
+ | See also: | ||
+ | * [[gamedev: | ||
====== Instance Counts ====== | ====== Instance Counts ====== | ||
This behavior can be added multiple times to an element. Use the behavior identifier to tell them apart. | This behavior can be added multiple times to an element. Use the behavior identifier to tell them apart. | ||
Line 42: | Line 44: | ||
===== fov ===== | ===== fov ===== | ||
Set vertical field of view in degrees for the entire view. | Set vertical field of view in degrees for the entire view. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: float | * Type: float | ||
* Default Value: 39.6 | * Default Value: 39.6 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== fovRatio ===== | ===== fovRatio ===== | ||
Set aspect ratio of the horizontal field of view to the vertical field of view. | Set aspect ratio of the horizontal field of view to the vertical field of view. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: float | * Type: float | ||
* Default Value: 1 | * Default Value: 1 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== imageDistance ===== | ===== imageDistance ===== | ||
Set distance to the image plane. | Set distance to the image plane. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: float | * Type: float | ||
* Default Value: 0.01 | * Default Value: 0.01 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== viewDistance ===== | ===== viewDistance ===== | ||
Set viewing distance up to which world geometry is rendered. | Set viewing distance up to which world geometry is rendered. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: float | * Type: float | ||
* Default Value: 200 | * Default Value: 200 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== enableHDRR ===== | ===== enableHDRR ===== | ||
Set enable high definition range rendering (HDRR) if supported. | Set enable high definition range rendering (HDRR) if supported. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: boolean | * Type: boolean | ||
* Default Value: true | * Default Value: true | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== exposure ===== | ===== exposure ===== | ||
Set exposure. | Set exposure. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: float | * Type: float | ||
* Default Value: 1 | * Default Value: 1 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== lowestIntensity ===== | ===== lowestIntensity ===== | ||
Set lowest intensity the eye can adapt to. | Set lowest intensity the eye can adapt to. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: float | * Type: float | ||
* Default Value: 1 | * Default Value: 1 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== highestIntensity ===== | ===== highestIntensity ===== | ||
Set highest intensity the eye can adapt to. | Set highest intensity the eye can adapt to. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: float | * Type: float | ||
* Default Value: 20 | * Default Value: 20 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== adaptionTime ===== | ===== adaptionTime ===== | ||
Set adaption time of the eye in seconds. | Set adaption time of the eye in seconds. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: float | * Type: float | ||
* Default Value: 0.1 | * Default Value: 0.1 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== enableGI ===== | ===== enableGI ===== | ||
Set enable global illumination (GI) if supported. | Set enable global illumination (GI) if supported. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: boolean | * Type: boolean | ||
* Default Value: Engine.getDefaultEnableGI() | * Default Value: Engine.getDefaultEnableGI() | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== pathParameters ===== | ===== pathParameters ===== | ||
Set path to camera parameters file ('' | Set path to camera parameters file ('' | ||
- | * Full name: '' | + | * Full name: '' |
* Type: string | * Type: string | ||
* Default Value: empty string | * Default Value: empty string | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
- | ===== Events ===== | + | ====== Events |
This behavior has no events. | This behavior has no events. | ||
Line 135: | Line 137: | ||
====== Optional Behaviors ====== | ====== Optional Behaviors ====== | ||
- | This behavior supports these optional behaviors: | ||
* [[behavior_collider|ECBehaviorCollider]]: | * [[behavior_collider|ECBehaviorCollider]]: | ||