Rotate Text elements

Hi,

I am having trouble doing a thing that I thought was probably quite easy so I hope somebody can help me:

I want to place a plane text on the screen, transate it and rotate it. Translation works fine, rotation does not work. Here a little code fragment:



Text text = Text.createDefaultTextLabel("text", "a simple Text");
//Translate
text.setLocalTranslation(new Vector3f(1,60,0));
//Rotate
Quaternion q = new Quaternion();
q = q.fromAngleAxis(FastMath.DEG_TO_RAD*90, new Vector3f(1,0,0));
text.setLocalRotation(q);
scene.attachChild(text);



So my question:
- Is it possible to rotate a text like this?
- If not, what is the easiest way to put simple rotated texts on the screen?

Thanks for your help
                     

i dont know about the old text class you are using, but you can always play around with that:

http://www.jmonkeyengine.com/jmeforum/index.php?topic=11220.0



hopefully it will be optimized and committed to jme soon. until then you can always suggest bugfixes and enhancements  :wink:



EDIT: since a BitmapText is basically a Node you can rotate / scale and transform it in THREE-dimensional space as much as you like, just as you do with a normal Node.