Hi Curt,add <text include="text.xml"/> to you aircraft's model file, place text.xml in the same directory as you aircraft's model file and see "hello, world!" written in huge letters 20m in front of you aircraft.
Torsten
<PropertyList> <!-- It should have a name. Can be used for other animations --> <name>My first Text</name> <!-- Use offsets for the initial placement --> <offsets> <pitch-deg>0</pitch-deg> <heading-deg>0</heading-deg> <roll-deg>0</roll-deg> <x-m>-20</x-m> <y-m>0.0</y-m> <z-m>2.0</z-m> </offsets> <!-- instead of using pitch/heading/roll offset, one may use axis-alignment --> <!-- remember: x backwards, y right and z up --> <!--axis-alignment>xy-plane</axis-alignment--> <!-- <axis-alignment>reversed-xy-plane</axis-alignment> <axis-alignment>xz-plane</axis-alignment> <axis-alignment>reversed-xz-plane</axis-alignment> <axis-alignment>yz-plane</axis-alignment> <axis-alignment>reversed-yz-plane</axis-alignment> --> <axis-alignment>screen</axis-alignment> <!-- what type of text to draw, use on of literal, text-value or number-value --> <!-- A simple constant, never changing string --> <type type="string">literal</type> <text type="string">hello, world!</text> <!-- The string value of a property --> <!-- <type type="string">text-value</type> <property type="string">some/property</property> <format type="string">%s</format> --> <!-- A number from a property --> <!--type type="string">number-value</type--> <!--property type="string">position/latitude-deg</property--> <!--factor type="double">1.0</factor--> <!-- optional, used to scale the propertie's value --> <!--offset type="double">0.0</offset--> <!-- optional, used to shift the propertie's value --> <!--format type="string">%5.2lf</format--> <!-- the printf() format to display the value --> <!--truncate type="bool">false</truncate--> <!-- set to true to truncate to an integer value --> <layout>left-to-right</layout> <!-- default --> <!-- <layout>right-to-left</layout> <layout>vertical</layout> --> <draw-text type="bool">true</draw-text> <!-- draw the text itself --> <draw-alignment type="bool">true</draw-alignment> <!-- draw a crosshair at the object center --> <draw-boundingbox type="bool">true</draw-boundingbox> <!-- draw a bounding box --> <font>LiberationFonts/LiberationSans-Regular.ttf</font> <!-- The font file name, relative to data/Fonts --> <character-size type="double">2.0</character-size> <!-- size (height) im meters --> <character-aspect-ratio type="double">1.0</character-aspect-ratio> <max-height>2.5</max-height> <!-- the maximum height of the text --> <max-width>25</max-width> <!-- the maximum width of the text --> <font-resolution> <width type="int">128</width> <height type="int">128</height> </font-resolution> <!-- chose one of the kerning types or omit for default --> <kerning>default</kerning> <!-- <kerning>unfitted</kerning> <kerning>none</kerning> --> <alignment>center-center</alignment> <!-- alignment of the text itself --> <!-- possible values are <alignment>left-top</alignment> <alignment>left-center</alignment> <alignment>left-bottom</alignment> <alignment>center-top</alignment> <alignment>center-center</alignment> <alignment>center-bottom</alignment> <alignment>right-top</alignment> <alignment>right-center</alignment> <alignment>right-bottom</alignment> <alignment>left-baseline</alignment> <alignment>center-baseline</alignment> <alignment>right-baseline</alignment> <alignment>baseline</alignment> --> </PropertyList>
------------------------------------------------------------------------------ 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