Wiimote Project

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

Title: Equations?
Post 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 head-tracking 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,
Title: Re: Equations?
Post by: shakespeare1212 on December 18, 2009, 09:11:36 PM
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?
Title: Re: Equations?
Post by: Seán McT on December 27, 2009, 06:04:08 AM

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!