User Tools

Site Tools


en:orx:config:settings_structure:orxcamera

This is an old revision of the document!


orxCAMERA structure

Summary

[CameraTemplate]
FrustumHeight = <float>
FrustumWidth  = <float>
FrustumNear   = <float>
FrustumFar    = <float>
ParentCamera  = CameraTemplate
Position      = <vector>
Rotation      = <float>
Zoom          = <float>
GroupList     = Group1 # ... # GroupN

Details

Here's a list of the available properties for an orxCAMERA structure:

  • FrustumNear/FrustumFar: Defines the near and far planes for the camera frustum. The near plane is excluded whereas the far plane is included when doing render culling.
  • FrustumHeight/FrustumWidth: As orx's cameras are 2D ones, their frustum are rectangle cuboids instead of real frustums. If you want to achieve a 1:1 aspect ratio with your main display window, you can use the Display.ScreenHeight and Display.ScreenWidth values.
  • ParentCamera: If defined, this camera will be a child of the other camera in the same way it's done for orxOBJECTs that have a ParentCamera property.
  • Position: Camera's initial position.
  • Rotation: Camera's initial rotation (along its Z-axis).
  • Zoom: Camera's initial zoom.
  • GroupList: Groups (of objects) will be rendered in the order of declaration. Up to 16 groups can be associated to a camera. Defaults to “default” group. 1) 2)

Latest config settings for the Development Version

We endeavor to keep the config properties on this page up to date as often as possible. For up to the minute config information for the latest version of Orx, check the most recent published at:

CreationTemplate.ini and

SettingsTemplate.ini

Additionally these files can be found under your orx source tree in the orx/code/bin folder.

2)
All orxObjects belong to this “default” group unless otherwise specified. You can specify an object be part of a particular group. If your camera has a list of groups, and your object is not in any of those groups, your object will not render.
en/orx/config/settings_structure/orxcamera.1496119845.txt.gz · Last modified: 2017/05/30 00:50 (7 years ago) (external edit)