Board index FlightGear Development

OSG Text - scaling of numbers does not work

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

OSG Text - scaling of numbers does not work

Postby jsb » Sun Nov 01, 2015 10:31 pm

According to http://wiki.flightgear.org/OSG_Text it should be possible to scale a number before output
However, in the example below, only offset works (but I don't need that, thus I reset it to 0), the factor does not work, the number is displayed unchanged.
Any idea?
Code: Select all
   <text>
      <name>Vertical speed indicator</name>
      <type>number-value</type>
      <property alias="/params/indicated-vertical-speed-fpm" />
      <factor>0.001</factor>
      <offset>0.0</offset>
      <axis-alignment>yz-plane</axis-alignment>
      <alignment>right-center</alignment>
      <character-size>0.007</character-size>
      <character-aspect-ratio>1.4</character-aspect-ratio>
      <font>helvetica_bold.txf</font>
      <format>%1.1f</format>
      <offsets>
         <x-m>0.0003</x-m>
         <y-m>0.06874</y-m>
         <z-m>-0.05678</z-m>
      </offsets>

   </text>
jsb
 
Posts: 285
Joined: Sat Oct 25, 2014 9:17 pm
Location: Hamburg, Germany
Callsign: D-JSB
Version: next
OS: Win7/Linux

Return to Development

Who is online

Users browsing this forum: No registered users and 9 guests