hi there!
short question: is it possible to use the ControlP5 library AND GLGraphics at the same time? i am trying to do that, programm compiles, but gives an exception:
java.lang.RuntimeException: Too many calls to pushMatrix().
at processing.core.PGraphics3D.pushMatrix(Unknown Source)
at codeanticode.glgraphics.GLGraphics.pushMatrix(GLGraphics.java:271)
at processing.core.PApplet.pushMatrix(Unknown Source)
at controlP5.ControllerGroup.draw(Unknown Source)
at controlP5.ControlWindow.draw(Unknown Source)
at...
I implemented a deeper matrix stack, but this gives me another exception:
Exception in thread "Animation Thread" java.lang.NoSuchMethodError: processing.core.PImage.getCache(Ljava/lang/Object;)Ljava/lang/Object;
at codeanticode.glgraphics.GLGraphics.renderTriangles(GLGraphics.java:1145)
at processing.core.PGraphics3D.render(Unknown Source)
at processing.core.PGraphics3D.flush(Unknown Source)
at processing.opengl.PGraphicsOpenGL.endDraw(Unknown Source)
at codeanticode.glgraphics.GLGraphics.endDraw(GLGraphics.java:239)
at processing.core.PApplet.handleDraw(Unknown Source)
at ...
Sample Code is:
thanks in advance for any hints,
micha
short question: is it possible to use the ControlP5 library AND GLGraphics at the same time? i am trying to do that, programm compiles, but gives an exception:
java.lang.RuntimeException: Too many calls to pushMatrix().
at processing.core.PGraphics3D.pushMatrix(Unknown Source)
at codeanticode.glgraphics.GLGraphics.pushMatrix(GLGraphics.java:271)
at processing.core.PApplet.pushMatrix(Unknown Source)
at controlP5.ControllerGroup.draw(Unknown Source)
at controlP5.ControlWindow.draw(Unknown Source)
at...
I implemented a deeper matrix stack, but this gives me another exception:
Exception in thread "Animation Thread" java.lang.NoSuchMethodError: processing.core.PImage.getCache(Ljava/lang/Object;)Ljava/lang/Object;
at codeanticode.glgraphics.GLGraphics.renderTriangles(GLGraphics.java:1145)
at processing.core.PGraphics3D.render(Unknown Source)
at processing.core.PGraphics3D.flush(Unknown Source)
at processing.opengl.PGraphicsOpenGL.endDraw(Unknown Source)
at codeanticode.glgraphics.GLGraphics.endDraw(GLGraphics.java:239)
at processing.core.PApplet.handleDraw(Unknown Source)
at ...
Sample Code is:
- import processing.opengl.*;
- import codeanticode.glgraphics.*;
- import controlP5.*;
- public int myColorBackground = 200;
- ControlP5 controlP5;
- void setup() {
- size(400,400,GLConstants.GLGRAPHICS);
- controlP5 = new ControlP5(this);
- controlP5.addSlider("myColorBackground",0,255,100,140,100,14);
- }
- void draw() {
- background(myColorBackground);
- }
thanks in advance for any hints,
micha
1