Disabling camera controls in procscene when using controlP5 slider
in
Contributed Library Questions
•
1 year ago
Hi all,
I've been developing an application for view some analysis results. The latest part of the development is discussed here: http://forum.processing.org/topic/create-transparent-png-from-p3d-render. I have been using PeasyCam and it has worked well. However, I am now trying to allow for both perspective and orthographic rendering and it seems the proscene is a more full-featured library that implements so many things that have to do with the camera controls. So I am making a switch. I'm having a lot of difficulties understanding the structure, but I've managed to get the scene working the way I need at the moment.
The issue that is causing me problem at the moment is how to keep the scene/camera fixed while I am dragging a controlP5 slider. In PeasyCam, whenever I press the 'f' key I just assign null handlers to the camera pan, rotate and zoom handlers and then just manipulate the slider. In proscene I am lost. What I want is for proscene to recognize I am using the GUI element and don't interpret mouse drags as rotations. I would love it if I didn't have to freeze the scene everytime I wanted to move the slider, but if that's what I have to do that will work as well.
Hopefully this makes sense. Please tell me if I need to clarify something.
Regards,
Ali
I've been developing an application for view some analysis results. The latest part of the development is discussed here: http://forum.processing.org/topic/create-transparent-png-from-p3d-render. I have been using PeasyCam and it has worked well. However, I am now trying to allow for both perspective and orthographic rendering and it seems the proscene is a more full-featured library that implements so many things that have to do with the camera controls. So I am making a switch. I'm having a lot of difficulties understanding the structure, but I've managed to get the scene working the way I need at the moment.
The issue that is causing me problem at the moment is how to keep the scene/camera fixed while I am dragging a controlP5 slider. In PeasyCam, whenever I press the 'f' key I just assign null handlers to the camera pan, rotate and zoom handlers and then just manipulate the slider. In proscene I am lost. What I want is for proscene to recognize I am using the GUI element and don't interpret mouse drags as rotations. I would love it if I didn't have to freeze the scene everytime I wanted to move the slider, but if that's what I have to do that will work as well.
Hopefully this makes sense. Please tell me if I need to clarify something.
Regards,
Ali
1