Here we have how to make a HYBRIDO scene using displacement.
1– GridFluidDomain (in surface tab put the Calculate surface to Always).
2– Put the Displacement tab in the GFD parameters to “Calculate displacement: Always”. The configuration for the displacement parameters is not important yet.
3– Simulate a couple of frames for the GridFluidDomain.
4– Add a GridMesh and put the parameter “Shader: Displacement”. Build the mesh.
5– Return to the Displacement tab in the GFD and change the displacement parameters as you want. The viewport will show the changes so it is not necessary to simulate again. (Keep in mind what value you put for the Detail Threshold in the Surface tab for the GFD so you’ll need to apply the same when generating the foam, if not it may be displaced).
6– Put the Calculate Surface in the GFD to Always and change the Source to “From particles”.
7– You can modify the auto radius, smooth and auto cell size to calculate the mesh. Click on the “Build grid button” in the surface tab to check if the mesh is working.
8– Once you have a Displacement and the mesh you want, you should switch off the GridMesh.
9– Next, simulate the GridFluidDomain changing again the Source to “From Field” and keeping the Calculate Surface to “Always”. Once it is finished, put the GFD to cache mode and change the Source to “From particles”.
10– Now, switch on the GridMesh and simulate again. (note you can use the calculate mesh button too)
11– Once the GFD and the GridMesh is simulated, put the “Calculate Surface” parameter in the GFD to cache, the “Surface to” parameter to “From Field” and the GFD node to cache too. Switch off the GridMesh.
12– Add the splash (or splash_and_foam) emitter and put the “@use displacement” to YES. Simulate.
13– Once the splash is simulated, if you put a splash emitter put it to cache mode. Put a foam emitter (keep in mind that the foam can’t be affected by any daemon force or other emitters) and put the “@use displacement” to YES too. Simulate.
14– Put the foam in cache.
15– Once all elements have been simulated, switch on the GridMesh again to see the whole result in the viewport.