Billboards, Text2D vs. Java 2D Text
I'd like to add text to my 3D objects in the scene. I experimented with Billboard Behavior, Text2D and Text3D, but it's not looking good. I don't want the text to get smaller when the camera or the object moves away, for example.
So I figured I might add the text in the postRender() method using .drawString(String text, int xPos, int yPos).
My problem is that I don't know how to position the 2d text on the screen.
Picking translates between the (x,y) position on the 2D screen to a Pickray in 3D space, and if the Pickray hits an object or a point something happens. How can I reverse that? I know the 3D point, now how can I find out the correct 2D pixel location so that I can draw the text there?
Thanks in advance,