Guidance for rendering text: tutorials/discussions/etc
Posted by
LordSmoke on
May 16, 2017; 2:32pm
URL: https://forum.jogamp.org/Guidance-for-rendering-text-tutorials-discussions-etc-tp4037992.html
Might someone point me to good tutorials/discussion/example for rendering text in jogl?
I have had good success (see pic) in getting text rendered by massaging code presented in:
https://jogamp.org/deployment/v2.2.4/javadoc/jogl/javadoc/com/jogamp/graph/curve/opengl/RegionRenderer.html#reshapePerspective(float,%20int,%20int,%20float,%20float)
But I need more info to understand what I can/should change and how. JavaDocs seem a bit sparse. The following is what I find for reshape methods for RegionRenderer:
reshapePerspective
public final void reshapePerspective(float angle,
int width,
int height,
float near,
float far)
reshapeOrtho
public final void reshapeOrtho(int width,
int height,
float near,
float far)
Some specific things I am looking for include how to center text on at a given point, info about the RegionRenderer PMVMatrix and its associated methods (I generate my own for non-text geometry), and things I don't even know I need/want to know.
TIA, LS