Hey All,
So I've basically copied the code from the ControlP5 working with peasy example and inserted it into my sketch, and it works, mostly.
However, while I'm moving the camera round with the mouse, I see a copy of the ControlP5 menu that is rotating round. And as soon as the rotation stops it disappears.
Here is a screen shot of what it looks like while the scene is moving:
See that blurry blue rect in the back parts? That should not be there.
Here are some of the relevant code snippets:
- void draw() {
- background(255);
- hint(ENABLE_DEPTH_TEST);
- stroke(0);
- strokeWeight(1);
- // cam.beginHUD();
- ////DRAW 2D stuff
- //cam.endHUD();
- if (update) {
- while (!update ()) {
- update();
- }
- }
- render();
- hint(DISABLE_DEPTH_TEST);
- gui();
- mm.addFrame();
- }
- void gui() {
- currCameraMatrix = new PMatrix3D(g3.camera);
- camera();
- controlP5.draw();
- g3.camera = currCameraMatrix;
- }
Has anone see this behavior before? Anyone have any suggestions to get rid of it?
Thanks in advance!
1