/* 3D camera rotator (version 2) - no translation -Click and drag the mouse in the Processing window to look around. -This version of z_3Drotate doesn't use the java.awt.Robot class, and thus does not require a signed certificate when running in a web browser! Zachary Seldess, 6/23/08 [http://www.zacharyseldess.com] */ void setup() { size(800, 600, OPENGL); // this 3D nav works in P3D mode as well //******************************************************************** navSetup(); // this sets up the 3Dnav - place it at the end of your setup() function } void draw() { //****** YOUR draw() CODE GOES HERE ****** background(255); noFill(); box(200, 50, 200); //******************************************************************** navUpdate(); // this updates the 3Dnav - place it at the end of your draw() function }