{"id":320,"date":"2017-09-06T21:25:05","date_gmt":"2017-09-07T04:25:05","guid":{"rendered":"http:\/\/www.artifisizzler.com\/?p=320"},"modified":"2019-07-18T00:42:31","modified_gmt":"2019-07-18T00:42:31","slug":"procedural-wood-from-oak-to-maple-finale","status":"publish","type":"post","link":"http:\/\/www.decscroll.com\/blog\/2017\/09\/06\/procedural-wood-from-oak-to-maple-finale\/","title":{"rendered":"Procedural Wood: From Oak To Maple Finale"},"content":{"rendered":"<p>If you&#8217;re just joining, be sure to check out the other parts of this post or this won&#8217;t make sense:<\/p>\n<p><a href=\"http:\/\/www.decscroll.com\/?p=270\">Part 1<\/a><br \/>\n<a href=\"http:\/\/www.decscroll.com\/?p=315\">Part 2<\/a><\/p>\n<p>We left off in the last post with the Maple shader looking pretty good, but it&#8217;s not quite there. As I have been known to do, I went to the local lumber store and checked out some real Maple boards in addition to my online research. The ring patterns on Maple are definitely different from Oak, so we should fix that.<\/p>\n<p>We haven&#8217;t really talked about the Noise that we added to the Rings, aside from the fact that it makes them not-so-perfect circles, and adds interest to the ring patterns. Let&#8217;s take a moment to discuss the parameters and how they affect our wood:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple023.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-299\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple023.png?resize=574%2C392\" alt=\"\" width=\"574\" height=\"392\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple023.png?w=574 574w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple023.png?resize=300%2C205 300w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/a><\/p>\n<p>There are three parameters: Scale, Detail, and Distortion. Let&#8217;s look at these with our black-and-white ring pattern to see the effects:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple32.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-322\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple32.png?resize=628%2C541\" alt=\"\" width=\"628\" height=\"541\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple32.png?w=628 628w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple32.png?resize=300%2C258 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/a><\/p>\n<p>The first parameter, Scale, is obviously the scale of the Noise texture. But in this case, since it&#8217;s being combined with the pattern, the scale is more like how much the rings are disturbed by the Noise. With the current setting, 0.25, the rings are still pretty round, with a slight bit of waviness. Increasing it to 1.0 makes it a lot wavier:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple33.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-323\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple33.png?resize=626%2C542\" alt=\"\" width=\"626\" height=\"542\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple33.png?w=626 626w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple33.png?resize=300%2C260 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><\/p>\n<p>And at 5.0, it&#8217;s getting pretty crazy:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple34.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-324\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple34.png?resize=627%2C544\" alt=\"\" width=\"627\" height=\"544\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple34.png?w=627 627w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple34.png?resize=300%2C260 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/a><\/p>\n<p>Let&#8217;s take it back down to 0.25 since most wood is pretty round. The second parameter is Detail. As the name implies, it&#8217;s how much detail is in the Noise texture. For our Oak wood, we have it up to 10, because we want ragged rings. If we take it down to 1.0, it becomes very smooth, so the rings are just barely not perfectly round:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple35.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-325\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple35.png?resize=627%2C542\" alt=\"\" width=\"627\" height=\"542\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple35.png?w=627 627w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple35.png?resize=300%2C259 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/a><\/p>\n<p>If we leave the Detail at 1.0 and move the Scale back up to 5.0, you can see it&#8217;s just as wavy as before, but very smooth and not ragged like above when the Detail was set to 10.0:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple36.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-326\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple36.png?resize=633%2C544\" alt=\"\" width=\"633\" height=\"544\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple36.png?w=633 633w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple36.png?resize=300%2C258 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/a><\/p>\n<p>So you can think of Detail as the roughness or raggedness of the ring pattern. Again, for Oak we wanted the rings to not be smooth, but Maple has smoother rings. We&#8217;ll get back to that in a moment.<\/p>\n<p>Last but not least is Distortion. This is basically how much the overall pattern gets warped. With a low scale of 0.25, a Distortion of 1.0 doesn&#8217;t do much, as in the images above. If we set Scale, Detail, and Distortion all to 1, we get this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple37.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-327\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple37.png?resize=640%2C509\" alt=\"\" width=\"640\" height=\"509\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple37.png?w=681 681w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple37.png?resize=300%2C239 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Setting Distortion to 2.0 you can see the rings starting to warp:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple38.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-328\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple38.png?resize=640%2C513\" alt=\"\" width=\"640\" height=\"513\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple38.png?w=688 688w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple38.png?resize=300%2C241 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>&#8230;and at Distortion of 5.0, things are really wobbly:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple39.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-329\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple39.png?resize=640%2C508\" alt=\"\" width=\"640\" height=\"508\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple39.png?w=688 688w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple39.png?resize=300%2C238 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>But again, Distortion is affected by the Scale, so if we take the Scale down to 0.25, a Distortion of 5.0 isn&#8217;t all that crazy, really:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple40.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-330\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple40.png?resize=640%2C510\" alt=\"\" width=\"640\" height=\"510\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple40.png?w=682 682w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple40.png?resize=300%2C239 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>So, for Oak, we had a scale of 0.5, a Detail of 10 to make it ragged, and a Distortion of 1.0, because we wanted relatively straight, unwarped rings.<\/p>\n<p>Maple, however, is not as ragged, but it&#8217;s much wavier. We already set the scale down to 0.25, but let&#8217;s also set the Detail down to 5.0, but move the Distortion up to 5.0:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple42.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-332\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple42.png?resize=640%2C548\" alt=\"\" width=\"640\" height=\"548\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple42.png?w=719 719w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple42.png?resize=300%2C257 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>And fully rendered:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple43.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-333\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple43.png?resize=640%2C561\" alt=\"\" width=\"640\" height=\"561\" \/><\/a><\/p>\n<p>That&#8217;s much more like this Maple board photo I took at the store:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/21460033_10155722365004772_226451275_o.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-334\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/21460033_10155722365004772_226451275_o.jpg?resize=495%2C677\" alt=\"\" width=\"495\" height=\"677\" \/><\/a><\/p>\n<p>I encourage you to play around with the three Noise parameters to get different effects. Remember that there are two of them, one affecting horizontal and one vertical, so try giving them different values to see what happens!<\/p>\n<p>Ok, one last thing we didn&#8217;t really talk about was the Displacement\/Bump mapping. Oak has the ring pattern made from the tubes running through it, so it often has noticeable lines even when sanded and finished. Maple, on the other hand, is very smooth. If you really want to, I&#8217;d add the Displacement from the output of the Rays, but multiply it by a very small value, such as .0001, to make it really subtle.<\/p>\n<p>That&#8217;s it! Our Maple is now complete! I hope you found it interesting to see how much of the Oak we were able to reuse, and how some simple tweaks gives a completely unique shader. Until next time, happy Blending!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re just joining, be sure to check out the other parts of this post or this won&#8217;t make sense: Part 1 Part 2 We left off in the last post with the Maple shader looking pretty good, but it&#8217;s not quite there. As I have been known to do, I went to the local&#8230;<\/p>\n","protected":false},"author":2,"featured_media":334,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[3],"tags":[4,8,11,14,15,16],"class_list":["post-320","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-blender","tag-cycles","tag-maple","tag-shaders","tag-tutorial","tag-wood"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/09\/oak2maple43.png?fit=716%2C628","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paMavh-5a","_links":{"self":[{"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":2,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":707,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts\/320\/revisions\/707"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/media\/334"}],"wp:attachment":[{"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}