Motion tracking – How do you use jit.findbounds?

Oct 14, 2012 at 7:55pm

Motion tracking – How do you use jit.findbounds?

I am planning on building an audio visual interface like the reactable. I want to use two types of blocks. Blocks with fiducials which activate music samples and colour blocks which when placed within a certain distance of a fiducial block will apply an audio effect to the sound block.

I can locate the position of any fiducial, and using jit.findbounds I can find the position of a colour. But how do I tell a sound block that when it is a certain distance away from a colour block to send a bang?

I hope this is clear enough.
Thanks SoundMonkey

Oct 15, 2012 at 3:43am

try this. It’s a bit messy, didn’t have time to clean it up. but it calculates the distance between the rects given their center positions…
let me know if this helps…

– Pasted Max Patch, click to expand. –
Oct 15, 2012 at 9:40am

This is what I was looking for thanks.


You must be logged in to reply to this topic.