Grid Fluid Displacement Graph

Post Reply
thebigmontagestudios
Posts: 83
Joined: Thu Mar 07, 2013 4:57 pm

Grid Fluid Displacement Graph

Post by thebigmontagestudios » Fri Jun 14, 2013 4:41 pm

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?

CG_Nema
Posts: 67
Joined: Fri May 31, 2013 5:23 am

Re: Grid Fluid Displacement Graph

Post by CG_Nema » Mon Jun 17, 2013 1:32 am

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.

Post Reply