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.3
Page Index Toggle Pages: 1
Announce: PeasyCam 0.8.3 (Read 1102 times)
Announce: PeasyCam 0.8.3
Apr 22nd, 2010, 8:59am
 
I'm happy to announce the availability of version 0.8.3 of my camera-control library for 3D sketches, PeasyCam ("P" for Processing, "Peasy" for easy-peasy).

http://mrfeinberg.com/peasycam/

This (minor) version introduces a new method, "apply", that lets you apply a saved CameraState to any PGraphics (or PApplet). This would allow you to "playback" a series of camera moves, for example.

Code:
CameraState saved = cam.getState();
PGraphics g = createGraphics(...);
saved.apply(g);


About 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, a 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.

Development is hosted at GitHub:

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

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.3
Reply #1 - Apr 22nd, 2010, 12:58pm
 
Nice!
Still think a lookThrough command would be a good addition. Wink  Wouldn't think it would detract from the simplicity and would be a cool feature to add to its already excellent capabilities.  I haven't a clue how to do it myself or I'd fork it.
Page Index Toggle Pages: 1