proscene camera damping
in
Contributed Library Questions
•
1 year ago
Hello,
Part of upgrading the ANAR+ library to v2.0, I would like to have a little damping (smoothing) effect on the camera when using proscene. That is the mouse update should define a target view which is then reached by interpolation. For instance with
Since proscene has a lot of interpolation capabilities, I suspect it may be doable. The only thing which is unclear to me is to construct a target Frame from the mouse interactions without having the camera move. Looking at the example and the javadoc did not give me definitive answers.
Maybe having two cameras one detached from p5 camera and the other attached and doing the interpolation, using
Any clue someone?
Part of upgrading the ANAR+ library to v2.0, I would like to have a little damping (smoothing) effect on the camera when using proscene. That is the mouse update should define a target view which is then reached by interpolation. For instance with
- myCamera.interpolateTo(Frame f)
Since proscene has a lot of interpolation capabilities, I suspect it may be doable. The only thing which is unclear to me is to construct a target Frame from the mouse interactions without having the camera move. Looking at the example and the javadoc did not give me definitive answers.
Maybe having two cameras one detached from p5 camera and the other attached and doing the interpolation, using
- attachedToP5Camera();
- detachFromP5Camera();
Any clue someone?
1