|
| |
Brazil r/s Tutorials Brazil
1.x
Multi-level
Toon
In
this installment we will look at the workings
of Brazil's Toon Material. The first thing
we will do is get you to create a simple multi-level
paint material. Let's begin.
|
1. Create the toon ball. |
|
To demonstrate how to use the options of the
toon material, we are going to create a ball
from a sphere, and we will apply a map to
that sphere. The map that we use will inherit
the properties of the cel shader. In your
front viewport, we need to create a
sphere as shown in the image below. |
|
2. Create base toon material. |
|
We won't go into detail making the ball any
more complex than that. Now we are going to
create the base for our material. Open up
your material editor and click the material
button so that the Material/Map Browser opens.
We want to create a new Brazil Toon
Material which we will use on our ball. |
|
3. Assign bitmap to material. |
|
Now that we have our material in one of the
available slots, we will start to build the
underlying shading for this material. We are
going to apply a bitmap to our ball so that
it will have a design. The first thing
we need to check is that the type of
shading we want for the toon material.
There are three shading options: Multilevel
Paint, Gooch, and Material Pass-through.
We want to make a traditional cel-shading
material, so we will use the Multilevel
Paint option. Now that we have made sure
that we have the shading model we want,
we will apply our bitmap to the material.
If we choose the map slot for the lit
properties, as highlighted below, we
will add the bitmap to our material. |
|
4. Choose Bitmap map type. |
|
Now we want to select the Bitmap and select
OK.
When the dialog window shows up, go
to the directory where this tutorial
is located, and select the file "ballDiffuse01.jpg"
and select OK. Your Material preview
should look like the image below at this
point.
|
|
5. Assign material to ball. |
|
Now we will apply our material to the ball.
Make sure you have the sphere selected and
use the "Assign Material to Selection" button. |
|
6. Assign correct mapping. |
|
The sphere should look similar to the image
below. We still need to check that our mapping
is set up correctly. |
|
The next thing we want to do is to make sure
that our mapping is correctly placed on the
ball. Check the "Show Map In Viewport" button
as highlighted below. |
|
The viewport should now look like the image
below. This is not the look we really would
want for our ball, so we should apply mapping
coordinates to our sphere. |
|
Open the modifier panel and select the modifier
list. Apply a UVW Map to the sphere. The default
setting should be 'planar', which will cause
the ball to look like the image below.
This is much better suited for our cartoon
ball. |
|
7. Create lighting for test renders. |
|
Now that we are sure that the mapping is set
up correctly, we can test render our ball
to see how it looks. We won't change any of
the default settings of the toon material
just yet, but we do need to add some lighting
so that we can best see the effects of
the material. We will add a single omni
light source to our scene, as pictured
below. Set the light as close as you
can to the position of one in the image
below. |
|
8. Test render our ball. |
|
Now we can make a test render of our ball.
The only thing left to do is to set Brazil
as your current renderer. In Max 3, go to
Customize > Preferences > Rendering
> Current Renderer > Assign and choose
Brazil. In R4, go to Rendering > Render,
go to the "Current Renderer" rollout
and assign the Brazil Renderer. After
you have Brazil set as your current renderer,
find the "Brazil: Image Sampling" rollout
and increase the Min Samples and Max
Samples under the Image Sampling Control
to 1 and 2 respectively. Now if you
were to hit the Render button, you should
get a result similar to the image below. |
|
9. Toon options explained. |
|
Now we will investigate what some of the different
options of the Toon Material do to your image.
In the image below, you should see what your
material settings look like right now. |
|
10. Adjusting the shading amount. |
|
If you will notice, the Lit and Shaded parameters
are locked, so lit areas and shaded areas
will use the same base color or map when rendering.
If you wanted to have a different color
or map for your shadows, you can unlock
this parameter and manually adjust the
shading. If you look at the image below,
you will notice that the number value
below the shaded color picker has changed
from 70 to 30. This value represents
how much shading occurs over the base
color. Values range from 0 to 100, with
0 being completely black, and 100 being the
same as the lit color/map. |
|
If you render with this setting changed, your
image should look similar to the one below.
Notice the shadows have darkened because we
lowered the value closer to zero. |
|
11. Adjusting the shading levels. |
|
In the settings below, the shading has been
reset to the default value of 70, but you
should note that the Paint Levels value has
been increased from 2 to 3. This setting determines
the number of shading levels that the
material will use, going from Lit color
to the Shaded color. In our previous
renders, we had two Paint Levels, and
thusly there were two shades used in
the render-Lit and Shaded. |
|
If you change the Paint Levels to three and
render, you will introduce a middle shade
between the Lit and the Shaded areas. The
output of this should look similar to the
image below. Notice there are three distinct
levels of shading. |
|
12. Adjusting the inking parameters. |
|
In the image below, the default values have
been set, with Paint Levels at 2, and the
Shading amount set back to 70. Now you are
able to see the inking of the material a little
bit easier. Now we can look at some of
the parameters used to modify the inking
of the material. In the image you can
see the default ink parameters, with
the exception of the Ink Width Min value,
which has been set to 1. |
|
Normally the default value for the Min Ink
Width would be 2.5, which we can see below.
The Ink Color has also been changed to a navy
color. |
|
In the last image, the Ink Color was changed,
but it wasn't very noticeable since the navy
is very similar to black. In the following
image, the Color has been adjusted to a bright
green so that the ink color change is
very visible. |
|
13. Creative use of the ink settings. |
|
These settings for the ink are pretty simple
and straightforward, but if you get creative
you can make some interesting effects with
the inking. The main area you would want to
focus on adjusting is the Ink Width map
that is assigned. We are going to create
an effect that looks a little bit like
hatching that you could do with a drawing
to create shading. First we need to
adjust some of the parameters for our
ink. Change the Min and Max values of
the Ink Width to 1 and 60 respectively,
and then select the map slot for the Ink Width.
You want to assign a Shadow Light map to this
slot. The Ink Parameters should look like
the image below after you have done all this. |
|
After you assign the Shadow Light map to the
Ink Width slot, you will be in the Shadow
Light's parameters. The reason we are using
the shadow light material here is that we
want to mask off the areas that are in shadow,
and to use those areas to apply our shading.
We assigned a very large Max value to
our Ink so that the shadow area, which
is large, can make the ink grow to look
like it is part of the shading. This
will become more evident near the end
of this setup.
You will want to adjust the values
in your Transition Curve to reflect
the values in the image below. These
values were selected through trial and
error, and they just happen to be what
looked decent for this tutorial. The
main thing you should be concerned about
is the assigning of a Bricks map in the Dark
slot. We want to have a hatching effect, so
we are always operating on the shaded part
of the map. You can always come back and adjust
the values of the transition curve to
fine tune the way the hatching looks. |
|
The Bricks map is where the main hatching
effect will come from. You can assign a standard
Stack Bond Pattern Setup with white bricks
and black mortar where you stretch out the
U coordinates so that it is only horizontal
lines, and your output will have horizontal
hatching. If you adjust the W angle,
you can get the lines to slash across
the ball, so it is more like a drawing
you would make. Your image might look
similar to the one below if you were
to render it now. |
|
That image is fairly nice, but the hatching
is plain, and pretty dirty. There's no element
of noise that you would find in a drawing.
In order to combat this cleanliness, we can
apply a map to the mortar so that we get
a nice noisy effect. We can also remove
the stretch we had on the U tiling. We
now want a grid pattern that we can work
with, and we want to be able to make
that patter have a nice noise on it.
To do this, adjust your parameters in
your Bricks map to the values shown below,
and then apply the Cellular map in the
Mortar Texture slot. |
|
In the Cellular map, you want to have a medium
amount of variation between the Cell Color
and the Division Colors. In this example,
a mid-grey for the Cell and black for both
Division Colors. You also want to make sure
that the Fractal check box is selected
to add noise. Decrease the Size of the
Cells to a small value such as 1 so that
the hatch marks will be very close. |
|
Now if you were to render this on an object,
you would see something similar to the image
below. The key to getting a nice result is
in modifying these basic parameters in the
maps to get the right size of the hatching,
along with the right amount of noise. |
|
|
|
|
|