Page 1 of 1

Grid Fluid Displacement Graph

Posted: Fri Jun 14, 2013 4:41 pm
by thebigmontagestudios
I am trying to use a statistical spectrum to displace the actual grid fluid in a hybrido sim. I saw the demo of how to do it and displace the mesh and was successful getting that to work. I'm looking though to displace the actual fluid using a graph. I've had zero luck in doing this. Can someone PLEASE walk me through what nodes to use?

Re: Grid Fluid Displacement Graph

Posted: Mon Jun 17, 2013 1:32 am
by CG_Nema
Look at the graph demo called surface_force_field.

This is my understanding of how it works:

It makes 2 identical statistical spectrums that are applied to 2 graph planes. The only difference is on of the spectrum's time factor is time-0.5. Then the graph makes a vector field based on the distance between each vector and its counterpart in the other plane with the spectrum that has a time offset.

The reason you can't use just one plane displaced by a stat_spectrum is that the vertices in the planes don't have a velocity that you can use as a force field, they just have positions. I'm actually trying to find a way to do it differently, because the current method takes a while to compute, even though it looks great.

You should study the graph in the "surface_force_field" demo if you want to understand it better.