Am 31.01.2012 20:58, schrieb Curtis Olson:

> The HUD is an interesting idea -- I was able to quickly build a custom
> hud config and write my words individually to a property name for
> display.  With the HUD I can specify a font and a size, but if I scale
> up the size, the font get's really pixelated.
Texture font :-(
>
> The hud "threw" an error when I tried to specify a liberation ttf font.
>
> Are the ttf fonts only available as 3d objects?
Yes.
> Will they work in 2d panels?
No
> If they are 3d only, what would it take to create a simple
> object that I could place in the scene as part of the aircraft model
> (maybe out front somewhere in the main view???) to display text?
There was a forum topic some time ago:
http://flightgear.org/forums/viewtopic.php?f=14&t=5740

Check FGDATA/Docs/README.osgtext. Basically you add a to your model file 
something like
<PropertyList>
   ...all your other model animations...
   <text>
     ... all the fancy text controlling properties go here
   </text>
</PropertyList>

You might want to play with
<axis-alignment>screen</axis-alignment>
This should keep your text on the same position on the screen, no matter 
where you look at.

and use
<draw-boundingbox type="bool">true</draw-boundingbox>
so you can see a box around the area where you text should be.

Anders has many examples for osgtext in his Zeppelin ifyou need a hint.

Torsten

>
> Thanks,
>
> Curt.
> --
> Curtis Olson:
> http://www.atiak.com - http://aem.umn.edu/~uav/
> http://www.flightgear.org - http://gallinazo.flightgear.org
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
>
>
>
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to