Obi Official Forum
Help Fluid in a beaker [Burst] - 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: Help Fluid in a beaker [Burst] (/thread-3524.html)



Fluid in a beaker [Burst] - shemtomke - 15-07-2022

Hello, for the past week I've been trying to render a fluid in a beaker using the voxel mesh component though the fluid ends up forming a ball from this picture below. 

[Image 1] : https://ibb.co/rZzjT3p

I also had some problems setting the fluid to stop it from emitting every time (When emitting it falls down rather than staying inside the beaker). Just wanted it stable inside the beaker to make it realistic in such a way when I want to pick up the beaker the fluid is able to move or have physics like in real life when you pick up a glass of water.

I am not sure if this was the right way but I set the damping to 1 and the fluid did not fall though I don't know if this will affect the fluid later on when trying to mix with another beaker. 

Hopefully, I get some feedback/help.


RE: Fluid in a beaker [Burst] - josemendez - 15-07-2022

Hi!

Based on your screenshot, it just seems like your fluid resolution is *way* too low for the size of the beaker. Particles look almost the same size as the beaker itself. You need to increase resolution or scale the solver down, see:
http://obi.virtualmethodstudio.com/manual/6.3/emittermaterials.html
https://www.youtube.com/watch?list=PLnCR8_XCOgrbhhk40Bxbw8gcnaiy5PYL_&v=W0ojzG5dzjU&feature=emb_logo

Quote:I am not sure if this was the right way but I set the damping to 1 and the fluid did not fall though I don't know if this will affect the fluid later on when trying to mix with another beaker.

Damping -as the name implies- dampens particle movement. Setting it to 1 will just remove all kinetic energy from the fluid, freezing it in place completely. This is certainly not what you want. For fluids, you usually want it set to a rather low value (0-0.1)

For the fluid to stay inside the beaker, make sure to not use a MeshCollider for the beaker (use distance fields instead, they’re both cheaper and more robust).


RE: Fluid in a beaker [Burst] - shemtomke - 15-07-2022

What about this issue from this video link I have attached?

https://drive.google.com/file/d/1wU-GRCQJfzMz886SzKIZJTl4niiy0yNw/view?usp=sharing




RE: Fluid in a beaker [Burst] - josemendez - 15-07-2022

(15-07-2022, 06:34 PM)shemtomke Wrote: What about this issue from this video link I have attached?

https://drive.google.com/file/d/1wU-GRCQJfzMz886SzKIZJTl4niiy0yNw/view?usp=sharing


In that video, particles seem huge compared to the beaker, they move pretty fast too. Increase fluid resolution as I suggested, and use distance fields for better collision detection (MeshColliders are very prone to tunneling)

Other than that I can’t really tell if there’s any other issues unless you share your scene setup.


RE: Fluid in a beaker [Burst] - shemtomke - 16-07-2022

Yeah, I did as you suggested:

  1. Increased the resolution of the fluid
  2. Used the distance field for the beaker
Though I still get these results - https://drive.google.com/file/d/1P-EeURqQVQG-Y3enx8cSOgv3jPqXUap-/view?usp=sharing

Here are the screenshots for the setup of the fluid 


  1. Obi solver - https://drive.google.com/file/d/127ZwUi0S7ZLAT-pBl5nAqtAFoO6dEDKr/view?usp=sharing
  2. Obi Emitter - https://drive.google.com/file/d/1s9SinGiA6kb7RxrZ3jIFGqbJaZr5aodt/view?usp=sharing
  3. Dense Fluid Adjust - https://drive.google.com/file/d/1xvjCJ9AsSoqkiTXCu1BRyhimKnNSE-iz/view?usp=sharing
  4. Beaker - https://drive.google.com/file/d/1a2eXFzvj_UKhBmKHWY8K8gcMWHg9SSjl/view?usp=sharing



RE: Fluid in a beaker [Burst] - josemendez - 16-07-2022

(16-07-2022, 09:54 AM)shemtomke Wrote: Yeah, I did as you suggested:

  1. Increased the resolution of the fluid
  2. Used the distance field for the beaker
Though I still get these results - https://drive.google.com/file/d/1P-EeURqQVQG-Y3enx8cSOgv3jPqXUap-/view?usp=sharing

Here are the screenshots for the setup of the fluid 


  1. Obi solver - https://drive.google.com/file/d/127ZwUi0S7ZLAT-pBl5nAqtAFoO6dEDKr/view?usp=sharing
  2. Obi Emitter - https://drive.google.com/file/d/1s9SinGiA6kb7RxrZ3jIFGqbJaZr5aodt/view?usp=sharing
  3. Dense Fluid Adjust - https://drive.google.com/file/d/1xvjCJ9AsSoqkiTXCu1BRyhimKnNSE-iz/view?usp=sharing
  4. Beaker - https://drive.google.com/file/d/1a2eXFzvj_UKhBmKHWY8K8gcMWHg9SSjl/view?usp=sharing

The beaker’s walls are *extremely thin*, you will get a lot of tunneling (particles passing trough the walls). In this kind of situation, it’s helpful to remember that the mesh used for rendering an object and to simulate it do not necessarily need to be the same: using a beaker mesh with thickened walls to generate the distance field will improve this. Also, what are your constraint settings? (In the solver, under the constraints foldout)

If possible, send your scene to support(at)virtualmethodstudio.com, that way I can take a closer look and set it up correctly for you, explaining the solution to any issues I find.

Kind regards,


RE: Fluid in a beaker [Burst] - shemtomke - 16-07-2022

I've sent the scene to the email. 

Thanks.


RE: Fluid in a beaker [Burst] - josemendez - 18-07-2022

(16-07-2022, 05:41 PM)shemtomke Wrote: I've sent the scene to the email. 

Thanks.

Hi Shem,

Just replied to your email, see my reply for details. The main culprit is that your beaker mesh has a few problems: it turns inside-out at the bottom, and it is open at the top. This makes collision detection against it impossible, good news is fixing those problems is quick and easy.

kind regards,


RE: Fluid in a beaker [Burst] - shemtomke - 20-07-2022

I successfully managed to hold the liquid thanks. Sonrisa