FlightGear provides a very flexible modular function
Here's a brief look at the view switch function
First of all, you need to know the main contents of the property tree in FlightGear, here tentatively.
Http://wiki.flightgear.org/PropertyList_XML_files
Then we look at the official note (http://wiki.flightgear.org/Howto:Configure_camera_view_windows)
FlightGear ' s xml-configurable camera view supports two modes mainly:
1. If your computer is connected to multiple independent displays (for example, you can't drag a window after the display, or create a large window across multiple monitors), you can configure FlightGear to open a separate window, each showing a specific angle of the screen, Then on each display (you can also open multiple windows on a single monitor, of course)
2. If you have multiple monitors connected, and they are virtual to 1 virtual displays. Then you can configure FlightGear to open an oversized window that can be extended to all monitors, but also need to divide this large window into multiple cameras to see the content, and then display on different displays.
to implement this feature, you need to modify the Preferences.xml file
However, FlightGear does not recommend this, for the sake of stability of the master configuration file,将配置文件建立在外部,然后通过文件引用的方式使用。相关命令为:--config=path-to-your-config.xml 。
The FlightGear landscape is implemented through OSG, so there is a default configuration file:$FG root/preferences.xml. (Actual FlightGear2016.1.1, in $fg root/data, or $FG root/fgdata).
You can implement multiple windows by adding a configuration file, or you can display the contents of multiple camera views in a single window. When you close any of these windows, the entire program closes.
Cases:
1 <?XML version= "1.0"?>2 <propertylist>3 <Camera>4 <Host-nametype= "string"></Host-name>5 <Display>0</Display>6 < Screen>0</ Screen>7 <Shear-x>2</Shear-x>8 <shear-y>1</shear-y>9 <width>320</width>Ten <Height>240</Height> One <fullscreentype= "bool">False</fullscreen> A </Camera> - <Camera> - <Host-nametype= "string"></Host-name> the <Display>0</Display> - < Screen>0</ Screen> - <Shear-x>-2</Shear-x> - <shear-y>1</shear-y> + <width>320</width> - <Height>240</Height> + <fullscreentype= "bool">False</fullscreen> A </Camera> at </propertylist>
This code is put in rendering, that is, if you want to refer to it, this is the case
1 < include= "Camera-views.xml">2 ... 3 </ Rendering >
Then open the FlightGear, you will find that there are two more windows, respectively, showing the different content.
Of course, you can also use the <camera-group> tab to put two views into one window.
Let's talk about this later, let's get here today.
FlightGear View Control