08-04-2020, 05:06 PM
![[Image: hole.png]](http://julienrobert.net/partage/hole.png)
http://julienrobert.net/partage/example.mov
thanks
Help hole in collider
|
08-04-2020, 05:06 PM
![]() http://julienrobert.net/partage/example.mov thanks
08-04-2020, 05:09 PM
(This post was last modified: 08-04-2020, 05:12 PM by josemendez.)
Maybe you haven't updated the mesh distance field.
See: http://obi.virtualmethodstudio.com/tutor...ields.html Keep in mind that distance fields for one-sided objects with holes in them are not well defined. You might want to deactivate distance fields entirely (the "use distance fields" checkbox in the ObiCollider component), or use a two-sided mesh instead.
08-04-2020, 05:51 PM
(08-04-2020, 05:09 PM)josemendez Wrote: Maybe you haven't updated the mesh distance field. Thanks Jose. Generating a new distance field didn't solve the problem, it's doing the same. Maybe it's one-sided mesh the problem. When I uncheck Use Distance Field, the fluid goes through the mesh completely.
08-04-2020, 05:59 PM
(This post was last modified: 08-04-2020, 06:04 PM by josemendez.)
(08-04-2020, 05:51 PM)julienrobert Wrote: When I uncheck Use Distance Field, the fluid goes through the mesh completely. This is called tunneling and is common in all physics engines. It is exacerbated when using small objects and/or moving things around. See: https://www.youtube.com/watch?v=ms0Z35GY6pk MeshColliders are "paper-thin", meaning that they do not have a volume: only the mesh triangles collide with particles. But once a particle has passed trough a triangle in a single timestep, it cannot be projected back. That's precisely why distance fields are useful: they are solid, even if they are concave. This allows particles to be projected to the surface of the field if they ever get inside. However, for a one-sided mesh with holes...how can you define what's "inside" and "outside" the mesh, if it has no volume, and it does not divide space into two clear, distinct regions? You need a closed mesh for this, and that's why distance fields are ill-defined for one sided, holed shapes.
08-04-2020, 06:04 PM
[quote pid='6330' dateline='1586365172']
However, for a one-sided mesh with holes...how can you define what's "inside" and "outside" the mesh, if it has no volume, and it does not divide space into two clear, distinct regions? You need a closed mesh for this, and that's why distance fields are ill-defined for one sided, holed shapes. [/quote] I will consider building a two-sided mesh.
13-04-2020, 03:02 PM
I did a 2-sided mesh. I'm used to modeling so I might have done something wrong because now the distance field looks inversed.
![]()
13-04-2020, 04:16 PM
|
« Next Oldest | Next Newest »
|