FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   reverse objectX,Y,Z command?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: reverse objectX,Y,Z command?  (Read 407 times)
5cameron

WWW
reverse objectX,Y,Z command?
« on: Mar 4th, 2005, 4:28am »

Hi all,
 
I have a 3d interface that is rotateable. I want to be able to move a single element to whatever point in space is right in front of the camera.
 
My first idea is to pretend there is no rotation and move it say (width/2,height/2,-50) and introduce a negative rotation for the single element to counter the effect of the global rotation. I figure there's probably an easier way though!
 
Ideas?? Thanks!!!
 
C
 
fjen

WWW
Re: reverse objectX,Y,Z command?
« Reply #1 on: Mar 4th, 2005, 10:57am »

this seems to be similar to getting the mouse 2d coords in 3d space, so maybe these might help:
 
http://processing.org/discourse/yabb/board_Contribution_Respons_ive_action_display_num_1045181982.html
 
http://processing.org/discourse/yabb/board_Contribution_Respons_ive_action_display_num_1101338047_start_1.html
 
http://processing.org/discourse/yabb/board_Syntax_action_displa_y_num_1103032712_start_2.html
 
/F
 
Pages: 1 

« Previous topic | Next topic »