Howto:CameraGroup talks: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
<PropertyList>
<PropertyList>


<camera>
<camera n="1">
     <host-name type="string"></host-name>
     <host-name type="string"></host-name>
     <display>0</display>
     <display>0</display>
Line 24: Line 24:
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
var path = getprop("/sim/fg-home") ~ "/cameras.xml";
var path = getprop("/sim/fg-home") ~ "/cameras.xml";
io.read_properties(path, "/sim/rendering");
io.read_properties(path, "/sim/rendering/camera-group");
</syntaxhighlight>
</syntaxhighlight>

Revision as of 21:48, 18 July 2017

$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");