Ok, here is my first problem while learning canvas basics:
I modelled a very simple display in blender, a frame and a separate object called "Screen" which is a plane with a black texture.
I put a XML beside it with parameters to be overlayed later on...
- Code: Select all
<PropertyList>
<path>EFIS-display.ac</path>
<params>
<name>EFIS_display_0</name>
<powerN>/systems/DC/outputs/mfd1</powerN>
<lightmap-texture-path>Aircraft/Generic/generic-lightmap.png</lightmap-texture-path>
</params>
<animation>
<name alias="/params/name" />
<object-name>Screen</object-name>
</animation>
<animation>
<type>material</type>
<object-name alias="/params/name" />
<condition>
<greater-than>
<property alias="/params/powerN" />
<value>24</value>
</greater-than>
</condition>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
<factor-prop>controls/lighting/display-norm</factor-prop>
</emission>
</animation>
</PropertyList>
... and included the whole thing three times in the flightdeck.xml so I have my three displays for PFD,MFD,EICAS.
- Code: Select all
<model>
<!-- <path>Aircraft/CRJ700-family/Models/Instruments/PFD/pfd.xml</path> -->
<path>Aircraft/CRJ700-family/Models/Instruments/EFIS/EFIS-display.xml</path>
<overlay>
<params>
<name>DisplayPFD1</name>
<powerN>/systems/DC/outputs/pfd1</powerN>
<lightmap-texture-path>Aircraft/CRJ700-family/Models/Effects/Lightmaps/pfd-left-lightmap.png</lightmap-texture-path>
</params>
</overlay>
<offsets>
<x-m>-1.9025</x-m>
<y-m>-0.51396</y-m>
<z-m>0.87135</z-m>
<pitch-deg>-10</pitch-deg>
</offsets>
</model>
<model>
<!-- similar for MFD, EICAS with other params/name -->
The material animation works nicely, the texture of the "Screen" object is dark dark grey and turning the knob will give some "CRT light".
Anyhow, trying to put a canvas placement on a node alias name fails, putting the placement on "Screen" will bring the same canvas texture to all three display units.
So the XML animation statement to declare an alias name for "Screen" per include does not work as I hoped.
Is there a way to include the display unit model/xml multiple times and rename the Screen object so each included screen can be addressed separately for canvas placement?