Writting a Text on a Object

Hi,



In my studie project, we use jme3 for the creation of a large german TrainStation. How we can write a Text on a Object at the runtime? We did not create all TextMessages as Textures, the reason is that the text will be come from a webservice.



I hope, you can help me.

http://hub.jmonkeyengine.org/javadoc/com/jme3/font/BitmapText.html

Thanks, the class is nice, but how i can edit the position of the Text. I have a box which is moving and on the box will be shown the text. At the moment the box and the text at the same node in the scenegraph.

It was just down a little on the linked page:

http://hub.jmonkeyengine.org/javadoc/com/jme3/scene/Spatial.html#setLocalTranslation(com.jme3.math.Vector3f)



This will set the text’s location relative to the parent. If the parent is a moving node then the text will move with the box.

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:scenegraph_for_dummies