Creating a Dirt Pass

Posted on: Nisan 6, 2010

I probably should have titled this “Adding the Grunge to your Ambient Occlusion Pass”, because that’s really what it is.  You now know how to create an ambient occlusion pass, so this is really just one more step.

I first start with a regular A&D shader and apply it to my scene.  In the diffuse node I applied an image that I created that looks like dirt, grunge, and scuffs.  You can scale the map by playing either with the scale in the map itself or by creating a UVW modifier to the scene.  I prefer the UVW modifier.  The reason I do this step first, is just to get the scale of the map looking right in my scene.

Then I create a mental ray material, and in the surface slot I add a mix map.  In the Mix Amount slot is where I add a Ambient/Reflective Occlusion map (I like to set my Max distance to 3′ usually).  Now that the AO map is in the Mix Amount slot, Color #1 and Color #2 are being rendered but controlled by the AO map…so you can now put anything in either of the color slots.

Because I wanted to render a grunge/dirt pass, I copied and paste/instanced my map that I created into the Color #1 slot of my Mix map.  Now you can apply the shader to your scene and render.

This shader will only render the image in the areas that are occluded or in close corner areas of geometry, and give the effect of dirt and scratches that are in these tight spots, much like real life.


Bir Cevap Yazın

Aşağıya bilgilerinizi girin veya oturum açmak için bir simgeye tıklayın: Logosu hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Google+ fotoğrafı

Google+ hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Twitter resmi

Twitter hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Facebook fotoğrafı

Facebook hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )


Connecting to %s


    • shopping: Have you ever thought about creating an ebook or guest authoring on other websites? I have a blog based upon on the same information you discuss and
    • seo: Hi, after reading this amazing article i am also delighted to share my know-how here with colleagues.
    • cracx.Com: It's very straightforward to find out any matter on net as compared to textbooks, as I found this post at this website.


    %d blogcu bunu beğendi: