User Tools

Site Tools


dragengine:modules:dragonscript:behavior_camera

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dragengine:modules:dragonscript:behavior_camera [2025/03/11 02:32] – [Optional Behaviors] dragonlorddragengine:modules:dragonscript:behavior_camera [2025/03/13 17:05] (current) dragonlord
Line 1: Line 1:
 {{tag>dragonscript behavior}} {{tag>dragonscript behavior}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[abstractions#behavior_elementsquick_and_easy_development|Behavior Elements: Quick and Easy Development]] >> **ECBehaviorCamera**+[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[dragengine:modules:dragonscript:abstractions|Abstraction Layers: How you want to build your Game]] >> [[dragengine:modules:dragonscript:behavior_elements|Behavior Elements]] >> **ECBehaviorCamera**
 </WRAP> </WRAP>
  
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:cameratonemap|Camera Tone Mapping]]
 ====== 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: ''customColor.fov'' or ''customColor({id}).fov''+  * Full name: ''camera.fov'' or ''camera({id}).fov''
   * Type: float   * Type: float
   * Default Value: 39.6   * Default Value: 39.6
   * Restriction: At least 0 and at most 180   * Restriction: At least 0 and at most 180
-  * Example (*.deeclass) <code xml><float name='customColor.fov'>60</value></code>+  * Example (*.deeclass) <code xml><float name='camera.fov'>60</value></code>
  
 ===== 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: ''customColor.fovRatio'' or ''customColor({id}).fovRatio''+  * Full name: ''camera.fovRatio'' or ''camera({id}).fovRatio''
   * Type: float   * Type: float
   * Default Value: 1   * Default Value: 1
   * Restriction: At least 0.1   * Restriction: At least 0.1
-  * Example (*.deeclass) <code xml><float name='customColor.fovRatio'>1.5</value></code>+  * Example (*.deeclass) <code xml><float name='camera.fovRatio'>1.5</value></code>
  
 ===== imageDistance ===== ===== imageDistance =====
 Set distance to the image plane. Set distance to the image plane.
-  * Full name: ''customColor.imageDistance'' or ''customColor({id}).imageDistance''+  * Full name: ''camera.imageDistance'' or ''camera({id}).imageDistance''
   * Type: float   * Type: float
   * Default Value: 0.01   * Default Value: 0.01
   * Restriction: At least 0.001   * Restriction: At least 0.001
-  * Example (*.deeclass) <code xml><float name='customColor.imageDistance'>0.1</value></code>+  * Example (*.deeclass) <code xml><float name='camera.imageDistance'>0.1</value></code>
  
 ===== viewDistance ===== ===== viewDistance =====
 Set viewing distance up to which world geometry is rendered. Set viewing distance up to which world geometry is rendered.
-  * Full name: ''customColor.viewDistance'' or ''customColor({id}).viewDistance''+  * Full name: ''camera.viewDistance'' or ''camera({id}).viewDistance''
   * Type: float   * Type: float
   * Default Value: 200   * Default Value: 200
   * Restriction: At least 0.01   * Restriction: At least 0.01
-  * Example (*.deeclass) <code xml><float name='customColor.viewDistance'>500</value></code>+  * Example (*.deeclass) <code xml><float name='camera.viewDistance'>500</value></code>
  
 ===== enableHDRR ===== ===== enableHDRR =====
 Set enable high definition range rendering (HDRR) if supported. Set enable high definition range rendering (HDRR) if supported.
-  * Full name: ''customColor.enableHDRR'' or ''customColor({id}).enableHDRR''+  * Full name: ''camera.enableHDRR'' or ''camera({id}).enableHDRR''
   * Type: boolean   * Type: boolean
   * Default Value: true   * Default Value: true
-  * Example (*.deeclass) <code xml><float name='customColor.enableHDRR'>false</value></code>+  * Example (*.deeclass) <code xml><float name='camera.enableHDRR'>false</value></code>
  
 ===== exposure ===== ===== exposure =====
 Set exposure. Set exposure.
-  * Full name: ''customColor.exposure'' or ''customColor({id}).exposure''+  * Full name: ''camera.exposure'' or ''camera({id}).exposure''
   * Type: float   * Type: float
   * Default Value: 1   * Default Value: 1
   * Restriction: 0   * Restriction: 0
-  * Example (*.deeclass) <code xml><float name='customColor.exposure'>1.5</value></code>+  * Example (*.deeclass) <code xml><float name='camera.exposure'>1.5</value></code>
  
 ===== lowestIntensity ===== ===== lowestIntensity =====
 Set lowest intensity the eye can adapt to. Set lowest intensity the eye can adapt to.
-  * Full name: ''customColor.lowestIntensity'' or ''customColor({id}).lowestIntensity''+  * Full name: ''camera.lowestIntensity'' or ''camera({id}).lowestIntensity''
   * Type: float   * Type: float
   * Default Value: 1   * Default Value: 1
   * Restriction: 0   * Restriction: 0
-  * Example (*.deeclass) <code xml><float name='customColor.lowestIntensity'>10</value></code>+  * Example (*.deeclass) <code xml><float name='camera.lowestIntensity'>10</value></code>
  
 ===== highestIntensity ===== ===== highestIntensity =====
 Set highest intensity the eye can adapt to. Set highest intensity the eye can adapt to.
-  * Full name: ''customColor.highestIntensity'' or ''customColor({id}).highestIntensity''+  * Full name: ''camera.highestIntensity'' or ''camera({id}).highestIntensity''
   * Type: float   * Type: float
   * Default Value: 20   * Default Value: 20
   * Restriction: 0   * Restriction: 0
-  * Example (*.deeclass) <code xml><float name='customColor.highestIntensity'>25</value></code>+  * Example (*.deeclass) <code xml><float name='camera.highestIntensity'>25</value></code>
  
 ===== adaptionTime ===== ===== adaptionTime =====
 Set adaption time of the eye in seconds. Set adaption time of the eye in seconds.
-  * Full name: ''customColor.adaptionTime'' or ''customColor({id}).adaptionTime''+  * Full name: ''camera.adaptionTime'' or ''camera({id}).adaptionTime''
   * Type: float   * Type: float
   * Default Value: 0.1   * Default Value: 0.1
   * Restriction: 0   * Restriction: 0
-  * Example (*.deeclass) <code xml><float name='customColor.adaptionTime'>25</value></code>+  * Example (*.deeclass) <code xml><float name='camera.adaptionTime'>25</value></code>
  
 ===== enableGI ===== ===== enableGI =====
 Set enable global illumination (GI) if supported. Set enable global illumination (GI) if supported.
-  * Full name: ''customColor.enableGI'' or ''customColor({id}).enableGI''+  * Full name: ''camera.enableGI'' or ''camera({id}).enableGI''
   * Type: boolean   * Type: boolean
   * Default Value: Engine.getDefaultEnableGI()   * Default Value: Engine.getDefaultEnableGI()
-  * Example (*.deeclass) <code xml><float name='customColor.enableGI'>false</value></code>+  * Example (*.deeclass) <code xml><float name='camera.enableGI'>false</value></code>
  
 ===== pathParameters ===== ===== pathParameters =====
 Set path to camera parameters file (''*.decamera'') to use. If not empty path the settings override the manual settings. Set path to camera parameters file (''*.decamera'') to use. If not empty path the settings override the manual settings.
-  * Full name: ''customColor.pathParameters'' or ''customColor({id}).pathParameters''+  * Full name: ''camera.pathParameters'' or ''camera({id}).pathParameters''
   * Type: string   * Type: string
   * Default Value: empty string   * Default Value: empty string
-  * Example (*.deeclass) <code xml><string name='customColor.pathParameters'>default.decamera</string></code>+  * Example (*.deeclass) <code xml><string name='camera.pathParameters'>default.decamera</string></code>
  
-===== 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]]: Attaches camera to collider if set.   * [[behavior_collider|ECBehaviorCollider]]: Attaches camera to collider if set.
  
dragengine/modules/dragonscript/behavior_camera.1741660328.txt.gz · Last modified: 2025/03/11 02:32 by dragonlord