I am trying to do a simulation with Foam and at some point the foam start to appears from nowhere or in a strange way like going on a side way like a line.
You can see on the images attached that in one of the Sim there is line of foam that start to appears and its going to the side. In another image the foam starts to appearing on the edge.
Any reason ? Please, if someone can help me it will be great. Thank you.
The foam particles are born based on the foam birth threshold. It controls how fast the liquid particles need to be moving in order to produce foam and if it is too low - foam particles would spawn all over the place.
You can increase the foam birth threshold and this should solve the issue, though the foam around the boat would be probably a lot less. What you can do instead is to use the option called Birth volume inside of the Foam settings. You can create a dummy non-renderable and non-solid geometry that covers the area in which you wish to create foam (a box for example) and use it as a birth volume - this way the foam particles will be born only inside of the dummy geometry volume. You can find more about the option here - Phoenix for 3ds Max
The foam birth threshold controls how fast the liquid needs to be moving in order to produce foam - so if your liquid is moving faster you will need higher threshold.
If you make the ship move faster you can get away with higher foam birth threshold.
Ah, this would probably be the foam under the liquid surface. Perhaps the Fog color of the V-Ray Mtl is too strong? Also, if you don’t have it, please definitely place a VRayPlane or some other large geometry below the liquid to serve as a bottom - without it, the particles underwater that are affected by the V-Ray Mtl’s color might not render properly.
Yes, I was doing a regular simulation.
Anyway, I’ve managed to sorted it out. It was on the because the Pure ocean on the Rendering setting it was on , that is why I had the foam on the front but missing the water, the water wasn’t going up (maybe should be called Flat Ocean instead:p:p:p)
Now I have less foam but at least I can see the water so it’s working. Therefore I don’t need to do anymore the box birth.
I am doing more Sim, and I let you know. Many thanks for the replied.
Ah, first we need to understand if this is a rendering problem or a simulation problem.
If you hide the simulator and the ship geometry and leave only the particle shaders and render out a sequence, is there still flickering? If yes, then it’s a simulation problem and we need to start looking at the simulation options, or if not, then it’s a rendering problem and we should keep investigating in this direction.
Ok, I will do a render with only the particle shaders, and I will post it soon. Thank you
About my settings, is there anything unusual/wrong or is it fine?
One strange thing I see is that the Foam Rising speed is a lot smaller than the Falling Speed, while the normal ratio is that the Falling speed should be 10 times higher that the falling speed. This means that either the falling speed is too high, or the rising speed is too low. Looking at the grid vertical size, perhaps the falling speed is fine (it’s in meters/sec), but the rising speed is quite low, meaning the foam would stay almost still underwater, which should not be much of a problem.
Hi, I’ve rendered just the particles. It’s seems fine in my opinion, have a look on the link below ( change to high quality on the YouTube options, I’ve rendered as full hd)
About the Foam Rising speed I had much higher but I thought that was the problem (as it was poping up ), so I’ve changed much lower but didn’t sort the problem out.
Please, on the link below I’ve attached a MP4 Render Sequence of the Water so you can see the issue. Also, the 3d MAX file as it will be easier to check the settings.
Ohhh, an unexpected turn of events - it’s not the rendering at all. It’s the simulation - the Affect Liquid option at the bottom of the Splash settings rollout causes splashes falling into the liquid to turn into liquid particles, which creates these bumps in the liquid mesh which obstruct the foam particles.
You should set the Affect Liquid to 0 and this should solve the issue, and I will think about how to make this not happen again. This option is very useful for waterfall types of simulations, but for oceans it rather creates problems.
Huh, posted from the phone and somehow most of my post is gone
I wanted to say that indeed the Ship tutorial uses Affect Liquid, but it manages to get away with it. Many ocean setups are lucky by using camera angles where these bumps are not visible or by the splash flying in such a way and landing in the water in such places that don’t create such flickering. But please set it to zero in your scene.