{"id":270,"date":"2017-08-30T19:15:17","date_gmt":"2017-08-31T02:15:17","guid":{"rendered":"http:\/\/www.artifisizzler.com\/?p=270"},"modified":"2019-03-11T01:39:54","modified_gmt":"2019-03-11T01:39:54","slug":"procedural-wood-from-oak-to-maple-part-1","status":"publish","type":"post","link":"http:\/\/www.decscroll.com\/blog\/2017\/08\/30\/procedural-wood-from-oak-to-maple-part-1\/","title":{"rendered":"Procedural Wood: From Oak to Maple, Part 1"},"content":{"rendered":"<p>I wanted to show an example of a wood that is popularly used, but has different characteristics than Red Oak. \u00a0I decided on Maple as I&#8217;ve worked on a Maple shader before and it&#8217;s different enough, yet there are enough similarities that the Oak shader is helpful. \u00a0I was going to start at an earlier point, but unfortunately due to the way I wrote the parts of the Oak tutorial, it&#8217;s much much easier to start from the finished Oak shader. \u00a0 If you didn&#8217;t follow it, I&#8217;d suggest going through the tutorial for the educational value, but you can always download the Oak shader from blendswap <a href=\"https:\/\/www.blendswap.com\/blends\/view\/84699\">here.<\/a><\/p>\n<p>First of all, let&#8217;s see what we&#8217;re dealing with. \u00a0Remember the Red Oak end grain looks like this close up:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2016\/04\/red-oak-endgrain-zoom.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-37\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2016\/04\/red-oak-endgrain-zoom.jpg?resize=600%2C600\" alt=\"\" width=\"600\" height=\"600\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2016\/04\/red-oak-endgrain-zoom.jpg?w=600 600w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2016\/04\/red-oak-endgrain-zoom.jpg?resize=150%2C150 150w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2016\/04\/red-oak-endgrain-zoom.jpg?resize=300%2C300 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Maple, on the other hand, looks like THIS close up:<a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/hard-maple-endgrain-zoom.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-272\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/hard-maple-endgrain-zoom.jpg?resize=600%2C600\" alt=\"\" width=\"600\" height=\"600\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/hard-maple-endgrain-zoom.jpg?w=600 600w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/hard-maple-endgrain-zoom.jpg?resize=150%2C150 150w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/hard-maple-endgrain-zoom.jpg?resize=300%2C300 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Notice that the rings aren&#8217;t made up of big holes, but are rather thin lines with some darkness around them. \u00a0There are still rays all over it (the vertical lines) but they are a lot closer together. \u00a0Also note that the entire surface is covered with tiny holes, and the overall pattern isn&#8217;t as complex, so we can remove some of the complexity of the Oak shader.<\/p>\n<p>So let&#8217;s do it. \u00a0Switch the connection of &#8220;Vessel Color&#8221; from the bottom connection of the Mix node to the top:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple002.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-278\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple002.png?resize=640%2C512\" alt=\"\" width=\"640\" height=\"512\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple002.png?w=745 745w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple002.png?resize=300%2C240 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Then, connect the output of the Rings Color Ramp to the Fac of the Mix Node:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple003.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-279\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple003.png?resize=640%2C457\" alt=\"\" width=\"640\" height=\"457\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple003.png?w=715 715w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple003.png?resize=300%2C214 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>This cuts the Summerwood part out:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple004.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-280\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple004.png?resize=640%2C529\" alt=\"\" width=\"640\" height=\"529\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple004.png?w=684 684w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple004.png?resize=300%2C248 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Our rings are still made of the holes, and if you recall from the Oak shader, we did some fancy stuff with the Grain section to get those. \u00a0 We won&#8217;t need that, so let&#8217;s delete it. \u00a0Go to the Grain section, and delete the Divide, Mix, and Subtract nodes:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple005.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-281\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple005.png?resize=640%2C312\" alt=\"\" width=\"640\" height=\"312\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple005.png?w=998 998w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple005.png?resize=300%2C146 300w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple005.png?resize=768%2C374 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Now connect the Voronoi output directly to the Power node, and the output of the Power node to the Vessel Color \u00a0input:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple006.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-282\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple006.png?resize=640%2C285\" alt=\"\" width=\"640\" height=\"285\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple006.png?w=902 902w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple006.png?resize=300%2C133 300w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple006.png?resize=768%2C341 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>This is looking more like the reference already, but we have a little way to go.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple007.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-283\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple007.png?resize=584%2C604\" alt=\"\" width=\"584\" height=\"604\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple007.png?w=584 584w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple007.png?resize=290%2C300 290w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>Note that the light colored holes are really tightly bunched together. \u00a0This is because the Color Ramp is covering the whole range of the Voronoi output, and also if you remember, the Power node controls how dense the grain is. \u00a0To get something more like the Maple pattern, let&#8217;s crank that right-hand value of the Color Ramp way down, like 0.55, which has the effect of reducing the size of the holes:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple008.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-284\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple008.png?resize=452%2C358\" alt=\"\" width=\"452\" height=\"358\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple008.png?w=452 452w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple008.png?resize=300%2C238 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/a><\/p>\n<p>Also change the gradient type of the Color Ramp to Constant, which makes theholes have hard edges instead of soft. \u00a0So now it looks like this, which is much more like the reference:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple009.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-285\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple009.png?resize=469%2C528\" alt=\"\" width=\"469\" height=\"528\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple009.png?w=469 469w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple009.png?resize=266%2C300 266w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/a><\/p>\n<p>The colors are terrible, however, so let&#8217;s make at least this part a bit more like Maple. \u00a0Change the left color of the ramp to FFE2CA, and the right color to\u00a0E6C4AC:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple010.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-286\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple010.png?resize=438%2C366\" alt=\"\" width=\"438\" height=\"366\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple010.png?w=438 438w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple010.png?resize=300%2C251 300w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/a><\/p>\n<p>The colors seem subtle, but they&#8217;re enough to make the holes stand out a little:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple011.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-287\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple011.png?resize=597%2C502\" alt=\"\" width=\"597\" height=\"502\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple011.png?w=597 597w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple011.png?resize=300%2C252 300w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/a><\/p>\n<p>You can go ahead and delete the entire Summerwood section now because we won&#8217;t need it:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple012.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-288\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple012.png?resize=640%2C227\" alt=\"\" width=\"640\" height=\"227\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple012.png?resize=1024%2C364 1024w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple012.png?resize=300%2C107 300w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple012.png?resize=768%2C273 768w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple012.png?w=1081 1081w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Ok, another thing you may have noticed in the references above is that Maple has tighter rings. \u00a0Go back to the main Mapping node, and change the scale to &lt;180, 1, 180&gt;:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple013.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-289\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple013.png?resize=564%2C504\" alt=\"\" width=\"564\" height=\"504\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple013.png?w=564 564w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple013.png?resize=300%2C268 300w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/a><\/p>\n<p>Scaling it larger makes more rings fit into the same space. At this point, your wood should look like this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple014.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-290\" src=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple014.png?resize=640%2C520\" alt=\"\" width=\"640\" height=\"520\" srcset=\"https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple014.png?w=766 766w, https:\/\/i0.wp.com\/www.decscroll.com\/blog\/wp-content\/uploads\/2017\/08\/oak2maple014.png?resize=300%2C244 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>We still have to work on the rays and the rings, so let&#8217;s stop here for now and next time we&#8217;ll finish it out! See you soon!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to show an example of a wood that is popularly used, but has different characteristics than Red Oak. \u00a0I decided on Maple as I&#8217;ve worked on a Maple shader before and it&#8217;s different enough, yet there are enough similarities that the Oak shader is helpful. \u00a0I was going to start at an earlier&#8230;<\/p>\n","protected":false},"author":2,"featured_media":290,"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-270","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\/oak2maple014.png?fit=766%2C622","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paMavh-4m","_links":{"self":[{"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts\/270","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=270"}],"version-history":[{"count":1,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":629,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/posts\/270\/revisions\/629"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/media\/290"}],"wp:attachment":[{"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.decscroll.com\/blog\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}