| Summary: | The legacy text renderer doesn't support GL3 | ||
|---|---|---|---|
| Product: | [JogAmp] Jogl | Reporter: | Julien Gouesse <gouessej> |
| Component: | util | Assignee: | Sven Gothel <sgothel> |
| Status: | UNCONFIRMED --- | ||
| Severity: | enhancement | CC: | cmbruns, gouessej |
| Priority: | P5 | ||
| Version: | tbd | ||
| Hardware: | All | ||
| OS: | all | ||
| Type: | FEATURE | SCM Refs: | |
| Workaround: | --- | ||
@Julien Gouesse: What is the "new text renderer" you speak of? Because I am experiencing this same trouble with "Not a GL2 Implementation" using the class com.jogamp.opengl.util.awt.TextRenderer. Is there another text rendering API I could be using with a GL3 context? Look at com.jogamp.graph. |
The legacy renderer doesn't work with GL3 as you can see below: Exception in thread "main-FPSAWTAnimator-Timer0" java.lang.RuntimeException: javax.media.opengl.GLException: Not a GL2 implementation Caused by: javax.media.opengl.GLException: Not a GL2 implementation at javax.media.opengl.DebugGL3.getGL2(DebugGL3.java:86) at com.jogamp.opengl.util.awt.TextRenderer.beginRendering(TextRenderer.java:650) at com.jogamp.opengl.util.awt.TextRenderer.beginRendering(TextRenderer.java:405) at com.jogamp.opengl.util.awt.TextRenderer.beginRendering(TextRenderer.java:384) A contributor provided a patch to improve this renderer but it's not clean, there are some code duplications, it doesn't use our shader utilities, it requires some work: https://github.com/sgothel/jogl/pull/47 Of course, this request for enhancement is not in high priority as: - the new text renderer always supports the programmable pipeline - several high level engines already have their own mechanisms to display text