combining controlP5 glgraphics and anar
in
Contributed Library Questions
•
2 years ago
Hi, I have some problems with combining these 3 libraries. I've tried everything to get the controlP5 screens 2D and other things 3D. Next to that I have sliders for Anar added.
Here's my code:
- void draw() {
- background(255);
- renderer.beginGL();
- pushMatrix();
- GL gl = renderer.gl;
- importGroup.rotateY(a);
- importGroup.draw();
- popMatrix();
- renderer.endGL();
- hint(DISABLE_DEPTH_TEST);
- pushMatrix();
- //PMatrix3D currCameraMatrix = new PMatrix3D(((PGraphics3D)g).camera);
- // gl.glPolygonMode( gl.GL_FRONT_AND_BACK, gl.GL_FILL);
- // gl.glHint (gl.GL_LINE_SMOOTH_HINT, gl.GL_NICEST);
- //camera(width/2.0, height/2.0, (height/2.0) / tan(PI*60.0 / 360.0), width/2.0, height/2.0, 0, 0, 1, 0);
- //camera();
- controlP5.draw();
- // ((PGraphics3D)g).camera = currCameraMatrix;
- popMatrix();
- }
What can I do to enable and disable the drawing of the sliders? And get the controlP5 values drawn 2D i've allready set controlP5.setAutoDraw(false);
1