Jitter and motion detection
hey im kind of new to jitter and was wondering if it is possible to create a matrix within which random particles are generated that respond to motion detection so that they move ?
i know max msp is capable of a lot but i dont know where to start concerning the generation of graphics that respond to motion, if anyone can give me any advice i would seriously appreciate it.
many thanks for any and all help
Here is a fun patch to get you started,
it's not exactly what you asked for but it's fun ;-)
here is a very very quick way to do motion detection.
There are many ways to do this but here is a quick one I thought of.
I needs a bit of tweaking but gives you a good start.
Hack my 2 patches see what you come up with ;-)
Thanks for the help PHIOL, i was wondering if you could give me some advice on how i can combine the data i get from my movements and use it as an input to cause the particles to move, i've made a patch if you want to look at it ? (its kind of messy)
Hi First Last,
What I'm seeing in your patch is that you took a path that goes down the phys way.
By the using jit.phys.multiple your are create a bunch of rigid bodies.
(Just drop a jit.gl.physdraw @enable 1 and you will see this.)
As you can see, the movement of each particle is done with physghost.
Now I'm now sure on the esthetique you want as a final result, but what you have to do
is create a to make your camera physical so you can create collisions with these bodies.
2 things that come to mind is, (Maybe other folks on this forum will have better solutions but...)
-create a jit.phys.body
-the other way is the use a jit.phys.body with @shape dynamic mesh with your binary
black&white colored (3rd from the top) plane. This way you will draw a physical dynamicmesh with the white pixels. here is a little patch below for the dynamicmesh.
I use this setup with a kinect camera quite a lot. works quite well :-)
Let me know how it goes.
Here below is your patch, where a jit.phys.ghost is created with the dim of the white square.
it'll get you started ;-)
(I tried with the dynamicmesh version and it wasn't great in this context)
good luck
wow after a little tweaking that patch you uploaded works perfectly ! im gonna have to mess around with it a bit, but that is a great patch, thanks !!
You mean the last one involving jit.phys.ghost ?
My pleasure I'm glad you're getting what you want.
Maybe it's would be a good idea to move this thread to the Jitter forum.
Good luck with the tweaking
phiol
yeah the last one using jit.phys.ghost, thanks for all the help, i really appreciate it :) !!
Hey guys im trying to make the movement of my hand on my webcam move the particles around in this patch. Is there any way to do this possibly? As of now its using the input of the mouse on the screen to move the particles.
easiest way to get something going is to use the posenet node-for-max example. the patch below will track your nose, and can be used as a direct replacement for your mouse-message input.
Hi. I tried the PoseNet Example but nothing happens. I also manually installed the node routines but when I hit start in the patcher. Well....I get nothing.
Also loaded a seemingly newer version of the patch from the original author, nothing.
I know I'm missing something but I don't know what.