I may have an idea of how to make particles collilde with eachother in Maya so we can make effects that may remind of Real Flow or Glue 3D fluid simulations. The thing is, since I don’t know so mutch about Maya and it´s limmitations, I will need your help to tell me if this crazy idea may work or not…
I’m thinking about making a new node, we can call it “ppCollide” (or whathever). Our particle system will be connected to that node as a child (or something).
- What ppCollide will do is: For every frame, check the distance between the particles (will get to that later) and if they are closer than a value that the user will define, the node creates a spring between these particles.
-Every particle will be able to have a maximum of 8 connections (or 8 springs to other particles), but these are not common springs.
The springs between the particles will act just as normal springs when they act as a force pushing the particles away from eachother, having the stiffness and damping controlling the viscosity of our “fluid” (higher stiffness + higher damping = lower viscosity).
The springs will act differently when trying to pull the particles closer to eachother, becouse if the force trying to push them apart is higher than some user defined value, the ppCollide node will brake that connection by deleting the spring between the particles.
Since it will be VERY CPU consuming to check the distance between ALL the particles for every frame… I thougt that this whole simmulation will happen inside a 3D fluid container. That way we (maybe) can use the voxels to limmit the calculation. So the distance between particles will only be calculated within the same voxel + the ones directly connected to it.
I know this is a pretty wild guess… but is it possible??