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 › The PeasyCam camera-control library
Page Index Toggle Pages: 1
The PeasyCam camera-control library (Read 267 times)
The PeasyCam camera-control library
Jan 9th, 2009, 9:40pm
 
I'm happy to announce the availability of a new camera-control library for 3D sketches, PeasyCam ("P" for Processing, "Peasy" for easy-peasy).

  http://mrfeinberg.com/peasycam/

Development is hosted at google code:

  http://code.google.com/p/peasycam/

Sample:
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.

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.
Page Index Toggle Pages: 1