Howto:CameraGroup talks: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(experiments ...)
 
No edit summary
Line 1: Line 1:
cameras.xml
$FG_HOME/cameras.xml
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<camera>
<camera>
     <host-name type="string"></host-name>
     <host-name type="string"></host-name>
Line 11: Line 14:
     <fullscreen type="bool">false</fullscreen>
     <fullscreen type="bool">false</fullscreen>
</camera>
</camera>
</PropertyList>
</syntaxhighlight>
</syntaxhighlight>



Revision as of 21:42, 18 July 2017

$FG_HOME/cameras.xml

<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>

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