Guidance for rendering text: tutorials/discussions/etc

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Guidance for rendering text: tutorials/discussions/etc

LordSmoke
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