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.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Announce: PeasyCam 0.8.0, with mouse wheel support
Page Index Toggle Pages: 1
Announce: PeasyCam 0.8.0, with mouse wheel support (Read 1485 times)
Announce: PeasyCam 0.8.0, with mouse wheel support
Jan 7th, 2010, 11:04am
 
I'm happy to announce the availability of version 0.8.0 of my camera-control library for 3D sketches, PeasyCam ("P" for Processing, "Peasy" for easy-peasy).

 http://mrfeinberg.com/peasycam/

Version 0.8.0 adds default mouse-wheel zoom behavior, which can be turned off or customized.

Version 0.7.0 added customizable mouse-drag handlers.

Version 0.6.0 added easy-peasy HUD (heads-up display).

Development is hosted at GitHub:

 http://github.com/jdf/peasycam/

Code:
PeasyCam camera;

void setup() {
   camera = new PeasyCam(this, 0, 0, 0, 50);
}

That's it. Now a mouse left-drag will rotate the camera around the subject, mouse wheel or right drag will zoom in and out, and a middle-drag (command-left-drag on mac) will pan. A double-click restores the camera to its original position.

It is free for all uses, per the Apache 2.0 license. Please try it out, and let me know how it goes for you.
Re: Announce: PeasyCam 0.8.0, with mouse wheel support
Reply #1 - Jan 7th, 2010, 1:18pm
 
...annnnnnnd I've just released 0.8.1 which makes the mouse wheel ignore your OS mouse driver's wheel multiplier, for a more sane zoom experience.
Page Index Toggle Pages: 1