I have 4 3d quads that represent the 4 digits of a millibar display embedded in a 3D altimeter. I need to read inches HG from the property system, convert it to mbar and then use that as a texture translation offset for the quad digits. There are lots of examples for 2D gauges, but none for 3D gauges.
Here's a portion of the code that drives the HG portion of the altimeter (This works fine). <!-- inches HG display --> <animation> <type>textranslate</type> <object-name>hg_digit_4</object-name> <property>/instrumentation/altimeter/setting-inhg</property> <factor>0.01</factor> <step>10</step> <!--<scroll>20</scroll>--> <axis> <x>0</x> <y>1</y> <z>0</z> </axis> </animation> <animation> <type>textranslate</type> <object-name>hg_digit_3</object-name> <property>/instrumentation/altimeter/setting-inhg</property> <factor>0.1</factor> <step>1</step> <!--<scroll>20</scroll>--> <axis> <x>0</x> <y>1</y> <z>0</z> </axis> </animation> Works fine. Here's a bit of the code for the mbar digits (note that the conversion factor is multiplied into the factor (.001 * 33.6)): <animation> <type>textranslate</type> <object-name>mb_digit_3</object-name> <property>/instrumentation/altimeter/setting-inhg</property> <factor>0.0336</factor> <step>100</step> <scroll>20</scroll> <axis> <x>0</x> <y>1</y> <z>0</z> </axis> </animation> This doesn't work one bit. I initially thought, no problem, I'll embed some nasal into the altimeter's xml file but that isn't supported. I want to make the T6's cockpit fully functional so any suggestions are welcome. Thanks, Vance -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boris Koenig Sent: Thursday, November 18, 2004 11:59 AM To: FlightGear developers discussions Subject: Re: [Flightgear-devel] Nasal Roy Vegard Ovesen wrote: > On Thursday 18 November 2004 16:53, Vance Souders wrote: > > I wish I had a clue about how to add text chunks to the 3d animation code :-| What exactly do you want to do ? Do you want to animate text ? If you only want to add text layers, then there are numerous examples in the instrument files - e.g. the ADF panel is a good example. -------- Boris _______________________________________________ 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