sob, i have converted quite everiting rignt from jme1 to jme2, but i get text2d not working.
for example a red message 123 will appear as a red rectangle long and tall enought to contain the "123" message.
some hints? tnx
try to add a rootnode.updateRenderState() ad the end of your scene setup.
It is just there!
texts are created in a way like:
Font2D font = new Font2D();
Text2D attackPercentage = new Text2D(font, "arg1", 7, 3);
and than attacked to some node that is attacked to someother node with rendere queue mode ortho.
i have tried to upadateRendeState() even on it, but… nothing
Try it this way:
Font2D font2d= new Font2D();
Text2D text2d= font2d.createText("Your text here!", 10, 0);
I found this in the text examplet http://code.google.com/p/jmonkeyengine/source/browse/trunk/src/jmetest/text/Test3DText.java
nymon said:
Try it this way:
Font2D font2d= new Font2D();
Text2D text2d= font2d.createText("Your text here!", 10, 0);
I found this in the text examplet http://code.google.com/p/jmonkeyengine/source/browse/trunk/src/jmetest/text/Test3DText.java
Done.
Nothin change. :'( :'( :'( :'(
OK i have solve it!!!
t.setRenderState(Text.getFontBlend());
That whas the missing stuff!!!