CLOTHWORKS - Collider showing through cloth

CLOTHWORKS - Collider showing through cloth

Postby kylekin » Sun Mar 19, 2023 6:31 pm

Screenshot 2023-03-19 at 10.23.24 AM.png
I'm following the first tutorial from the cloth works manual and using the exact settings indicated, but the collider is showing through the cloth every time. I've switched out tables.

I'm using a brand new Mac M2 Max with 98 GB RAM and running Sketchup 2023
0

kylekin 
 

Re: CLOTHWORKS - Collider showing through cloth

Postby Rich O Brien » Mon Mar 20, 2023 12:28 am

I've switched out tables.


What does that mean?

You can define the space between collider and cloth so clipping doesn't occur. But it is dependent on the object's size.

Sharing a skp would help.
0
I never know where I'm headed, just make it up as I go - Box 22:4
User avatar
Rich O Brien 
Administrator
 

Re: CLOTHWORKS - Collider showing through cloth

Postby kylekin » Mon Mar 20, 2023 12:45 am

It doesn't matter the collider I use. If I switch tables or build my own geometry, the cloth is getting clipped. Attached is the file. How do you define the space between the cloth and collider?
0

kylekin 
 

Re: CLOTHWORKS - Collider showing through cloth

Postby kylekin » Mon Mar 20, 2023 7:33 am

It appears to be a problem with the adaptive remeshing. Any time I use it I get clipping. Works fine as long as I simply turn that off.
0

kylekin 
 

Re: CLOTHWORKS - Collider showing through cloth

Postby Rich O Brien » Mon Mar 20, 2023 10:08 am

As mentioned in the manual...

Adaptive grid is used for applying grids to shapes that are not rectangular


Quadrilateral grid usually gives the best results in all types of simulations, except for curtains
0
I never know where I'm headed, just make it up as I go - Box 22:4
User avatar
Rich O Brien 
Administrator
 

Re: CLOTHWORKS - Collider showing through cloth

Postby kylekin » Mon Mar 20, 2023 2:59 pm

The manual suggests using adaptive REMESHING. I used a quadrilateral grid in my model. It's the remeshing that doesn't work.
0

kylekin 
 

Re: CLOTHWORKS - Collider showing through cloth

Postby kylekin » Mon Mar 20, 2023 3:11 pm

To follow up, if I create a circular table cloth and apply an adaptive GRID - that also does not work.
0

kylekin 
 

Re: CLOTHWORKS - Collider showing through cloth

Postby Rich O Brien » Mon Mar 20, 2023 3:53 pm

Clothworks has a substantial amount of settings to tweak.

Your original post was for a rectangular shape. Can you confirm the Quad grid is failing? What was the resolution of the quad cloth you simulated?

It would need to be at least 100 if Adaptive is on. But 3000+ if its just quad grid.

Don't set the quad to 3000+ and then add adaptive remeshing or you'll be waiting......



The Thickness Slider controls distance between cloth and collider. As the tooltip mention its in millimeters. So select the cloth and set a thickness and then the collider. The collider I typically set higher that the cloth.
0
I never know where I'm headed, just make it up as I go - Box 22:4
User avatar
Rich O Brien 
Administrator
 

Re: CLOTHWORKS - Collider showing through cloth

Postby Rich O Brien » Mon Mar 20, 2023 4:09 pm

For example your file you posted if the cloth is 200 quad grid resolution with adaptive set to 5 you get no edge protrusion.



If you run more that 1 iteration of Laplacian Smoothing it will cause table corners to peek through. But 1 iteration is ok.

0
I never know where I'm headed, just make it up as I go - Box 22:4
User avatar
Rich O Brien 
Administrator
 

Re: CLOTHWORKS - Collider showing through cloth

Postby kylekin » Mon Mar 20, 2023 5:22 pm

I tried exactly what you suggested but still got the table corners poking through. No matter the level of adaptive remeshing I use I get the table poking through the table cloth.
0

kylekin 
 

Re: CLOTHWORKS - Collider showing through cloth

Postby Rich O Brien » Mon Mar 20, 2023 5:47 pm

That's weird. How many frames did you let it run for?

If we both ran the same simulation the only difference would be the length of time or you inadvertently clicked on the cloth causing Drag to activate. I doubts its the latter.

What Thickness did you have for the collider?
0
I never know where I'm headed, just make it up as I go - Box 22:4
User avatar
Rich O Brien 
Administrator
 

Re: CLOTHWORKS - Collider showing through cloth

Postby kylekin » Mon Mar 20, 2023 7:16 pm

I had a thickness of 3 on the collider as suggested. Tried it with a thickness of 1. I finally got it to work once I had the thickness of the cloth higher than the thickness of the table (which I suppose makes sense). I set the cloth to a thickness of 5 and the collider to a thickness of 1. Thanks for being patient and talking me through this!

Now... I just need to figure out how to apply an adaptive grid to a circular table cloth. Any time I run that (no matter the padding) it gives me messed up geometry.
0

kylekin 
 

Re: CLOTHWORKS - Collider showing through cloth

Postby Rich O Brien » Mon Mar 20, 2023 8:51 pm

Cloth simulation relies heavily on real world dimensions and some small setting adjustments.

I could replicate your edge peek on the table cloth if quad grid resolution was 120 or below.

For the round cloth your input geometry for the cloth need drape friendly topology. Then with Adaptive Remeshing you'll get it to simulate correctly.



0
I never know where I'm headed, just make it up as I go - Box 22:4
User avatar
Rich O Brien 
Administrator
 

Re: CLOTHWORKS - Collider showing through cloth

Postby kylekin » Mon Mar 20, 2023 10:27 pm

How did you set up the topology for the circle? Can't seem to find a plugin that will subdivide a circle in the way you're showing. Unless of course you just did it manually. Copy mode/rotate and copy/scale.
0

kylekin 
 

Re: CLOTHWORKS - Collider showing through cloth

Postby Rich O Brien » Mon Mar 20, 2023 10:42 pm

I used Vertex Tools 2 to extrude and finally merge. But TIGs Split Tools would also do the same for you.

Just use the native Offset Tool to create concentric rings and TIGs Split Donut tool in Split Tools to divide it.



https://sketchucation.com/pluginstore?p ... splitTOOLS

If you have Sketchucation Tools 4.3.0 installed just search for split in the ExtensionStore and install it.

1
I never know where I'm headed, just make it up as I go - Box 22:4
User avatar
Rich O Brien 
Administrator
 

Re: CLOTHWORKS - Collider showing through cloth

Postby pilou » Tue Mar 21, 2023 12:24 am

And can make cool things! ;)

0
Frenchy Pilou
Is beautiful that please without concept!
My Little site :)
User avatar
pilou 
Top SketchUcator
 

Re: CLOTHWORKS - Collider showing through cloth

Postby kylekin » Tue Mar 21, 2023 3:03 pm

Thank you Rich. I have that plugin. And thanks for all your help =)
0

kylekin 
 

Re: CLOTHWORKS - Collider showing through cloth

Postby Rich O Brien » Tue Mar 21, 2023 5:00 pm

kylekin wrote:Thank you Rich. I have that plugin. And thanks for all your help =)


No problem. Happy draping!
0
I never know where I'm headed, just make it up as I go - Box 22:4
User avatar
Rich O Brien 
Administrator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Extensions & Applications Discussions

Who is online

Users browsing this forum: No registered users and 2 guests