Just want to clear up, when I am simming out my Hybrido fluid, should I have the Ocean Statistical Spectrum Displacement set to Always, Cache, Never?
Usually, I run the sim with it set to Never. Then when i go to build my mesh I turn it to always and tweak it then. Does it make a difference? Should I have the displacement set to Always when i'm actually running the sim of my fluid or does it not do anything until mesh time? When, if ever, would i set it to cache?
Can you guys please help me clarify all this? Thanks!
Hybrido Displacement Always?
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Hybrido Displacement Always?
Hey,
You are right. The best way to that is setting the displacement as Never when calculating the main fluid. It is because the displacement will take time to the simulation. So, the best way is simulating with displacement to Never. Once the simulation is finished, save the scene with another name. Leave only the Hybrido domain if you prefer, and don't export the particles, bu only the displacement map. Set the Cell size for the hybrido domain with a high value, so the simulation will be faster, and simulate. The displacement map will be generated in a five minutes depending on your settings for it but the fluid won't be necessary to calculate it.
I hope it helps.
luisM.
You are right. The best way to that is setting the displacement as Never when calculating the main fluid. It is because the displacement will take time to the simulation. So, the best way is simulating with displacement to Never. Once the simulation is finished, save the scene with another name. Leave only the Hybrido domain if you prefer, and don't export the particles, bu only the displacement map. Set the Cell size for the hybrido domain with a high value, so the simulation will be faster, and simulate. The displacement map will be generated in a five minutes depending on your settings for it but the fluid won't be necessary to calculate it.
I hope it helps.
luisM.
-
- Posts: 83
- Joined: Thu Mar 07, 2013 4:57 pm
Re: Hybrido Displacement Always?
so i should do a step to add the displacement before doing the meshing? All along i was doing never, then setting the domain to cache, and then turning the displacement on to Always and meshing at the same time. Does this work the same as what you said or should i be doing an interim step to calculate the displacement, and then do the meshing step next?
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Hybrido Displacement Always?
Hey,
Adding the displacement before the meshing would be advisable but just for a couple of frames. The sequence would be more or less this one. Once you have simulated your main particles (try in another copy of the scene if you prefer), increase the cell size for the domain so the simulation doesn't take long time, next export only the displacement map for a couple of frames. Remember the displacement mesh needs to be Always to calculate. The particles are not necessary. Next, create a mesh for any frame you have calculated the displacement map and set the mesh to Shader>Displacement. Now you will be able to see the displacement on the mesh and you can tune it by changing the displacement mesh parameters. Once the mesh is tuned, you can export the full sequence of displacement map and the mesh sequence.
luisM.
Adding the displacement before the meshing would be advisable but just for a couple of frames. The sequence would be more or less this one. Once you have simulated your main particles (try in another copy of the scene if you prefer), increase the cell size for the domain so the simulation doesn't take long time, next export only the displacement map for a couple of frames. Remember the displacement mesh needs to be Always to calculate. The particles are not necessary. Next, create a mesh for any frame you have calculated the displacement map and set the mesh to Shader>Displacement. Now you will be able to see the displacement on the mesh and you can tune it by changing the displacement mesh parameters. Once the mesh is tuned, you can export the full sequence of displacement map and the mesh sequence.
luisM.
-
- Posts: 83
- Joined: Thu Mar 07, 2013 4:57 pm
Re: Hybrido Displacement Always?
Thanks Luis. I'm still a bit confused though and I think this is an important thing for me to fully get down. So, the way I have been doing it is this:
Run the Hybrido simulation with displacement set to Never
Set domain to cache
Add a mesh and test it out on a frame(s) to make sure the meshing quality (poly size, etc) is all looking good
Then I go over to the domain, and just turn on Always to the displacement
Inside the mesh params, turn the shader to Displacement
Tweak the settings of the displacement on a frame or two to make sure it's looking good
Then I reset the scene with domain set to cache, displacement set to always, mesh set to Build
and simulate
Is this wrong? Is there a step i should be adding/eliminating/changing?
Does the displacement setting inside the domain actually effect the fluid or the mesh at all?
Hope i'm being clear in my questioning. Would really love to have my workflow be streamlined with this
Run the Hybrido simulation with displacement set to Never
Set domain to cache
Add a mesh and test it out on a frame(s) to make sure the meshing quality (poly size, etc) is all looking good
Then I go over to the domain, and just turn on Always to the displacement
Inside the mesh params, turn the shader to Displacement
Tweak the settings of the displacement on a frame or two to make sure it's looking good
Then I reset the scene with domain set to cache, displacement set to always, mesh set to Build
and simulate
Is this wrong? Is there a step i should be adding/eliminating/changing?
Does the displacement setting inside the domain actually effect the fluid or the mesh at all?
Hope i'm being clear in my questioning. Would really love to have my workflow be streamlined with this
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Hybrido Displacement Always?
Hey,
The steps would be more or less these ones
- Run the Hybrido simulation with displacement set to Never
- Once you want to calculate the displacement. The domain should be Active (Thats optional because ti could be in cache but there is a difference between cache and active. The difference is, setting the Domain to cache you'll need to read particles info to generate the displacement maps. If there are many particles the simulation to generate the displacements will take long time for simulating. On the other hand, setting the domain to Active, you can set a higher cell size for the domain and the displacement maps will be faster to export because there won't be too many particles being created. The only thing you need to do will be not exporting the particles so you can't overwrite your original particles files.). Also the Displacement must be to Always.
- In the case you set the domain to Active instead of cache, set the global cell size to higher value so the simulation will be faster. Even you can deactivate the file exportation for Hybrido. (for instance, if you have the global cell size parameter to 0.1, change it to 3 or 4. In this way, the simulation will be faster and it won't take long time to simulate. Simulate a couple of frames and don't forget to deactivate the particles exportation.
- Add a mesh and test it out on a frame(s) to make sure the meshing quality (poly size, etc) is all looking good. Don't forget to change the shader for the mesh to Displacement so you can see the displacement applied over the mesh. -
- Modify the displacement parameters as you need for your simulation. The displacement must be in always.
- Reset the simulation and make sure you have the displacement in Always.
- Simulate.
Finally you'll have the displacement maps. Of course the displacement maps can be exported meanwhile the simulation is writing the particle info, but it will take more time to simulate so the displacement map exportation will be added to the particles exportation. Using the cell size trick you will be saving simulation time.
luisM.
The steps would be more or less these ones
- Run the Hybrido simulation with displacement set to Never
- Once you want to calculate the displacement. The domain should be Active (Thats optional because ti could be in cache but there is a difference between cache and active. The difference is, setting the Domain to cache you'll need to read particles info to generate the displacement maps. If there are many particles the simulation to generate the displacements will take long time for simulating. On the other hand, setting the domain to Active, you can set a higher cell size for the domain and the displacement maps will be faster to export because there won't be too many particles being created. The only thing you need to do will be not exporting the particles so you can't overwrite your original particles files.). Also the Displacement must be to Always.
- In the case you set the domain to Active instead of cache, set the global cell size to higher value so the simulation will be faster. Even you can deactivate the file exportation for Hybrido. (for instance, if you have the global cell size parameter to 0.1, change it to 3 or 4. In this way, the simulation will be faster and it won't take long time to simulate. Simulate a couple of frames and don't forget to deactivate the particles exportation.
- Add a mesh and test it out on a frame(s) to make sure the meshing quality (poly size, etc) is all looking good. Don't forget to change the shader for the mesh to Displacement so you can see the displacement applied over the mesh. -
- Modify the displacement parameters as you need for your simulation. The displacement must be in always.
- Reset the simulation and make sure you have the displacement in Always.
- Simulate.
Finally you'll have the displacement maps. Of course the displacement maps can be exported meanwhile the simulation is writing the particle info, but it will take more time to simulate so the displacement map exportation will be added to the particles exportation. Using the cell size trick you will be saving simulation time.
luisM.
-
- Posts: 83
- Joined: Thu Mar 07, 2013 4:57 pm
Re: Hybrido Displacement Always?
usually i just set the domain displacement to always while i'm meshing it. I'll simulate a frame or two in the GUI with the mesh on and the displacement shader just to make sure it looks good, set the domain to cache, but with the displacement in the domain now set to always, and sim the displacement along with the mesh.
Is that or is there any difference by doing it that way? as far as accuracy and quality of the displacement goes?
Is that or is there any difference by doing it that way? as far as accuracy and quality of the displacement goes?
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Hybrido Displacement Always?
Hey,
It is fine but if you are calculating the displacement at the same time that the fluid, the simulation will take more time. I understand do you set the Domain to Active and the displacement as well for a couple of frames?. It is fine but I prefer to calculate the domain first and then the displacement in the way I told you in the previous mail. It is just for saving time to simulate.
luisM.
It is fine but if you are calculating the displacement at the same time that the fluid, the simulation will take more time. I understand do you set the Domain to Active and the displacement as well for a couple of frames?. It is fine but I prefer to calculate the domain first and then the displacement in the way I told you in the previous mail. It is just for saving time to simulate.

luisM.