John Denker wrote:

> 5) Using textranslate to implement the frequency digits on a digital radio is 
> still a
>  kludge.  The xml required to do this is long-winded, to say the least.  The 
> patches
>  presented here do not remove the pressure for a nicer api.  Some sort of 
> sprintf and
>  substr "expressions" seem like the obvious way to go.

If I understand this correctly I think FlightGear already provides a way 
to do that. I've recently attached a 2d-panel text animation to a 3d 
model to display all sorts of text information in an Data Entry Display 
(DED).

See FlightGear/data/Aircraft/f16/Models/ded-display.xml for more details.

If I remember correctly it would be easy to use a different font to 
render 7 (or more) segment led displays (I believe such a font is 
already in the base package).

The only drawback is that one needs to define a background texture (in 
this case I had to use a transparent texture to remove it) A better 
approach would be to not use a background polygon when no background 
texture is defined).

Erik


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to