We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
OpenGL and ControlP5 (Read 272 times)
OpenGL and ControlP5
Feb 6th, 2009, 2:11pm
 
Hi all,
i'm using ControlP5 AND OpenGL (pretty common i think).

I suspect this is a quite newbie question, so please be patient.

I'm implementing a zooming functionality by varying the fov parameter in the perspective() call.

The problem is that also the ControlP5 drawn GUI is zoomed in and out. I've also tried to disable the autodraw in ControlP5 but with no effect:

public void draw() {
background(255, 255, 255);

perspective();
controlP5.draw();

perspective(fov, aspect, cameraZ / 10.0f,
            cameraZ * 10.0f);
drawEllipses();
}

I just want a safe method to handle both ControlP5 GUI and OpenGL transformations.

Thank you in advance !

Rosario


Page Index Toggle Pages: 1