Howto:CameraGroup talks
Jump to navigation
Jump to search
Prerequisites
- PropertyList XML files
- http://wiki.flightgear.org/Nasal_library/io#read_properties.28.29
- http://wiki.flightgear.org/index.php?title=Howto:Configure_camera_view_windows&redirect=no
$FG_HOME/cameras.xml
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<camera n="1">
<host-name type="string"></host-name>
<display>0</display>
<screen>0</screen>
<shear-x>2</shear-x>
<shear-y>1</shear-y>
<width>320</width>
<height>240</height>
<fullscreen type="bool">false</fullscreen>
</camera>
</PropertyList>
Open the Nasal Console:
var path = getprop("/sim/fg-home") ~ "/cameras.xml";
io.read_properties(path, "/sim/rendering/camera-group");