Hi all,
I’m just getting started on a function to return the density of nParticles, on a per particle basis. I would like to change the instance for my particles based on the local particle density. Before I get into script that checks all the other particles in the group relative to each particle, which seems like it might be a little slow, I thought I’d ask if that information is already in the attributes somewhere anyway.
I have looked through the threads and can’t seem to find if I can get any measure of local particle density. I did read that the forces might be a place to start. I’m using the self attract attribute of the force field generation section, and I was hoping there might be a way to pull that information in an expression after each dynamic step on a per particle basis and then assign an instance index.
Failing that, might there be a way to make it nice and fast using an “octree / bsp / voxel accelerator” (don’t quite know what that really means yet, but will find out if needs be)?
Thanks in advance for your time.
Neil