Is controlP5 no longer usable in Processing 2.0? (OpenGL mode)
in
Contributed Library Questions
•
2 months ago
Hi all. I'm trying to run some old code that uses ControlP5. I love Processing 2.0 and all the additions including retained mode/VBOs, which I need for my application. However, I can't seem to use ControlP5 anymore (including the tutorial examples) due to the error:
Aug 15, 2013 3:40:29 PM controlP5.ControllerPlug set
WARNING: plug() failed null. If function controlEvent does exist, make it public. java.lang.NoSuchMethodException: gaem2.Gaem2.controlEvent(controlP5.ControlEvent)
The class controlP5.ControlWindow is incompatible with Processing 2.0.
A library (or other code) is using registerMouseEvent() which is no longer available.
Stopping the sketch because this code will not work correctly with OpenGL.
Exception in thread "Animation Thread" java.lang.RuntimeException: java.lang.RuntimeException: This sketch uses a library that needs to be updated for Processing 2.0.
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 processing.opengl.PGL.requestDraw(PGL.java:1155)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1602)
at processing.core.PApplet.run(PApplet.java:2141)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: This sketch uses a library that needs to be updated for Processing 2.0.
at processing.core.PApplet.reportDeprecation(PApplet.java:1407)
at processing.core.PApplet.registerMouseEvent(PApplet.java:1417)
at controlP5.ControlWindow.<init>(Unknown Source)
at controlP5.ControlP5.init(Unknown Source)
at controlP5.ControlP5.<init>(Unknown Source)
at gaem2.Gaem2.setup(Gaem2.java:340)
at processing.core.PApplet.handleDraw(PApplet.java:2245)
at processing.opengl.PGL$PGLListener.display(PGL.java:2643)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:576)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:561)
at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1024)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:899)
at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I'm trying to compile the ControlP5tab example sketch, in Eclipse, with some additions from my own code that use OpenGL for 3d graphics. It used to work and I could draw a 2D guy on top of my graphics.
If anyone has any ideas, let me know. The sketch seems to run (albeit with a warning) message in the Processing IDE itself, but not within Eclipse.
Thanks.
Aug 15, 2013 3:40:29 PM controlP5.ControllerPlug set
WARNING: plug() failed null. If function controlEvent does exist, make it public. java.lang.NoSuchMethodException: gaem2.Gaem2.controlEvent(controlP5.ControlEvent)
The class controlP5.ControlWindow is incompatible with Processing 2.0.
A library (or other code) is using registerMouseEvent() which is no longer available.
Stopping the sketch because this code will not work correctly with OpenGL.
Exception in thread "Animation Thread" java.lang.RuntimeException: java.lang.RuntimeException: This sketch uses a library that needs to be updated for Processing 2.0.
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 processing.opengl.PGL.requestDraw(PGL.java:1155)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1602)
at processing.core.PApplet.run(PApplet.java:2141)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: This sketch uses a library that needs to be updated for Processing 2.0.
at processing.core.PApplet.reportDeprecation(PApplet.java:1407)
at processing.core.PApplet.registerMouseEvent(PApplet.java:1417)
at controlP5.ControlWindow.<init>(Unknown Source)
at controlP5.ControlP5.init(Unknown Source)
at controlP5.ControlP5.<init>(Unknown Source)
at gaem2.Gaem2.setup(Gaem2.java:340)
at processing.core.PApplet.handleDraw(PApplet.java:2245)
at processing.opengl.PGL$PGLListener.display(PGL.java:2643)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:576)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:561)
at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1024)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:899)
at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I'm trying to compile the ControlP5tab example sketch, in Eclipse, with some additions from my own code that use OpenGL for 3d graphics. It used to work and I could draw a 2D guy on top of my graphics.
If anyone has any ideas, let me know. The sketch seems to run (albeit with a warning) message in the Processing IDE itself, but not within Eclipse.
Thanks.
1