Obi Official Forum
Tips for making fluid - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Tips for making fluid (/thread-3125.html)



Tips for making fluid - netjeenpetje - 09-10-2021

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!!


RE: Tips for making fluid - josemendez - 10-10-2021

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/manual/6.2/fluidrendering.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."


RE: Tips for making fluid - netjeenpetje - 11-10-2021

Thank you!

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

Is there a thread somewhere for performance tweaking?

Regards


RE: Tips for making fluid - josemendez - 11-10-2021

(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/manual/6.2/convergence.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/manual/6.2/emittermaterials.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