GMU:Tutorials/Performance Platform/Measuring Motion with Processing: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
Line 15: Line 15:
*Groups of persons mode: Measuring the pairwise distances between root nodes of three persons.<br>
*Groups of persons mode: Measuring the pairwise distances between root nodes of three persons.<br>
== Process: ==
== Process: ==
*Collecting the correlative data for the speed: Through the connecting of  OSC and Motion Tracking platform, the root position and the updated data of one person could be obtained. The shifting distance and the relevant time decides the speed of the root node.
1. Collecting the correlative data for the speed: Through the connecting of  OSC and Motion Tracking platform, the root position and the updated data of one person could be obtained. The shifting distance and the relevant time decides the speed of the root node.
<br>
<br>
<source lang="java">
<source lang="java">
Line 34: Line 34:
   }
   }
</source>
</source>
2. Calculating the speed of the root node;
2. The shifting distance and the relevant time decides the speed of the root node. <br>
The shifting distance and the relevant time decides the speed of the root node. For the node vector, the movement in x,y,z position should be all considered. <br>
<source lang="java">
<source lang="java">
float speed (Sphere sphere1)
float speed (Sphere sphere1)