Bug 811

Summary: The legacy text renderer doesn't support GL3
Product: [JogAmp] Jogl Reporter: Julien Gouesse <gouessej>
Component: utilAssignee: Sven Gothel <sgothel>
Status: UNCONFIRMED ---    
Severity: enhancement CC: cmbruns, gouessej
Priority: P5    
Version: tbd   
Hardware: All   
OS: all   
Type: FEATURE SCM Refs:
Workaround: ---

Description Julien Gouesse 2013-08-08 13:48:11 CEST
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
Comment 1 Christopher Bruns 2014-10-28 19:14:52 CET
@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?
Comment 2 Julien Gouesse 2014-10-28 22:08:11 CET
Look at com.jogamp.graph.