I have taken your suggestion to use the Peasy library.
While I wasn't able to get the begin and end cam working, I was able to get the rotation working using the library after a little more research.
2 remaining issues:Now my only problem is that it appears the rotation of my earth is not centered within my sphere. The origin of the rotation needs to be in the center of my sphere
Could this have something to do with my creation of the earth in a class
ALSO, my menu appears to disappear when using P3D, OPENGL does show it (though it definitely isn't displayed permanently on top of my 3d environment)
Feels like i'm very close!
using P3D:
http://net35.ccs.neu.edu/home/ayellet/P3D_gui.jpgusing OpenGL:
http://net35.ccs.neu.edu/home/ayellet/openGL_gui.jpgCode:PeasyCam cam;
PGraphics3D g3;
PMatrix3D currCameraMatrix;
ControlP5 controlP5;
Planet earth = new Planet("earth.jpg", 30, 200);
PlaceList pl = new PlaceList();
int planetScale = 200;
void setup(){ // The size of our stage. P3D / OPENGL.
size(900,900,P3D);
g3 = (PGraphics3D)g;
cam = new PeasyCam(this, 100);
ControlP5 controlP5 = new ControlP5(this);
pl.setupPlaceList(controlP5);
earth.setupPlanet();
}
void draw() { background(0,255,0,50);
earth.drawPlanet();
gui();
}
void gui() { currCameraMatrix = new PMatrix3D(g3.camera);
camera();
pl.drawPlaceList();
g3.camera = currCameraMatrix;
}