FGCamera: Difference between revisions
Jump to navigation
Jump to search
Line 98: | Line 98: | ||
==== fgcamera-adjust ==== | ==== fgcamera-adjust ==== | ||
{{ WIP }} | {{ WIP }} | ||
<syntaxhighlight lang="xml"> | |||
<key n="360"> | |||
<name> PageUp </name> | |||
<desc>Camera Up</desc> | |||
<binding> | |||
<command>fgcamera-adjust</command> | |||
<velocity>1</velocity> | |||
<dof>y</dof> | |||
</binding> | |||
<mod-up> | |||
<binding> | |||
<command>fgcamera-adjust</command> | |||
<velocity>0</velocity> | |||
<dof>y</dof> | |||
</binding> | |||
</mod-up> | |||
</key> | |||
</syntaxhighlight> | |||
== Development status (Aug 2014) == | == Development status (Aug 2014) == |
Revision as of 08:32, 13 August 2014
FGCamera is an alternative FlightGear view system that adds features similar to „EZdok Camera Addon“ for Flight Simulator X. FGCamera is written in Nasal.
Currently available features:
- 4 camera types:
- Virtual cockpit,
- Aircraft (look-at),
- Aircraft (look-from),
- World (look-from);
- Arbitrary number of preset views;
- Smooth/discrete transition between the views of the same camera type.
Download link / Installation
- Download fgcamera_v1.rar
- Delete (if exist) FG HOME/aircraft-data/FGCamera;
- Delete (if exist) FG ROOT/Nasal/fgcamera;
- Copy fgcamera folder (from downloaded archive) to FG ROOT/Nasal;
- Use FG ROOT/Nasal/fgcamera/fgcamera_cfg as config.
User Interface
Graphical user interface is used to create and manage camera views. FGCamera dialogs can be launched using menubar item View/FGCamera (experimental).
Currently, there are three functional dialogs:
- Main,
- Camera creation,
- Current camera settings.
Main Dialog
- "Options" button opens FGCamera's global settings dialog. This dialog is currently non functional.
- "Create new camera..." button opens new camera creation dialog.
- The list of cameras shows all the camera views that are created for the currently selected aircraft. Each camera view has its own index. The active view (currently selected view) is marked by square brackets.
- The active view can be renamed using input box below the list of cameras.
- Buttons "U" and "D" are used to rearrange camera views.
- "Delete" button removes the active camera.
- "Save" button saves all the cameras data to disk.
- "Close" closes the dialog (changes will not be saved to disk).
Camera Creation Dialog
- "Camera type" popup list is used to select camera type. Supported types:
- cockpit,
- aircraft (look at),
- aircraft (look from),
- world (look from);
- "Create" – creates new camera view and selects it as an active camera.
- "Cancel" – closes the dialog.
"Current camera settings" Dialog
- FOV – field of view;
- View movement – group of inputs that controls view movement between preset views:
- Transition time – time to move camera from current position to preset position.
- View adjustment – group of inputs that controls view adjustment behaviour:
- Linear velocity – translational velocity of camera in meters per second,
- Angular velocity – angular velocity of camera in degrees per second.
- Lowpass filter – "smoothness" of the camera movement.
- Mouse look – group of inputs that controls mouse look behaviour:
- Mouse sensitivity – self explanatory,
- Lowpass filter – "smoothness" of the camera movement.
- "Apply" saves current camera position (does not write to disk).
- "Cancel" – closes the dialog (current camera position will not be saved).
Controls
Preconfigured keys
- select preset views: 1, 2, 3, 4, 5, 6, 7, 8, 9, 0.
- adjust camera position: ↑, ↓, ←, →, Page Up, Page Down.
Note to People using keyboard to fly (with or without mouse): throttle keys aren't working with the camera |
Key assignments can be customized by editing FGROOT/Nasal/fgcamera/fgcamera_cfg.xml
Commands
fgcamera-select
Work in progress This article or section will be worked on in the upcoming hours or days. See history for the latest developments. |
<key n="48">
<name> 0 </name>
<repeatable type="bool">false</repeatable>
<desc>Preset view 0</desc>
<binding>
<command>fgcamera-select</command>
<camera-id>0</camera-id>
<camera-type>aircraft</camera-type>
</binding>
</key>
fgcamera-adjust
Work in progress This article or section will be worked on in the upcoming hours or days. See history for the latest developments. |
<key n="360">
<name> PageUp </name>
<desc>Camera Up</desc>
<binding>
<command>fgcamera-adjust</command>
<velocity>1</velocity>
<dof>y</dof>
</binding>
<mod-up>
<binding>
<command>fgcamera-adjust</command>
<velocity>0</velocity>
<dof>y</dof>
</binding>
</mod-up>
</key>
Development status (Aug 2014)
- Dynamic view movement;
- Random camera movement (effects);
- Not done Alternative config (presets) that supports "keyboard+mouse" flight controls.
Gallery