From d84531bc36f0d1ca8d7f9a487fdc355ab60f9f76 Mon Sep 17 00:00:00 2001 From: torsten Date: Mon, 24 Aug 2009 18:07:51 +0000 Subject: [PATCH] Added support for osgText in models. This file documents the xml structure for the configuration. --- Docs/README.osgtext | 118 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 Docs/README.osgtext diff --git a/Docs/README.osgtext b/Docs/README.osgtext new file mode 100644 index 000000000..57b473365 --- /dev/null +++ b/Docs/README.osgtext @@ -0,0 +1,118 @@ +This document describes the syntax for text objects in the scene graph. +Text nodes are configured using XML and may appear within a model description +file, like other models or the particlesystem. + +For the anxious reader, here is a complete example of a text node: + + + My first Text + + + 0 + 0 + 0 + 0 + 0 + 0 + + + + + xy-plane + + + + + literal + Hello, world! + + + text-value + some/property + %s + + + number-value + position/latitude-deg + 1.0 + 0.0 + %5.2lf + false + + left-to-right + + + true + false + false + + led.txf + 0.01 + 1.0 + 0.012 + 0.040 + + 32 + 32 + + + + default + + + center-center + + + + +The node may appear within or nodes. If you place your text directly within +your model file, use nodes. You can also put your configuration into a separate file +using the well known include directive: + +Your model.xml file: + + may-fancy-model.ac + + + +Your HelloWorld.xml: + + Hello World + Helvetica.txf + literal + Hello, world! + + + +Animation can be applied to text nodes like any other object. To give your text some color, use the material +animation, or translate, rotate, scale or spin your text as you like.