on combining 3D particle and mass/spring physics with motion capture

Feb 24, 2009 at 6:58pm

on combining 3D particle and mass/spring physics with motion capture

Hi, relative newbie here – if there’re any pointers to give then that’d be much appreciated.

I’m combining motion capture with a 3D particle system, taking parameters to inform a real-time synthesis engine (mostly granular based). I will be feeding coordinates in then joining them together to create a wireframe skeleton.

At first particles will instantiate from the top, falling down and dying/becoming sonified upon contact with the wireframe model. As movement increases, the points will become attractors for the particles, eventually being coupled with a mass/spring paridigm.

I’ve worked my way through the javascript tutorial 46 (which’ll need a more thorough going over-javascript skills are workable, not fantastic) and have experimented with the jit.shiva and vishnu objects.

I’m having immediate trouble on 3 counts; seeing how to feed attractors in as independantly controllable entities, how to connect particles to motion-capture points with a mass spring system, e.g. (MSD objects) and how to get realtime data out (on spring tension/particle velocity etcetc).

I’ve been looking enviously at the traer.physics library for processing, unfortunately the source won’t be out for porting soon, and I don’t *think* udpsend/receive could cope with the realtime passing of control data towards, and matrix data back (for sonification using a granular paridigm) – feel free to disagree!

Thanks a lot, Alex

#42501
Feb 26, 2009 at 11:02pm

your pretty much on your own with most of this stuff, although there are some good examples of possible ways to achieve this in the jitter examples folder. these two come to mind:
examples/jitter-examples/other/particles/comets.maxpat
examples/jitter-examples/javascript/render/strange_attractors.maxpat

you can also hack into p.shiva and create your own attractors/colliders using matrix manipulations. i talk a bit about this in this thread:
http://www.cycling74.com/forums/index.php?t=msg&goto=162907

andrew b’s awesome verlet patch is another to consider:
http://www.cycling74.com/forums/index.php?t=msg&goto=155811

wes’s lua-ode mode is also a possibility:
http://www.cycling74.com/twiki/bin/view/Share/WesleySmith

#152079
Feb 27, 2009 at 2:56am

I think you may want to use processing on this project… in my experience processing is much better for that type of thing. jitter may work fine, but what ive seen from flight404, processing is well adept at doing these things.

Why do you want to do it with jitter?

I just tried opening the comets patch which I hadn’t seen before, and this is the error list I got:

java.lang.UnsatisfiedLinkError: _new
at com.cycling74.jitter.JitterObject._new(Native Method)
at com.cycling74.jitter.JitterMatrix._constructor_helper(JitterMatrix.java:183)
at com.cycling74.jitter.JitterMatrix._constructor_helper(JitterMatrix.java:164)
at com.cycling74.jitter.JitterMatrix.(JitterMatrix.java:78)
at p.ParticleMatrix.
(ParticleMatrix.java:37)
at p.ParticleMatrix.
(ParticleMatrix.java:48)
at p.yellowsun.
(yellowsun.java:16)
(mxj) unable to construct instance of p.yellowsun
java.lang.UnsatisfiedLinkError: _new
at com.cycling74.jitter.JitterObject._new(Native Method)
at com.cycling74.jitter.JitterMatrix._constructor_helper(JitterMatrix.java:183)
at com.cycling74.jitter.JitterMatrix._constructor_helper(JitterMatrix.java:164)
at com.cycling74.jitter.JitterMatrix.
(JitterMatrix.java:78)
at p.ParticleMatrix.
(ParticleMatrix.java:37)
at p.ParticleMatrix.
(ParticleMatrix.java:48)
at p.updater.
(updater.java:14)
(mxj) unable to construct instance of p.updater
java.lang.UnsatisfiedLinkError: _new
at com.cycling74.jitter.JitterObject._new(Native Method)
at com.cycling74.jitter.JitterMatrix._constructor_helper(JitterMatrix.java:183)
at com.cycling74.jitter.JitterMatrix._constructor_helper(JitterMatrix.java:164)
at com.cycling74.jitter.JitterMatrix.
(JitterMatrix.java:78)
at p.ParticleMatrix.
(ParticleMatrix.java:37)
at p.ParticleMatrix.
(ParticleMatrix.java:48)
at p.gravity.
(gravity.java:16)
(mxj) unable to construct instance of p.gravity

any thoughts???

#152080

You must be logged in to reply to this topic.