Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Objects placed on top of Obi Cloth keep rotating
#4
(07-03-2023, 05:37 AM)LuckyPretzel Wrote: While I've got your attention, I have some further questions regarding Obi Cloth. I've noticed I can add weight/mass to the cloth via the blueprint but I don't know if I get the desired effect. I've created a video to show the real-life movement of what the cloth should achieve: https://youtube.com/shorts/XPpiNU5zTVY

Notice in the video that the net has some weight to it and that after an object sits on the net, the net doesn't completely rebound back.

Hi!

Depending on the mass ratio between the cloth and the objects resting on top of it, it will sag more (heavier objects) or less (lighter objects). Note that the only important thing is the mass ratio, that means behavior will be identical for a 1 kg cloth and 2 kg objects and for 10 kg cloth and 20 kg objects, since 1/2 == 10/20 == 0.5.

However, in the absence of any objects on top, the cloth it will behave the same regardless of its mass. Mass doesn't have any impact on the internal dynamics of the cloth, neither in a simulation or the real world. This is because mass has zero effect on accelerations: since gravity is an acceleration objects fall at the exact same speed regardless of their mass. Mass only has an effect on forces.

(07-03-2023, 05:37 AM)LuckyPretzel Wrote: It remains in a bit of a sunken state. Additionally, when an object is sitting on top, the net slopes downwards towards the object. It's not just one tiny area of the net affected.

This should be the default behavior of cloth, what are you getting in Obi instead?

(07-03-2023, 05:37 AM)LuckyPretzel Wrote: I'm curious if you have any suggestions. Should I be using "seams" instead of just one object?

This would make no difference, since using seams basically joins two different cloth actors into one.

(07-03-2023, 05:37 AM)LuckyPretzel Wrote: Do I need to limit stretchiness completely and add create more slack in the net object model?

Stretchiness is limited as much as possible - depends on how many substeps you're using- by default, creating slack in the model itself doesn't have any advantage.

(07-03-2023, 05:37 AM)LuckyPretzel Wrote: Should I increase the number of squares or perhaps use triangles?

Internally all 3D engines use triangles for both rendering and physics. A square (quad) is just 2 triangles, so it makes no difference at all. The only advantage of using triangles is that you can control the direction of the diagonal in quads when modeling, which is sometimes useful when doing low-poly models.

(07-03-2023, 05:37 AM)LuckyPretzel Wrote: Any advice you have is appreciated. I'm mostly focused on making the net have more weight and strength without seeming like it's rigid like a box but keeping in mind performance.

My advice would be to always use real-world units for distances, forces, mass ratios and accelerations. This is specially important for distances, since larger objects appear to move slower (since the distance they travel per second at the same speed is smaller compared to their size). There's a huge difference in simulating the exact same scene at a 10 cm scale and a 10 m scale.

Also use as many substeps as you can get away with given your performance budget (will find them in your ObiFixedUpdater component), and adjust distance and bending constraints depending on the results you're after. For instance, you may want to allow distance constraints to compress a bit by setting max compression > 0, and allow for more bending.

kind regards,
Reply


Messages In This Thread
RE: Objects placed on top of Obi Cloth keep rotating - by josemendez - 07-03-2023, 08:22 AM