{"id":3673,"date":"2014-05-01T12:20:15","date_gmt":"2014-05-01T10:20:15","guid":{"rendered":"http:\/\/www.book.artbeeweb.nl\/?p=3673"},"modified":"2014-05-08T20:19:11","modified_gmt":"2014-05-08T18:19:11","slug":"what-are-the-stretching-dpdu-dpdv-nodes-used-for","status":"publish","type":"post","link":"http:\/\/www.book.artbeeweb.nl\/?p=3673","title":{"rendered":"What are the stretching (dPdu, dPdv) nodes used for?"},"content":{"rendered":"<p>Nodes are the essential building blocks in the Advanced interface to the Poser Material Room. They are the graphical representation of mathematical function calls, that is: calculation procedures which turn parameters (inputs) to a result (output).<\/p>\n<p><strong>Advanced<\/strong><\/p>\n<p>The nodes from the Variables group tell me about the position, in space and time, of the spot that the PoserSurface definition is constructed for. There are two kinds of results from these nodes:<\/p>\n<ul>\n<li><a title=\"click for details\" href=\"\/?p=3669\">Single values<\/a>.<\/li>\n<li>Three value \u2018vectors\u2019. Like a color is defined by (Red, Green, Blue), so is a point in space defined by (X,Y,Z) and so on. These are discussed in a previous article\u00a0(<a title=\"click for details\" href=\"\/?p=3671\">place P and normal N<\/a>), in this article (stretching dPdu, dPdv) and in the next one\u00a0(<a title=\"click for details\" href=\"\/?p=3675\">curvature dNdu, dNdv<\/a>).<\/li>\n<\/ul>\n<p>The four Variables mentioned last tell us about the shape of the object, and the mapping that comes with it. When a large step in Poser space from one point on the surface to another comes with just a tiny step in U or V, then the mapping stretches the texture over a large area. In the inverse case, the texture is squeezed into a tiny spot. That is what dPdu and dPdv are about. A large value for dPdu means: stretched. And by the way: it\u2019s a vector, so we can have stretching in X and squeezing in Z direction, for instance.<\/p>\n<p><strong><em>Visualization<\/em><\/strong><\/p>\n<p>To visualize them for a probably better understanding, the following renders show them translated to colors. First dPdu:<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.book.artbeeweb.nl\/wp-content\/gallery\/postpmra\/PMRA.79.01.jpg\" alt=\"\" width=\"800\"\/><\/p>\n<p>Let\u2019s start in the middle and move gracefully to the right, the positive U direction. So, adjacent point will not differ in Z direction, and hence there will be no Blue (3<sup>rd<\/sup> vector component) in the result. And they will positively differ in X, which introduces Red (1<sup>st<\/sup> component). At the upgoing side of the wave, points will differ in Y in a positive way (the path is up). This makes Green (2<sup>nd<\/sup> component), and with the already available Red this will make Yellow, as we see. At the downgoing side of the wave, points will differ in Y as well, but in a negative way. Negative values are clipped to 0, and only the Red will remain. Note that when I walk to the left, I make negative steps in U, so the upgoing path will be red, and the downgoing part \u2013 with a negative Y as well \u2013 will turn yellow as negative * negative makes positive.<\/p>\n<p>Now let\u2019s look at dPdv:<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.book.artbeeweb.nl\/wp-content\/gallery\/postpmra\/PMRA.79.02.jpg\" alt=\"\" width=\"800\"\/><\/p>\n<p>Let\u2019s start in the middle and gracefully move to the back (that\u2019s increasing ! in V). As the X value won\u2019t change, there will be no Red (1<sup>st<\/sup> component). The Z value decreases gradually as Z is positive in forward direction, and we\u2019re walking backward. This negative value is clipped out when turned into a color, which is why we won\u2019t see any Blue (3<sup>rd<\/sup> component) either. While walking to the back (positive V steps) the upgoing portions of the path have a positive Y difference, and so the result will turn Green (2<sup>nd<\/sup> component) there. The downgoing portions have a negative Y difference, which will be clipped out. Then in that case no color-values are left, and the result is black.<\/p>\n<p>Brief conclusion: dPdu and dPdv are vectors. Large negative or large positive values indicate surface stretching in either direction, small values indicate squeezing of the image onto the object. Large and small in this are relative to the size of the object. From left to right, U changes from -1 or 0 to 1, while P changes with the object-size in X direction. So, dP\/du equals (half of) objectsize_X for a non-stretched non-squeezed mapping.<\/p>\n<p style=\"text-align: right;\"><a href=\"\/?p=3675\">Next &gt;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nodes are the essential building blocks in the Advanced interface to the Poser Material Room. They are the graphical representation of mathematical function calls, that is: calculation procedures which turn parameters (inputs) to a result (output). Advanced The nodes from the Variables group tell me about the position, in space and time, of the spot &hellip; <a href=\"http:\/\/www.book.artbeeweb.nl\/?p=3673\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;What are the stretching (dPdu, dPdv) nodes used for?&#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":[145,133],"series":[128],"class_list":["post-3673","post","type-post","status-publish","format-standard","hentry","category-poser","tag-material-room","tag-poser","series-matroom-advanced"],"_links":{"self":[{"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=\/wp\/v2\/posts\/3673","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=3673"}],"version-history":[{"count":4,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=\/wp\/v2\/posts\/3673\/revisions"}],"predecessor-version":[{"id":4334,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=\/wp\/v2\/posts\/3673\/revisions\/4334"}],"wp:attachment":[{"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3673"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3673"},{"taxonomy":"series","embeddable":true,"href":"http:\/\/www.book.artbeeweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=3673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}