<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>stochasticity &#187; Layer Shader</title>
	<atom:link href="http://stochasticity.cdawson.tv/tag/layer-shader/feed/" rel="self" type="application/rss+xml" />
	<link>http://stochasticity.cdawson.tv</link>
	<description></description>
	<lastBuildDate>Fri, 19 Nov 2010 14:47:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Introduction to the Layer Shader</title>
		<link>http://stochasticity.cdawson.tv/introduction-to-the-layer-shader/</link>
		<comments>http://stochasticity.cdawson.tv/introduction-to-the-layer-shader/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 09:07:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[C4d]]></category>
		<category><![CDATA[Layer Shader]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Shaders]]></category>
		<category><![CDATA[Texturing]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://stochasticity.cdawson.tv/?p=66</guid>
		<description><![CDATA[Let’s take a look a the layer shader.  It is one of the more powerful shaders in the C4D shader arsenal.  It basically works very similarly to the layers palette in Photoshop and the layered timeline in After Effects, so most of this will be familiar to a lot of you.  Let’s dive in. We’re [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/00-LayerShaderExample.gif" alt="" width="504" height="498" /></p>
<p>Let’s take a look a the <em>layer shader</em>.  It is one of the more powerful shaders in the C4D shader arsenal.  It basically works very similarly to the <em>layers palette </em> in <em>Photoshop</em> and the <em>layered timeline</em> in <em>After Effects</em>, so most of this will be familiar to a lot of you.  Let’s dive in.<span id="more-66"></span></p>
<p><a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/01-NoiseLayer.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/01-NoiseLayer.png" alt="" width="500" height="262" /></a></p>
<p>We’re going to start our shader by layering up a few pieces of <em>noise</em>.  (A <a href="http://www.neilblevins.com/cg_education/complex_shaders_proc/complex_shaders_proc.htm" target="_blank">good piece of reading on this in 3Dmax</a> is written by Neil Blevins.)  We’ll start with a <em>noise</em> of type <em>Gaseous</em>, and crank up the <em>global scale</em> a bit to give some nice subtle tonal change across the whole material. (This <a href="http://www.cybergooch.com/pages/c4d/noise/c4d_noise.htm" target="_blank">texture reference of C4D noise</a> is really useful when choosing noise types.)</p>
<p><a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/02-AddLayerShader.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/02-AddLayerShader.png" alt="" width="416" height="382" /></a></p>
<p>Now stay in the <em>attribute manager</em> and add the <em>layer shader</em>.  The <em>noise</em> we just added will be moved inside the <em>Layer Shader</em> as it’s first layer.</p>
<p><a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/03-SecondNoise.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/03-SecondNoise.png" alt="" width="413" height="266" /></a></p>
<p>After we step inside the <em>Layer Shader</em> by clicking on the shader name in the <em>attribute panel</em>, let’s add another layer of <em>noise</em>.  I will give this a different <em>noise type</em>, and leave it’s <em>global scale</em> at 100%.</p>
<p><a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/04-Overlay.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/04-Overlay.png" alt="" width="499" height="202" /></a></p>
<p>We’ll change the <em>transfer mode</em> of our new layer of <em>noise</em> to an <em>overlay transfer mode</em> and take the <em>transparency</em> down low enough so the <em>noise</em> is subtle.  (Remember, less is more!)</p>
<p><a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/05-DirtNoise.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/05-DirtNoise.png" alt="" width="512" height="207" /></a></p>
<p>Next we’ll add another layer of <em>noise</em> with a very small <em>global scale</em> and <em>clipping values</em> so it is mostly white with little specks of black.  Set the <em>Layer Mode</em> to <em>multiply</em> and now we have some small specks of dirt on our nice layered noise.</p>
<p><a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/06-Fresnel.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/06-Fresnel.png" alt="" width="493" height="227" /></a></p>
<p><em>Noise</em> isn’t the only thing you can use to layer up!  I’ve chosen a <em>fresnel shader</em> here, but you can add any <em>gradients</em>, <em>images</em> or anything else you want.</p>
<blockquote><p><em><strong>I always recommend using at least 3 layers of noise any time you need to get in close to an object.  When objects are small on screen, you can get away with one layer of noise. However, if your camera gets anywhere close in, the viewer with totally notice the pattern in the noise, so layer up good if you want it to look good!  “Fractal Noise” is, after all, a fractal, which is just a fancy word for “repeating pattern”.</strong></em></p></blockquote>
<p><a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/07-Colorize.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/07-Colorize.png" alt="" width="412" height="364" /></a><br />
Another option for modifying your <em>layer shader</em> are <em>effects</em>.  You can perform all kinds of “Photoshop-like” adjustments.  Adding an <em>effect layer</em> is just like adding an <em>adjustment layer</em> in <em>AE</em>.  It applies an effect to the combination of ALL of the layers below it.  One particularly useful effect is <em>colorize</em>.<br />
<a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/08-ColorizeSettings.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/08-ColorizeSettings.png" alt="" width="412" height="366" /></a><br />
<em>Colorize</em> works similarly to the <em>Colorama</em> effect in <em>AE</em> (a favorite of mine).  With some modifications to a basic <em>gradient</em>, you get some very good effects.</p>
<p style="text-align: center;">Here is the break&#8217;down&#8217; of our layering &#8216;up&#8217;…<br />
<a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/Compare.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/Compare.png" alt="" width="728" height="200" /></a></p>
<p>So there is our finished <em>layer shader</em> in the <em>color channel</em>.  <em>Copy</em> and <em>Paste</em> the <em>layer shader</em> into other <em>channels</em> in your <em>material</em> (like <em>diffusion</em>, <em>bump</em>, <em>reflection</em>, etc.) and with some minor tweaks to each, you end up with a really rich, detailed and organic material that looks great up close.<br />
<a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/finalpic.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/finalpic.png" alt="" width="417" height="107" /></a><br />
<a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/finalpic-CU.png"><img class="aligncenter" src="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/finalpic-CU.png" alt="" width="320" height="240" /></a></p>
<blockquote><p><strong>I hope this was helpful.  It’s just the beginning of what you can accomplish with the layer shader.  If you have any questions about this tutorial, something you think I should add, or a request for a tutorial, please contact me through the comments forms.<br />
Good luck and happy texturing!</strong></p>
<p style="text-align: right;"><a href="http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/finalpic.png&quot;&gt;&lt;img class=&quot;aligncenter&quot; src=&quot;http://stochasticity.cdawson.tv/wp-content/uploads/2009/09/LayerShaderIntro.pdf" target="_blank">PDF Tutorial</a></p>
</blockquote>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://stochasticity.cdawson.tv/introduction-to-the-layer-shader/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

