Skip to main content

G3X Touch Instrument Setup

GDUs

The G3X Touch consists of one or more display units called GDUs. The real-world units come in two different form factors: 10.6" landscape (GDU 460-series) and 7" portrait (GDU 470-series). Currently, the G3X Touch package only supports the 10.6" landscape (GDU 460) format.

Each GDU is represented in the sim by one Javascript/HTML instrument.

panel.cfg

To set up your aircraft's panel.cfg for the G3X Touch, add one VCockpit entry for each GDU. Load the following HTML file for each instrument:

NavSystems/G3XTouch/G3XTouch.html

Each instrument must be indexed (even if there is only one G3X Touch instrument in your aircraft). Indexes start at 1 and increment by 1 for each additional instrument.

Each instrument has a specific desired window size that depends on the format of the GDU:

GDU formatWidth (px)Height (px)
4601280768
470 (not supported)N/AN/A

Here is an example of a full set of G3X Touch VCockpit entries, with two GDUs (note that the texture names are arbitrary; you are free to use names that are different from the ones in this example):

[VCockpit01]
size_mm=1280,768
pixel_size=1280,768
texture=G3X_1
htmlgauge00=NavSystems/G3XTouch/G3XTouch.html?Index=1, 0,0,1280,768

[VCockpit02]
size_mm=1280,768
pixel_size=1280,768
texture=G3X_2
htmlgauge00=NavSystems/G3XTouch/G3XTouch.html?Index=2, 0,0,1280,768
info

When the cockpit 3D model uses a GDU screen texture that is not the correct 16:9 aspect ratio for the G3X Touch (this can be a common issue when converting from the legacy AS3X avionics, which uses a 16:10 aspect ratio), it is recommended to follow the rules below:

  • Specify the instrument's window size in the texture's aspect ratio (e.g. if the texture's aspect ratio is 16:10, the window size should also be 16:10). This prevents non-uniform stretching from happening.
  • Ensure the window size is at least as large as the desired window size for the GDU. Specifying a smaller window size will result in the rendered screen area being clipped.

If the specified window size is larger than the desired window size, the G3X Touch will only render to an area equal to the desired window size. This rendered area will be horizontally and vertically centered in the window. For example, if the window size for a GDU 460 is set to 1920x1080, then the actual rendered area will be a 1280x768 box with its top-left corner at x=320, y=156. Everything outside the rendered area will be transparent (and so will take on the color of the texture's background).

The sim's VCockpit system allows you to make the window size different from the instrument gauge size and offset the instrument gauge within the window. It is not recommended to use this feature. Having different instrument gauge and window sizes breaks the highlighting used by the sim's assisted checklist system.

panel.xml

In addition to the above, you must declare all GDUs in the aircraft's panel.xml file using the <GduDefs> tag. GDUs that are not properly declared in panel.xml will fail to initialize and throw a Javascript runtime error.

panel.xml is also where you define the instrument type of each GDU. There are two instrument types: PFD and MFD. Both instrument types ultimately have the same functions and primarily differ in what information they present in their two panes:

TypeMain Pane (always visible)Splitscreen Pane (only visible in Splitscreen mode)
PFDPFD displayMFD information (maps, flight plan, waypoint information, etc.)
MFDMFD information (maps, flight plan, waypoint information, etc.)PFD display or navigation map

Configuring the instrument type for GDUs is done via the <Gdu> tag. For example, to declare two GDUs and designate the first as a PFD and the second as an MFD, you would create the following tags in panel.xml:

<GduDefs count="2">
<Gdu index="1" type="PFD" type-index="1">
</Gdu>

<Gdu index="2" type="MFD" type-index="1">
</Gdu>
<GduDefs>

The index attribute on each <Gdu> tag references the GDU/instrument index (as declared in panel.cfg). The type attribute defines the instrument type. The type-index defines the index of the GDU within all GDUs of the same instrument type (in the above example, the GDUs are defined as PFD1 and MFD1). The combination of type and type-index should be unique for each GDU.

info

The assignment of a GDU's type and type index affects the behavior of GDU reversionary mode.

For the purposes of reversionary mode, each GDU is assigned a cognate. The cognate of GDU A is the GDU X that satisfies the following two conditions: (1) X's type is the opposite of A's type, and (2) X's type index is the largest type index less than or equal to A's type index among all GDUs with the same type as X. Note that cognate relationships are not necessarily symmetric; X being the cognate of A does not guarantee that A is the cognate of X.

A GDU will enter reversionary mode when its cognate is not operating normally (either powered off or failed). If a GDU cannot be assigned a cognate, then it will never enter reversionary mode.

Bing Map Instances

The G3X Touch uses Bing map instances provided by the sim to draw the terrain and weather layers for moving maps and to draw the SVT (synthetic vision) display. The sim restricts the total number of Bing map instances used by an airplane to ten. Each G3X Touch GDU by default uses four Bing map instances. Additionally, the sim's VFR Map panel uses one Bing map instance. This means that an airplane can have at most two default G3X Touch GDUs and still stay under the Bing map instance limit, assuming the only instance used by non-G3X code is the VFR Map.

For airplanes with more than two G3X Touch GDUs or those that include non-G3X instruments that use additional Bing map instances, compromises must be made to stay under the ten-instance limit. The G3X Touch provides the option to disable certain features to reduce the number of Bing map instances per GDU. These optimizations can be configured using the <BingMapOpt> tag in panel.xml.

Bing map optimizations can be applied globally to all GDUs or on a per-GDU basis (see here for an explanation on how to apply a tag globally versus to a specific instrument). There are two optimizations available, and each reduces the number of used Bing map instances by one per GDU:

  • Disable the PFD Inset Map and the PFD Map Page.
  • Disable the PFD SVT (synthetic vision) display.

When an optimization is applied, users will not be able to select or enable the features disabled by the optimization. The option for the features will still be accessible and visible in the G3X Touch's menus but will be marked as disabled. When enabling these optimizations for your airplane, it is recommended to clearly communicate to your users that the corresponding features are not available by design.