Can anyone provide an example of how to use com.jogamp.graph.curve.opengl.TextRenderer
Posted by lukej on May 07, 2012; 2:26pm
URL: https://forum.jogamp.org/Can-anyone-provide-an-example-of-how-to-use-com-jogamp-graph-curve-opengl-TextRenderer-tp3968662.html
I've had some issues with the com.jogamp.opengl.util.awt.TextRenderer. Namely, it seems to leave something in a strange state such that my own VBO code crashes after using this class to render text on some ATI graphics cards. For now I have a workaround that calling setUseVertexArrays(false) fixes my issues.
I did a little research and it seems that this class has been abandoned for the better com.jogamp.graph.curve.opengl.TextRenderer. However, I am unable to figure out exactly how to use this class and I can't find a good example either. Can anyone provide an example of how to use this class to draw text on the screen.
Specifically I'm interested in 2 scenarios:
1. Drawing text on a Heads Up Display with statistics. This will always be done in Ortho 2D.
2. Drawing labels near items in my 3D scene. These labels will always be "billboarded" toward the camera, but they will move with respect to the camera. This will be done in Perspective 3D, but as mentioned they will always face the camera.
Thanks!
Luke