Unity Pouring Fluid Effect

Sdílet
Vložit
  • čas přidán 12. 09. 2024
  • Compute Shader

Komentáře • 2

  • @lichlichi
    @lichlichi Před 7 lety +2

    I again had a problem: Balls do not behave like water (I try to adjust the parameters H, C, REST_DENSITY, Dt, Grid Dim, PRESSURE_ITERATIONS) but I do not know what they mean. I try to get realistic behavior of water, but it turns out just kind of gas. Could you explain the meaning of each,
    but it is better to tell what values ​​are needed to get +- realistic water behavior? Oh, yes, and when I raise the upper and lower bounds at the same time, the balls gradually begin to disappear somewhere ... why?

    • @KODAI100
      @KODAI100  Před 7 lety +1

      Please see a fluid simulation method called Smoothed Particle Hydrodynamics(SPH). You will be able to understand these parameters.
      And why balls disappear is :
      The ball that outside of the boundary will be push back to slightly inside of boundary position. But if there is another ball, the fluid calculation caused 0 division error or something (I forgot my implementation).
      Boundary condition problem is always difficult and researched in not only fluid simulation area but also various physics simulations.
      (I'm so sorry about my poor English because I'm Japanese...)