|
From: Torsten D. <to...@t3...> - 2006-02-18 15:41:05
|
Hi all,
can I use the <params> tag in 3d-Instruments?
Background:
For a piston-twin, I want to add two RPM gauges to the 3d-panel but I do not
want to create a separate 3d model for the LH and RH gauge but tell the model
which property drives the needle.
In 2d panels, this is done by the <params> tag. Using the same technique in
the 3d model does not seem to work.
Here is what I am doing (this shows the rpm of engine[0], not engine[1]):
In the myaircraft.xml:
<model>
<name>RPM-Right</name>
<path>Aircraft/SenecaII/Models/RPM.xml</path>
<!-- does not seem to have any effect ;-( -->
<params>
<value0>/engines/engine[1]/rpm</value0>
</params>
<offsets>
<x-m>-1.91</x-m>
<y-m>-0.0876063</y-m>
<z-m>1.28695</z-m>
</offsets>
</model>
in the RPM.xml:
<PropertyList>
<path>RPM.ac</path>
<params>
<value0>/engines/engine[0]/rpm</value0>
</params>
<animation>
<type>rotate</type>
<object-name>Pointer</object-name>
<property alias="../../params/value0"/>
<offset-deg>152.0</offset-deg>
<factor>-.08</factor>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
</center>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
</PropertyList>
Any Ideas?
Thanks, Torsten
|