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 & HelpSyntax Questions › get camera center of interest
Page Index Toggle Pages: 1
get camera center of interest (Read 687 times)
get camera center of interest
Jun 13th, 2006, 2:17pm
 
Hi !
I'm a newbie at Processing, trying to interface a sketch with the Lemur (OSC controller).
I've set up some functions triggered by OSC to modify the camera position and orientation :

beginCamera();
rotateZ(angle);
endCamera();

...

beginCamera();
translate(0,0,z);
endCamera();

I'm keeping an dynamic array of vertices coordinates, to add one vertex at a time to a dynamic shape, while the camera can be moved around freely. I would like to know the current center of interest of the camera each time I add a new vertex, so it always gets added at the center of the current view. I've played with modelX and others but the documentation on those functions is rather sparse.

Anyone can help ?

Thanks in advance Smiley
Re: get camera center of interest
Reply #1 - Jun 13th, 2006, 4:20pm
 
basically I would like to have access to all the camera parameters that would reach the current camera configuration when fed to the camera() function, i.e :
eyeX, eyeY, eyeZ, centerX, centerY, centerZ

I've searched the dev reference and couln't find accessible fields containing this info
Page Index Toggle Pages: 1