G3X Touch Model Behaviors
Introduction
This page contains topics related to setting up Model Behaviors for an airplane that includes the G3X Touch.
SimAttachment Model Behaviors
If your airplane uses the Asobo_MPA_G3X_Touch
Sim Attachment that is included with the sim, then model behaviors for the GDU is included with the Sim Attachment.
When using the Sim Attachment, you should define the following dynamic behavior parameters in attached_objects.cfg
when including the attachment:
Name | Description | Default |
---|---|---|
CIRCUIT_ID | The index of the electrical circuit that provides power to the GDU. | 1 |
BOUNCE_POTENTIOMETER | The index of the light potentiometer to use to simulate bounce ambient lighting from the GDU's screen. | 1 |
BACKLIGHT_ID | The index of the screen backlighting LVar to use for the GDU. Should be equal to the GDU's index. | 1 |
The following example attached_objects.cfg
code shows how to define dynamic behavior parameters for two GDUs:
[SIM_ATTACHMENT.0] ; GDU 1
attachment_root="SimAttachments\Instruments\Asobo_MPA_G3X_Touch"
attachment_file="model\G3X_Touch.xml"
...
behavior_parameter.0="CIRCUIT_ID,'GDU_1'_n"
behavior_parameter.1="BOUNCE_POTENTIOMETER,10"
behavior_parameter.2="BACKLIGHT_ID,1"
[SIM_ATTACHMENT.1] ; GDU 2
attachment_root="SimAttachments\Instruments\Asobo_MPA_G3X_Touch"
attachment_file="model\G3X_Touch.xml"
...
behavior_parameter.0="CIRCUIT_ID,'GDU_2'_n"
behavior_parameter.1="BOUNCE_POTENTIOMETER,11"
behavior_parameter.2="BACKLIGHT_ID,2"
Legacy Model Behaviors
The base G3X Touch package includes legacy model behavior templates that can be used by airplanes that don't take advantage of the Asobo_MPA_G3X_Touch
Sim Attachment. These templates are included primarily for compatibility purposes and are generally not recommended to be used in most circumstances.
The legacy model behavior templates cannot be used with compiled model behaviors.
The legacy templates can be included using the following tag within a model behaviors XML file:
<Include ModelBehaviorFile="WT\G3XTouchv2\BehaviorsV1\G3XTouch.xml"/>
GDUs
The legacy template named WT_G3XTouch_Template
is provided for implementing G3X Touch GDUs.
One instance of WT_G3XTouch_Template
needs to be declared for each G3X Touch GDU. The template sets up cockpit interaction behaviors and tooltips for all of the GDU's physical buttons and knobs and controls the emissive properties of the GDU's screen and buttons.
WT_G3XTouch_Template
accepts the following parameters:
Name | Description | Default |
---|---|---|
ID | The index of the GDU. | 1 |
NODE_ID_SCREEN | The Node ID of the GDU's screen texture. | AS3X_Screen_#ID# |
NODE_ID_LEFT_OUTER_KNOB | The Node ID of the left outer knob. | AS3X_Knob_Outer_L_#ID# |
NODE_ID_LEFT_INNER_KNOB | The Node ID of the left inner knob. | AS3X_Knob_Inner_L_#ID# |
ANIM_NAME_LEFT_OUTER_KNOB | The name of the left outer knob's rotate animation. | AS3X_Knob_Outer_L_#ID# |
ANIM_NAME_LEFT_INNER_KNOB | The name of the left inner knob's rotate animation. | AS3X_Knob_Inner_L_#ID# |
ANIM_NAME_LEFT_INNER_PUSH | The name of the left inner knob's push animation. | AS3X_Knob_Inner_L_Push_#ID# |
NODE_ID_RIGHT_OUTER_KNOB | The Node ID of the right outer knob. | AS3X_Knob_Outer_R_#ID# |
NODE_ID_RIGHT_INNER_KNOB | The Node ID of the right inner knob. | AS3X_Knob_Inner_R_#ID# |
ANIM_NAME_RIGHT_OUTER_KNOB | The name of the right outer knob's rotate animation. | AS3X_Knob_Outer_R_#ID# |
ANIM_NAME_RIGHT_INNER_KNOB | The name of the right inner knob's rotate animation. | AS3X_Knob_Inner_R_#ID# |
ANIM_NAME_RIGHT_INNER_PUSH | The name of the right inner knob's push animation. | AS3X_Knob_Inner_R_Push_#ID# |
SCREEN_EMISSIVE_VAR_CODE | RPN code to get the GDU's backlight intensity level, in the range [0, 1]. May not apply if the SCREEN_EMISSIVE_CODE parameter is overridden. | (L:WTG3X_Screen_Backlight:#ID#) |
EMISSIVE_MIN | RPN code to get the minimum emissive value to apply to the GDU's screen emissive texture (i.e. when the backlight intensity level is 0). May not apply if the SCREEN_EMISSIVE_CODE parameter is overridden. | 0.05 |
EMISSIVE_MAX | RPN code to get the maximum emissive value to apply to the GDU's screen emissive texture (i.e. when the backlight intensity level is 1). May not apply if the SCREEN_EMISSIVE_CODE parameter is overridden. | 1 |
EMISSIVE_GAMMA | RPN code to get the gamma value to apply to the GDU's screen emissive curve. May not apply if the SCREEN_EMISSIVE_CODE parameter is overridden. | 2.2 |
SCREEN_EMISSIVE_CODE | RPN code to get the emissive value to apply to the GDU's screen emissive texture. | #EMISSIVE_MIN# #SCREEN_EMISSIVE_VAR_CODE# #EMISSIVE_GAMMA# pow #EMISSIVE_MAX# #EMISSIVE_MIN# - * + |
BUTTON_EMISSIVE_MIN | RPN code to get the minimum emissive value to apply to the GDU's button emissive textures (i.e. when the backlight intensity level is 0). May not apply if the BUTTON_EMISSIVE_CODE parameter is overridden. | 0.05 |
BUTTON_EMISSIVE_MAX | RPN code to get the maximum emissive value to apply to the GDU's button emissive textures (i.e. when the backlight intensity level is 1). May not apply if the BUTTON_EMISSIVE_CODE parameter is overridden. | 1 |
BUTTON_EMISSIVE_GAMMA | RPN code to get the gamma value to apply to the GDU's button emissive curve. May not apply if the BUTTON_EMISSIVE_CODE parameter is overridden. | 2.2 |
BUTTON_EMISSIVE_CODE | RPN code to get the emissive value to apply to the GDU's button emissive textures. | #BUTTON_EMISSIVE_MIN# #SCREEN_EMISSIVE_VAR_CODE# #BUTTON_EMISSIVE_GAMMA# pow #BUTTON_EMISSIVE_MAX# #BUTTON_EMISSIVE_MIN# - * + |
CIRCUIT_ID | The index of the electrical circuit that powers the GDU. If defined, then the GDU's screen and button emissives will be forced off when the circuit is not powered. May not apply if the FAILURE parameter is overridden. | None |
FAILURE | RPN code to get whether the GDU's screen and button emissives should be forced off. A value of 0 forces the emissives off. If neither this nor CIRCUIT_ID are defined, then emissive failure behavior is determined by the ASOBO_GT_Emissive_Gauge template. | None |