So i’m working on my little fluid simulation and I want to visualize the pressure as its show here.
negatve pressure one color
“0” pressure one color
positive pressure one color
I can get my particles to hold the color i want based off pressure but I can’t figure out how to get a field that would blend like this.
Perhaps this is a simple question that might be solved by a standard approach such as using Mats and blending but the few things i have tried have not worked.
Hello @davispolito
One other thing you could try is using a Neighbor POP to average the particles’ pressure or color around points on a Grid POP.
In this sample, we visualize the particles average velocity directions over a grid.
VelocityViz.toe (4.4 KB)
yes, this is exactly what i wanted.
Here’s a copy of it still not working perfectly. Gotta add position prediction and I think that might actually smooth it out.
fluidsimneighboropt.23.toe (35.8 KB)
Seeing the averaging in Neighbors I’m curious if there could be additional options on that such as a smoothing kernel. If you check out glsl_density you’ll see what I’m saying. If that were added you could get these nice density calculations without glsl.