'3D Studio MAX'

.
"Vertex paint in procedural materials" by Radoslav Zilinský



Hi, I'm Radoslav Zilinsky from Slovakia and i'm going to explain you the method of blending procedural materials with vertex paint modifier that is located in max from version 6, so even though I use 3dsmax 7, you wont have any problems with 6.

Procedural materials are very powerful and combination with vertex paint are even more. This tutorial will be just about procedurals, so im not gonna use a single bitmap in it. I don't want to tell you that procedurals are better than bitmaps. Both have its own advantages and disadvantages, but i think what the combination of both is the best solution. But this tutorial is about something else.

So, what we are going to do? We are going to make some procedural materials and, what is important, tell them where they should be located on our object with vertex paint. In fact, we will paint on specific locations on object, where we want to have specific type of procedural.

One disadvantage, when you are using vertex paint for this, is that you should have quite dens mesh when you want to paint on object with vertex paint, because it shades faces and if you would have for example a plane with two faces and you would want to paint just in the corner of this plane, it wont be able, because the faces are too big and you will not have a color just in the corner, but a gradient from corner something to the middle of this plane. But this is not very dramatic, and in most cases you will have mesh that is dens enough. Just try it for yourself and you will see.

First, i want to show you my teapot that i made for this tutorial, and that im going to work with.



Now, we are going to make two base procedural materials that will blend together, exactly how we paint on object. We will paint on object just black and white, where black will represent first material and white will represent the second.

So here are the first two material



The material nr.1 is just a mix of super noise and watercell map (assign this two maps to a mix map and put this mix map to a diffuse slot of a material).
Material nr.2 just have a two level super noise map(it means that it has another super noise map inside super noise map, assigned to one color) in diffuse slot. And this materials have also bump maps of course. Super noise map is more complex and better than normal noise map that comes with max.

If you don't have super noise a watercell map you should download it below


supernoise map
watercell map

Now we are gonna paint our object B/W so black will represent material nr.1 and white will represent material nr.2 as I mentioned earlier.
So first apply a vertex paint modifier to object(marked as 5 on the next picture).Set VERTEX COLOR DISPLAY – UNSHADED(marked as 1 on next picture) to see how you paint, set CHANNEL to Map channel 3(marked as number 2 on next picture)





3DTotal Advertisement - We need your support!





I'm not going to explain you how to paint with vertex paint. All the buttons are well explained in user reference. But there is one important thing that I should mention. When you assign a vertex paint modifier, there's no vertex color on object by default. So it seams like it has white color, but it doesn't. So first thing you should do, is to make the whole object white. Do this by setting a color(marked 5 on the picture) to 254, 254, 254(not to 255 255 255, because it will not work) and press the can button(marked 3 on picture). Now you have white object and you can start to paint with black color - just change opacity and size(marked 4 on picture) of brush during painting. On previous picture, you see like I painted my object.

Now, we want to blend our two materials, like the vertex colors are our object. To do this, make a blend material, assign material nr.1 to first slot, material nr.2 to second. Put the gradient ramp map to mask slot of blend material and change its map channel to 3, like we have in vertex paint modifier(we are putting gradient ramp because you can better control this map, like simple gradient). In fact this gradient ramp represent the transition between this two materials. Do a render and you should have nice blend of 2 materials on object like me on the next picture.



Page 1


3D Total Homepage