particles rebounding or bypassing object

i.te's icon

I've been trying to create a particle rebounding on a gridshape, but now idea how to start.

could someone give me a hint, please?

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

Rob Ramirez's icon

i think you have a few options.
use a physics library. the available options are the lua-ode mod, pmpd, msd. all i'm aware of.
https://cycling74.com/forums/index.php?t=msg&goto=120794

do the math yourself using the matrices from shiva/vishnu.
you can look at this old patch simulating a black hole for inspiration perhaps:
https://cycling74.com/forums/index.php?t=msg&rid=3061&S=76faaf7cdfea233466e528b206813e7a&th=9158&goto=28162#msg_28162

Axiom-Crux's icon

Im curious, do any of these work for you in jitter? Im running a macbookpro with radeon x1600, which seems to have not much shader support. But my main issue is, I am not sure how to test these out, like the particle one, is there a way someone who knows shaders better then I do could make a test patch for some of these? Id really love to see if they work, seems like they could be incredibly useful if they do.

i.te's icon

thanks a lot for the information robtherich.
I

Rob Ramirez's icon

here's an example of how to create "walls" using p.shiva.
also shows how to use gl.multiple with p.shiva.
let me know if it doesn't make sense (it's ripped from an existing patch i'm working on).

-rob

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