Login  Register

Re: TextRenderer - my text won't show

Posted by chakie on Aug 09, 2013; 7:52am
URL: https://forum.jogamp.org/TextRenderer-my-text-won-t-show-tp4029291p4029770.html

Yeah, the old renderer is out. OSX's OpenGL drivers aren't exactly the best I've seen, but at least we've got OpenGL3 nowadays.

The new shader based renderer looks to be very good, but it has some issues too. This is what I get:

Exception in thread "main-FPSAWTAnimator-Timer0" java.lang.RuntimeException: javax.media.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glUniform(<javax.media.opengl.GLUniformData> GLUniformData[name gcu_ColorStatic, location 1, size 1x3, count 1, data HeapFloatBuffer[pos 0, lim 3, cap 3, remaining 3; array true, direct false, r/w true: 1.0, 1.0, 1.0]]): GL_INVALID_OPERATION ( 1282 0x502),
        at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
        at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:100)
        at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:205)
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
        at javax.media.opengl.Threading.invoke(Threading.java:191)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:440)
        at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:167)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
Caused by: javax.media.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glUniform(<javax.media.opengl.GLUniformData> GLUniformData[name gcu_ColorStatic, location 1, size 1x3, count 1, data HeapFloatBuffer[pos 0, lim 3, cap 3, remaining 3; array true, direct false, r/w true: 1.0, 1.0, 1.0]]): GL_INVALID_OPERATION ( 1282 0x502),
        at javax.media.opengl.DebugGL3.checkGLGetError(DebugGL3.java:9753)
        at javax.media.opengl.DebugGL3.glUniform(DebugGL3.java:5174)
        at com.jogamp.opengl.util.glsl.ShaderState.uniform(ShaderState.java:952)
        at com.jogamp.graph.curve.opengl.Renderer.setColorStatic(Renderer.java:213)

Seems like there's some issue with the gcu_ColorStatic uniform.