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 › 3D Navigation with Camera settings
Page Index Toggle Pages: 1
3D Navigation with Camera settings (Read 869 times)
3D Navigation with Camera settings
May 5th, 2006, 2:54am
 
I've been using transforms (translate and rotateX/Y) for keyboard/mouse navigation of 3D scenes.  I'd want rotation, translation and zoom via mouse and keyboard.  Here is an example:
 http://www.backspaces.net/models/GraphViz/applet/

But I'm told its much better to do this via moving the camera.

Is there a demo of this sort of thing?  I'd want to change the scene center and camera x,y and z values which are in the camera(...) function.  But upX,Y,Z don't make sense to me.  And would I also need to use frustum(..) and perspective(..)?

Sorry for being such a newbie!  A search didn't clarify the details, alas.

Owen
Re: 3D Navigation with Camera settings
Reply #1 - May 5th, 2006, 3:40am
 
I cant say if it is better or worse than they way you are doing it, but have you taken a peek at the OCD library?

http://www.cise.ufl.edu/%7Ekdamkjer/processing/libraries/ocd/

-robert
Page Index Toggle Pages: 1