defining and moving particle attractor

doldrum's icon

Is it possible to define and move an attractor like the one used in the Jitter JS tutorial, except using shiva and vishnu?

adamklec's icon

^Anyone?

I know this is old but I'm trying to learn about particles in jitter and I haven't seen an answer to this question.

It would be really nice if you could. But the force attribute in vishnu seems to only take forces in Cartesian coordinates. Is there a way to create a radial force using vishnu?

adamklec's icon

And while I have your attention what is the best way to set up multiple particle emitters so that each emitter creates particles of a different color?

Max Patch
Copy patch and select New From Clipboard in Max.

I have the following patch but I'm not sure how to color it.

Wetterberg's icon

IIRC a lot of the Jitter Recipes have particle systems in them, a few "non-Hindu" ones as well.

adamklec's icon

True. I suspect that the answer is that jit.p.vishnu cannot handle radial forces. I'm fine with that if that is the case. It is not too difficult to implement these things in javascript.

Regarding my second question, I can't say that I have ever seen an example of multiple particle emitters. I keep running into fairly basic problems (e.g. how do you color the particles differently?) that make me wonder whether I am missing something important.

If anyone can point me towards an example of a patch that uses multiple particle emitters I would greatly appreciate it.

-Adam

adamklec's icon

I figured it out my coloring issues. And learned a few things about jit.gl.mesh in the process.

Wetterberg's icon

Care to share?

enki's icon

I am attempting to have particles emerge from the edge of a circle, rather than a point. In the example above Adamlec opened my eyes to duplication of the matrix. I think that poly is the approach i should take to have a circle (of variable radius) produce particles. Would anyone like to confirm or redirect my suspicions? If you have bread crumbs please make them edible..some of us are new to Jitter ergo Flux capacitors* are beyond my ken.

*"No, You'd want to use Gen to make a N-Node Flux capacitor. Mind the genus-1 objects..they bite."

enki's icon

Here is a version of a ring of Particles, based on 5 shiva/vishnu matrices. My goal is still to make a continuous circle that emits particles. Any suggestions on using poly~ to that end, or a better approach?

particles-from-2-matrices_enki_v4.maxpat
Max Patch
t's icon

Check sendbody and sendbody_reset messages to jit.phys.multiple. You can basically define the coordinates where your particles/bodies would reappear or "emerge". So if you bang quickly all (one by one) the particles stored in jit.phys.multiple and modulate the position "in a circular way" (two sine oscillators maybe?) you should get what you want I guess...