Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Cloth to simulate slime
#12
(10-09-2018, 04:27 PM)josemendez Wrote: Here:



The video starts with the basic cloth setup: Create a GameObject with cloth & solver components, choose a cloth topology (I have multiple ready-made ones, so I skipped topology generation) and hit "Initialize".

Then I fix the four corners of the cloth (similar to the setup you describe), and create a 1 kg ball on top of it.
Click play, and the ball sinks trough the cloth. ([1:18] in the video)

Note that I left the cloth mass at its default value of 0.1 kg per particle, for the sake of demonstrating iterations/substeps only. First I try 5 iterations / 2 substeps. Since the cloth mesh is quite dense -made out of many particles- and light, the ball still slips trough. Then I try 5 iterations / 4 substeps, and now cloth is able to withstand the weight of the ball, despite having a mass ratio of 1/10. Reducing the mass ratio by increasing the weight of the cloth would reduce the need for high iteration/substep counts, reducing the density of the mesh would too.

After that, I add a particle renderer component so that you can see the cloth particles. Then begin to reduce the amount of substeps again, until the ball is able to rip a gap between the particles and slip trough.

Hope the video helps you.

PS: I have a feeling that your original goal got lost during this conversation... assuming your slime sim is 2D, I think it would be both easier and much more performant to simply move particles around directly (those near the user's finger), using Oni.SetParticleVelocities()?

Thankyou. Your support is astonishingly helpful. I'm going to try that setup tonight as soon as I get home.

That being said, originally, as you mentioned in the end, I wanted to move particles around the user's finger using SetParticleVelocities(). But I'm unable to understand how would I be able to create a finger's shape on slime's surface. 

If I attenuate positions of particles around the user's finger using a slope equation, I don't understand how that would recreate a "finger shape".

Is increasing substeps really inefficient for such use cases?

I feel the only thing stopping me from using SetParticleVelocities() is the finger shape on surface. 

Also, do you have suggestions on how to make the cloth more "Slimy"? I tried altering values such as stiffness but can't quite get it right.
Reply


Messages In This Thread
Cloth to simulate slime - by arrnav96 - 09-09-2018, 06:06 AM
RE: Cloth to simulate slime - by josemendez - 09-09-2018, 11:32 AM
RE: Cloth to simulate slime - by arrnav96 - 10-09-2018, 11:17 AM
RE: Cloth to simulate slime - by josemendez - 10-09-2018, 11:41 AM
RE: Cloth to simulate slime - by arrnav96 - 10-09-2018, 11:55 AM
RE: Cloth to simulate slime - by josemendez - 10-09-2018, 01:45 PM
RE: Cloth to simulate slime - by arrnav96 - 10-09-2018, 03:47 PM
RE: Cloth to simulate slime - by josemendez - 10-09-2018, 03:56 PM
RE: Cloth to simulate slime - by arrnav96 - 10-09-2018, 04:03 PM
RE: Cloth to simulate slime - by josemendez - 10-09-2018, 04:05 PM
RE: Cloth to simulate slime - by josemendez - 10-09-2018, 04:27 PM
RE: Cloth to simulate slime - by arrnav96 - 11-09-2018, 09:25 AM
RE: Cloth to simulate slime - by josemendez - 11-09-2018, 10:32 AM
RE: Cloth to simulate slime - by arrnav96 - 11-09-2018, 10:25 PM
RE: Cloth to simulate slime - by josemendez - 12-09-2018, 08:09 AM
RE: Cloth to simulate slime - by arrnav96 - 12-09-2018, 01:01 PM
RE: Cloth to simulate slime - by josemendez - 12-09-2018, 02:26 PM
RE: Cloth to simulate slime - by arrnav96 - 12-09-2018, 03:44 PM
RE: Cloth to simulate slime - by josemendez - 12-09-2018, 04:45 PM
RE: Cloth to simulate slime - by arrnav96 - 19-09-2018, 10:29 PM
RE: Cloth to simulate slime - by josemendez - 22-09-2018, 02:17 PM
RE: Cloth to simulate slime - by arrnav96 - 30-09-2018, 03:35 PM
RE: Cloth to simulate slime - by arrnav96 - 06-10-2018, 03:47 AM
RE: Cloth to simulate slime - by akayashi1212 - 26-03-2021, 10:00 AM
RE: Cloth to simulate slime - by josemendez - 26-03-2021, 11:03 AM
RE: Cloth to simulate slime - by akayashi1212 - 27-03-2021, 04:24 AM
RE: Cloth to simulate slime - by josemendez - 29-03-2021, 09:59 AM
RE: Cloth to simulate slime - by akayashi1212 - 29-03-2021, 11:35 AM
RE: Cloth to simulate slime - by josemendez - 31-03-2021, 10:09 AM
RE: Cloth to simulate slime - by akayashi1212 - 31-03-2021, 02:47 PM
RE: Cloth to simulate slime - by josemendez - 31-03-2021, 06:21 PM
RE: Cloth to simulate slime - by akayashi1212 - 01-04-2021, 03:27 AM
RE: Cloth to simulate slime - by josemendez - 01-04-2021, 08:40 AM
RE: Cloth to simulate slime - by akayashi1212 - 01-04-2021, 09:57 AM
RE: Cloth to simulate slime - by josemendez - 05-04-2021, 12:06 PM
RE: Cloth to simulate slime - by akayashi1212 - 07-04-2021, 03:35 AM