Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tips for making fluid
#1
Hi!

I have bought this plugin last week and am trying to create fluid. However, my particles don't seem to combine very well.
May I ask which parameter I have to adjust to make them combine better?

Sample video below:



Thanks a lot in advance for the help!!
Reply
#2
Hi,

Increase the particle renderer's radius scale, as indicated in the manual (yellow warning box at the start of the Obi Fluid Renderer subsection):
http://obi.virtualmethodstudio.com/manua...ering.html

"Using a radius scale between 1.7 and 2 for the particle renderer will ensure good particle coverage, and a fluid surface with no gaps."
Reply
#3
Thank you!

I completely missed that part and it looks more fluid-like now.

Is there a thread somewhere for performance tweaking?

Regards
Reply
#4
(11-10-2021, 12:14 PM)netjeenpetje Wrote: Thank you!

I completely missed that part and it looks more fluid-like now.

Is there a thread somewhere for performance tweaking?

Regards

Hi,

There's many different settings that affect performance, and they can have a different impact depending on your scene/game. The only ones that are a simple performance vs quality choice are iterations and substeps, there's an entire page in the manual dedicated to how the simulation works and how these affect it:
http://obi.virtualmethodstudio.com/manua...gence.html

Some fluid parameters can also have a large impact on performance. Most notably, resolution (as more resolution means more particles) and smoothing radius. See:
http://obi.virtualmethodstudio.com/manua...rials.html

Aside from those, the usual physics performance tips apply: use a larger timestep value whenever possible, use simpler colliders, if using Burst in-editor disable jobs debugger, etc.

To aid you in performance tuning, use Unity's profiler. This will tell you what's taking up most time, otherwise you'll be basically turning knobs at random.

kind regards
Reply