{"id":315,"date":"2017-09-01T18:53:22","date_gmt":"2017-09-02T01:53:22","guid":{"rendered":"http:\/\/www.artifisizzler.com\/?p=315"},"modified":"2019-07-18T01:21:36","modified_gmt":"2019-07-18T01:21:36","slug":"procedural-wood-from-oak-to-maple-part-2-of-2","status":"publish","type":"post","link":"http:\/\/www.decscroll.com\/blog\/2017\/09\/01\/procedural-wood-from-oak-to-maple-part-2-of-2\/","title":{"rendered":"Procedural Wood: From Oak To Maple, Part 2"},"content":{"rendered":"<p><a href=\"http:\/\/www.decscroll.com\/?p=270\">Last time<\/a> we edited the scale of the wood. You might&#8217;ve noticed that in the Oak shader, the Y-coordinate was the same as X- and Z-, and now it&#8217;s 1. \u00a0That&#8217;s something I realized was a mistake before, because we didn&#8217;t really want to scale the shader along the Y-axis. \u00a0By making it 1, we&#8217;ll have more flexibility to adjust things. \u00a0For example, this made the tiny Ray flecks along the sides quite long.<\/p>\n<p>Speaking of the Rays, Maple is different than Red Oak. \u00a0Let&#8217;s adjust them to the look we want. \u00a0This is what we had for the Oak:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple015.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-291\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple015.png?resize=640%2C231\" alt=\"\" width=\"640\" height=\"231\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple015.png?resize=1024%2C370 1024w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple015.png?resize=300%2C108 300w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple015.png?resize=768%2C278 768w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple015.png?w=1217 1217w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>First, change the value of the Multiply node to .025.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple016.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-292\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple016.png?resize=471%2C351\" alt=\"\" width=\"471\" height=\"351\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple016.png?w=471 471w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple016.png?resize=300%2C224 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/a><\/p>\n<p>This adjusts the length of the Ray flecks along the sides of the wood:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple017.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-293\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple017.png?resize=430%2C518\" alt=\"\" width=\"430\" height=\"518\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple017.png?w=430 430w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple017.png?resize=249%2C300 249w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><\/a><\/p>\n<p>Also, there are more Rays in Maple than Oak, so let&#8217;s kick up the Scale of the Voronoi texture, which will make them thinner and more prevalent:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple018.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-294\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple018.png?resize=462%2C703\" alt=\"\" width=\"462\" height=\"703\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple018.png?w=462 462w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple018.png?resize=197%2C300 197w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple019.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-295\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple019.png?resize=348%2C670\" alt=\"\" width=\"348\" height=\"670\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple019.png?w=348 348w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple019.png?resize=156%2C300 156w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/a><\/p>\n<p>Also, shift the Color Ramp right value over to the right more, say .218, which makes more Rays visible (because we&#8217;re increasing the range of Colors from the Voronoi pattern that show up):<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple020.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-296\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple020.png?resize=416%2C738\" alt=\"\" width=\"416\" height=\"738\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple020.png?w=416 416w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple020.png?resize=169%2C300 169w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/a><\/p>\n<p>The Rays are way too dark for Maple, though, so swing over to the Ray Color node and let&#8217;s change it to F2C8BC:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple021.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-297\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple021.png?resize=292%2C340\" alt=\"\" width=\"292\" height=\"340\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple021.png?w=292 292w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple021.png?resize=258%2C300 258w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><\/a><\/p>\n<p>The base wood color is now looking pretty good, but the rings are way too dark, and still Oak-like:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple022.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-298\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple022.png?resize=536%2C520\" alt=\"\" width=\"536\" height=\"520\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple022.png?w=536 536w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple022.png?resize=300%2C291 300w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/a><\/p>\n<p>To fix the color, find the Summerwood Mix node, and change the color to\u00a0BD8E7B:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple022b.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-309\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple022b.png?resize=317%2C367\" alt=\"\" width=\"317\" height=\"367\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple022b.png?w=317 317w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple022b.png?resize=259%2C300 259w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/a><\/p>\n<p>Then, in the Rings group, change the Scale of both of the Noise Textures to 0.25:<\/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>Lastly, the Rings are still too thick. \u00a0In our reference they are very thin, so go to the Color Ramp in the Rings group, and slide the Left (black) slider over to .864:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple024.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-300\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple024.png?resize=466%2C413\" alt=\"\" width=\"466\" height=\"413\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple024.png?w=466 466w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple024.png?resize=300%2C266 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/a><\/p>\n<p>That&#8217;s looking good, but we&#8217;re not done. \u00a0<a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple025.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-301\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple025.png?resize=640%2C492\" alt=\"\" width=\"640\" height=\"492\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple025.png?w=855 855w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple025.png?resize=300%2C231 300w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple025.png?resize=768%2C590 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a>The rings are too uniform in color for my taste. \u00a0Let&#8217;s add a quick tweak to mix things up a bit. \u00a0 Add a MixRGB node between the ColorRamp and the Summerwood Mix node, but Connect the output of the new MixRGB node to the Fac of the Summerwood Mix node:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple026.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-302\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple026.png?resize=640%2C393\" alt=\"\" width=\"640\" height=\"393\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple026.png?w=864 864w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple026.png?resize=300%2C184 300w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple026.png?resize=768%2C472 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Then, go back to where the Power node feeds into the Modulo node and add a Voronoi node. \u00a0Remember that the Modulo node is what made the Rings repeat over and over. \u00a0Well, we don&#8217;t really want repetition, we just want the Voronoi pattern to follow the circular equation we wrote way back in the beginning&#8230;so pipe the output of the Power node into the Vector of the Voronoi. \u00a0Also set the Scale of the Voronoi to 0.5:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple027.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-303\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple027.png?resize=626%2C583\" alt=\"\" width=\"626\" height=\"583\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple027.png?w=626 626w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple027.png?resize=300%2C279 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><\/p>\n<p>If we rendered just that, you get this funky ring pattern in shades of gray.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple028.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-304\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple028.png?resize=640%2C523\" alt=\"\" width=\"640\" height=\"523\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple028.png?w=779 779w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple028.png?resize=300%2C245 300w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple028.png?resize=768%2C628 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>So, we can mix that with our existing Rings to get some random color variation. \u00a0Connect the output of the Voronoi node to the second input of the MixRGB we just created above:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple029b.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-311\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple029b.png?resize=640%2C448\" alt=\"\" width=\"640\" height=\"448\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple029b.png?w=797 797w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple029b.png?resize=300%2C210 300w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple029b.png?resize=768%2C538 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>&#8230;and now you have nice, variable ring colors:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple030.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-306\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple030.png?resize=640%2C655\" alt=\"\" width=\"640\" height=\"655\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple030.png?w=726 726w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple030.png?resize=293%2C300 293w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>EDIT: \u00a0There&#8217;s a bit more to do to complete this, so we&#8217;ll handle that in the<a href=\"http:\/\/www.decscroll.com\/?p=320\"> next post<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last time we edited the scale of the wood. You might&#8217;ve noticed that in the Oak shader, the Y-coordinate was the same as X- and Z-, and now it&#8217;s 1. \u00a0That&#8217;s something I realized was a mistake before, because we didn&#8217;t really want to scale the shader along the Y-axis. \u00a0By making it 1, we&#8217;ll&#8230;<\/p>\n","protected":false},"author":2,"featured_media":307,"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,13,15,16],"class_list":["post-315","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-blender","tag-cycles","tag-maple","tag-shader","tag-tutorial","tag-wood"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple031.png?fit=649%2C739","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paMavh-55","_links":{"self":[{"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts\/315","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=315"}],"version-history":[{"count":2,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts\/315\/revisions"}],"predecessor-version":[{"id":739,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts\/315\/revisions\/739"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/media\/307"}],"wp:attachment":[{"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/media?parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/categories?post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/tags?post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}