Wiimote Project
General Category => General Discussion => Topic started by: Seán McT on December 18, 2009, 08:54:41 AM

Not too sure if this is the right part of the board to post this but, Does anybody know what the Equations are that are added to the targets in the headtracking program? I am building system at the moment and am thinking of using the Euclidean Distance Metric on the Z axis along with Motion Parallax on the X and Y, Is this a correct approach? Thanks in advance,

I don't know but I want you on my Scholastic Olypiad team. :D Could you post the equations that you mentioned to the board, and maybe go into a little more detail about how you plan to use them?

(http://upload.wikimedia.org/math/e/0/2/e0206298710b39b9acfab56c0b39f548.png)
This equation for the Euclidean distance metric
For X and Y, say the system had two objects on screen (A+B), If A was closest to the screen and B was further, then relative to the users position from the screen the speed of move moment of the objects would the would be inversely proportional from the distance to the user. Of B was twice as far as A it would move at half the speed. This is the formula for motion parallax.
I plan to input the values using OSCulator, sending the data stream through port 9999 and into and open source software called PD extended. IN this software there is a section called GEM, In gem I will simply put the data stream through the equations above and feed these new values into a rotate camera object that comes with the software. However I am unsure if the equations work or are necessary!