|
From: Josh B. <jba...@at...> - 2006-02-18 15:46:39
|
Torsten Dreyer wrote: > 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 > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Flightgear-devel mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > Nope. They work differently. You have to use normal model animations like rotate, spin, and translate based on properties. 3D instruments are no different than flaps, landing gear or any other model part. The only apparent difference is that they are typically (but not necessarily) stored in a different file for reusability. Josh |