12-12-2019, 11:32 AM
Good day, we have a problem when we pour liquid into a glass, if you move it, fluids pass through this glass. How to fix it?
Mesh and Fluid Problem
|
12-12-2019, 11:32 AM
Good day, we have a problem when we pour liquid into a glass, if you move it, fluids pass through this glass. How to fix it?
12-12-2019, 11:34 AM
(12-12-2019, 11:32 AM)sc00b Wrote: Good day, we have a problem when we pour liquid into a glass, if you move it, fluids pass through this glass. How to fix it? This is good ol' tunneling. If you move an object by changing its transform, you're essentially teleporting it from frame to frame, which causes particles that were inside the container to be outside the next frame. Try adding a ObiKinematicVelocities component to the glass (and a kinematic rigidbody). This will calculate actual linear/angular velocities from the transform position deltas, allowing continuous collision detection to kick in and reduce tunneling. See the FaucetAndBucket sample scene for an example.
12-12-2019, 01:57 PM
(12-12-2019, 11:34 AM)josemendez Wrote: This is good ol' tunneling. If you move an object by changing its transform, you're essentially teleporting it from frame to frame, which causes particles that were inside the container to be outside the next frame. You take it and try it yourself) you have everything falling through the bowl on that scene too) make transparency to the material. And you will see that there is a problem.
12-12-2019, 02:19 PM
(This post was last modified: 12-12-2019, 02:22 PM by josemendez.)
(12-12-2019, 01:57 PM)sc00b Wrote: You take it and try it yourself) you have everything falling through the bowl on that scene too) make transparency to the material. And you will see that there is a problem. Hi, No particles fall trough the bowl in that scene for us, and no other user has ever reported it. Also, transparency has nothing to do with physics, it only affects rendering. See video:
12-12-2019, 02:22 PM
(12-12-2019, 02:19 PM)josemendez Wrote: Hi,https://youtu.be/hz8KmORpuDM?t=21 - So you catch, you pour liquid through the bottom on the floor, make a transparent material and see.
12-12-2019, 02:23 PM
(12-12-2019, 02:22 PM)sc00b Wrote: https://youtu.be/hz8KmORpuDM?t=21 - So you catch, you pour liquid through the bottom on the floor, make a transparent material and see. Hi I'm not sure I understand. You mean changing the bucket material to a transparent one?
12-12-2019, 02:32 PM
12-12-2019, 02:42 PM
(This post was last modified: 12-12-2019, 02:45 PM by josemendez.)
12-12-2019, 08:20 PM
(12-12-2019, 02:42 PM)josemendez Wrote: Hi,And another question, where to set up the repulsion of the fluid from the fluid? And then we get jumping water)
13-12-2019, 08:27 AM
(This post was last modified: 13-12-2019, 08:28 AM by josemendez.)
(12-12-2019, 08:20 PM)sc00b Wrote: And another question, where to set up the repulsion of the fluid from the fluid? And then we get jumping water) Repulsion (pressure force) is not configurable, it is calculated to try and maintain a constant density. That's precisely what makes fluid "fluid". Artificially increasing pressure forces would make the fluid "explode", decreasing them would make it collapse. You can increase the amount of substeps in the FixedUpdater, or the amount of density iterations in the ObiSolver to make the fluid less compressible. (increase simulation quality) Here's a list of all configurable fluid parameters: http://obi.virtualmethodstudio.com/tutor...rials.html |
« Next Oldest | Next Newest »
|