In the previous chapter, we have experimented with the motion-tracking technique by using a graphical shape to follow the user. Earlier in this chapter, we have tested how to control the particle system with the mouse. We can combine the two methods to use the user's body movement to control the particle system. Let's revisit the motion-tracking patch as shown in the following screenshot:
The pix_blob
object sends the movement position to the translateXYZ
object for the square
to display the pixel image as texture. To combine particle system with motion tracking, it is pretty straightforward. Send the X and Y positions of movement to the X and Y positions of the part_source
object. In this case, the user's body movement will trigger emission of the particles. In the following patch, Motion001.pd
, the movement center will generate particles as spheres. We use a pack
object to pack the X and Y positions together with a 0 as Z value for the part_source...