{"id":632,"date":"2012-07-06T17:00:04","date_gmt":"2012-07-06T15:00:04","guid":{"rendered":"http:\/\/www.book.artbeeweb.nl\/?p=632"},"modified":"2012-08-01T22:53:27","modified_gmt":"2012-08-01T20:53:27","slug":"dynamics-iii-3-7-mesh-behavior-crumbling","status":"publish","type":"post","link":"http:\/\/www.book.artbeeweb.nl\/?p=632","title":{"rendered":"Dynamics III &#8211; 3.7 Mesh behavior \u2013 crumbling"},"content":{"rendered":"<p>One major issue that came up when discussing Cloth Room in the Renderosity forum was crumbling, very well documented by Bagginsbill.<\/p>\n<table>\n<tbody>\n<tr>\n<td>ngg_shortcode_0_placeholder<\/td>\n<td>ngg_shortcode_1_placeholder<\/td>\n<td>ngg_shortcode_2_placeholder<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>ngg_shortcode_3_placeholder<\/td>\n<td>ngg_shortcode_4_placeholder<\/td>\n<td>ngg_shortcode_5_placeholder<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Let&#8217;s consider a quad mesh, with the edges in horizontal and vertical (or: UV-) direction. Stretching, folding and shearing in those directions happen in a straightforward way. So let&#8217;s look when forces are applied diagonally.<\/p>\n<p>ngg_shortcode_6_placeholderWhen pushing, the cloth might fold diagonally without having direct counterforces available: no edges, hence no springs. Shear and fold work against it a little bit, but generally are not strong enough to push all the surrounding cloth away. So it&#8217;s easy to bring the opposite vertices together. This is exactly what causes the &#8220;crystal ridges&#8221; as artifacts in the cloth. And for quads those ridges can exist in both diagonal directions, so crumbling is caused when some of those ridges come together and combine effects.<\/p>\n<p>This is different in tris, which have a diagonal edge in at least one direction. So mono-tris still might ridge in one direction but are hard to crumble, X-tris, Zigzags and Hexes can resist ridge forming in all directions and won&#8217;t crumble.<\/p>\n<p>What might help against ridges in quad meshes?<\/p>\n<ul>\n<li>Not using quads resolves this to some extent, and smaller quads make smaller ridges<\/li>\n<li>Increasing shear and\/or fold resistance will push the crumbles out. But high shear and fold resistance will affect other behavior of the cloth as well, life is a compromise. Reducing mass (density), friction and other effects will make this pushing more successful. So instead of raising fold\/shear resistance, reducing density is an option. And as shear and fold resistance work together in this case, you can do with less fold and more shear.<\/li>\n<\/ul>\n<h3>Engineering stuff<\/h3>\n<p>For those who like the formulas for a better understanding.<\/p>\n<p>ngg_shortcode_7_placeholderConsider a quad, three vertices in a plane, the fourth one out of plane. If the distance to its opposite vertex (in the same poly) is 100% in case the vertex IS in plane, then now it&#8217;s shorter: X% instead. When X=0 the quad has folded completely into a double sided triangle.<\/p>\n<p>In this out-of-plane position, this quad and its neighbors make a shearing force S*(90-a) with S the shearing resistance (equal or related to the Poser parameter, one never knows) and a the angle between two adjacent edges (orange, in the scheme). At a=90\u00b0 (perpendicular), shearing is null while each deviation generates deformation of the quad and counterforces accordingly.<br \/>\nThe quad and neighbors also make a folding force F*(180-b), with folding resistance F and b the angle between opposite edges (pink in the scheme). At 180\u00b0 the edges are in line, no folding, and any deviation generates folds and counterforces accordingly.<\/p>\n<p>From geometry, we&#8217;ll have Sin(a\/2) = \u00bd * sqrt(2) * X and Sin(b\/2) = \u00bd * sqrt(2) * sqrt( 1+X<sup>2<\/sup> )<\/p>\n<p>For each X there is a valid combination a and b (see the graph), so for each X there is a ridge-resisting force. The ridge only disappears when this force is larger than the counterforces for friction and gravity.<\/p>\n<p>At the left, say X=90%, we find (180-b)=40 and (90-a)=10, a 4:1 ratio between (anti)folding and (anti)shear. Halfway, at 50% we&#8217;ll find a 1.5:1 ratio. So when reducing the (anti)folding with 1, the (anti)shearing force should go up with at least 4 to 1.5 to get a similar result. Otherwise things get worse.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One major issue that came up when discussing Cloth Room in the Renderosity forum was crumbling, very well documented by Bagginsbill. &nbsp; Let&#8217;s consider a quad mesh, with the edges in horizontal and vertical (or: UV-) direction. Stretching, folding and shearing in those directions happen in a straightforward way. So let&#8217;s look when forces are &hellip; <a href=\"http:\/\/www.book.artbeeweb.nl\/?p=632\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Dynamics III &#8211; 3.7 Mesh behavior \u2013 crumbling&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[5],"tags":[20,133],"series":[23],"class_list":["post-632","post","type-post","status-publish","format-standard","hentry","category-poser","tag-dynamics","tag-poser","series-poser-dynamics"],"_links":{"self":[{"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=\/wp\/v2\/posts\/632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=632"}],"version-history":[{"count":6,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=\/wp\/v2\/posts\/632\/revisions"}],"predecessor-version":[{"id":740,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=\/wp\/v2\/posts\/632\/revisions\/740"}],"wp:attachment":[{"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=632"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=632"},{"taxonomy":"series","embeddable":true,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}