Motion tracking – How do you use jit.findbounds?

Oct 14, 2012 at 7:55pm

Motion tracking – How do you use jit.findbounds?

Hi,
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

#64304
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. –
#231847
Oct 15, 2012 at 9:40am

This is what I was looking for thanks.

#231848

You must be logged in to reply to this topic.