Vivian,

The interpolation table did the trick.  Thanks for the heads-up.

-Vance

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vivian Meazza
Sent: Thursday, November 18, 2004 12:07 PM
To: 'FlightGear developers discussions'
Subject: RE: [Flightgear-devel] Nasal



Roy Vegard Ovesen wrote:
 
> On Thursday 18 November 2004 16:53, Vance Souders wrote:
> > Here's a snippet of code to convert the inhg property value to mbar and
> > then use this to rotate the left-most digit on the mbar display.  The
> code
> > doesn't seem to work; Is this the correct usage of the <scale> tag?  I
> > can't find an example of its use for a 3D cockpit.
> >
> > <animation>
> >   <type>textranslate</type>
> >   <object-name>mb_digit_4</object-name>
> >   <property>/instrumentation/altimeter/setting-inhg</property>
> >   <scale>33.86</scale>
> >   <factor>.0001</factor>
> >   <step>1000</step>
> >   <!--<scroll>20</scroll>-->
> >   <axis>
> >    <x>0</x>
> >    <y>1</y>
> >    <z>0</z>
> >   </axis>
> >  </animation>
> >
> > Thanks again,
> > Vance
> 
> Hmmm... I guess that the factor tag does the same for 3d as the scale tag
> does
> for 2d, so you should put 33.86 inside the factor tag, and remove the
> scale
> tag completely. But I'm not sure about this.
> 
> I wish I had a clue about how to add text chunks to the 3d animation code
> :-|
> 

Here's another way of doing it: data/Aircraft/Spitfire/Models/boost.xml. The
data between the <interpolate> and </interpolate> tags converts inHg to psi
and changes the output from absolute to gauge. You need to work out the
factors involved by hand though.

Regards,

Vivian 
 



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to