Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Wave effect on fluid surface
#4
(08-05-2020, 10:43 AM)Guybrush Wrote: Hi! Thank you for the answer!
We are talking about 3D (but 2D could be interesting too). How do you suggest to make waves? 

In the attached file I show you an example of refrection. It has an exaggerated value but I used it for explain what I mean by "refraction of the single particle". I can clearly see that there are a lot of "bubbles". I would love to have something smoother, is that possible?

Thank you!

I assume we are talking about breaking waves here, as you'd see at the beach.  Surface-only, ripple like effects (think of raindrops falling on a puddle) are much easier to get using a shallow water, cell-based simulator. I happen to have one as the background of my ages-old website: http://jose.virtualmethodstudio.com. Is that what you're looking for? In that case I wouldn't even consider a particle-based simulator.

Getting accurate breaking wave formation in 3D would require an extremely high amount of particles (we're talking about hundreds of thousands), so not exactly an use case Obi is intended for. Not even GPU implementations of the same technique are able to get 3D waves at decent frame rates (see this for reference, the bunny video that shows some wave-looking behavior runs at 4-8 fps using CUDA: http://joelgross.me/projects/pbf.html)

To have smoother refraction, try increasing the maximum particle anisotropy in the solver (so that particles fit the surface better, see: http://obi.virtualmethodstudio.com/tutor...olver.html). Also try increasing the FluidRenderer's smoothing parameter, this will smooth out the surface a bit more.
Reply


Messages In This Thread
Wave effect on fluid surface - by Guybrush - 06-05-2020, 02:08 PM
RE: Wave effect on fluid surface - by josemendez - 06-05-2020, 02:28 PM
RE: Wave effect on fluid surface - by Guybrush - 08-05-2020, 10:43 AM
RE: Wave effect on fluid surface - by josemendez - 08-05-2020, 11:05 AM
RE: Wave effect on fluid surface - by Guybrush - 08-05-2020, 11:57 AM
RE: Wave effect on fluid surface - by josemendez - 08-05-2020, 12:17 PM
RE: Wave effect on fluid surface - by Guybrush - 08-05-2020, 01:18 PM
RE: Wave effect on fluid surface - by josemendez - 08-05-2020, 02:07 PM
RE: Wave effect on fluid surface - by Guybrush - 08-05-2020, 02:26 PM
RE: Wave effect on fluid surface - by josemendez - 08-05-2020, 02:47 PM
RE: Wave effect on fluid surface - by Guybrush - 08-05-2020, 02:52 PM
RE: Wave effect on fluid surface - by josemendez - 08-05-2020, 03:08 PM
RE: Wave effect on fluid surface - by Guybrush - 08-05-2020, 03:19 PM