Excuse the question, but I have not been able to find anything in the forums
I'm trying to implement floating text, such as a name floating above an avatar.
I thought I read that it is suggested to use Text: take the location in world
coordinates for the text, mapped to screen coordinates, and then set that
to the Text's localTranslation.
This gets the text in the correct area X,Y, and I can see 0 - 1 values for Z, but
I can't seem to get the text to participate in the zbuffering.
(So that the floating name will not been seen if the avatar is behind a building, etc)
I've tried Text2D, Text, zbufferstates, and I think I've got too many variables and
not even a confirmation whether this is recommended.
So my question is: is this the correct method to implement floating text?
And if so, is there a code sample around that shows how to get it positioned
in the zbuffer correctly?
Thanks for any information,
i think you can use this one here: http://www.jmonkeyengine.com/jmeforum/index.php?topic=6485.msg71042#msg71042
Ah OK, so I was trying to use Text and Text2D incorrectly.