Graphics Programs Reference
In-Depth Information
Creating
a
rock
material
using
procedural textures
In this recipe, we will create a rock material using procedural textures. We will create
something similar to the following:
Getting ready
Open the
1301OS_03_start.blend
file and set the
Camera
view to the
Rendered
mode.
How to do it...
Now, this is how we are going to create the rock material:
1. Select the spheroid (the subdivided cube) and click on
New
in the
Material
window under the
Properties
panel or in the
Node Editor
header. Re-
name the material as
Rock_procedural_01
.
2. Add a
Voronoi
texture, a
Musgrave
texture, and a
Noise
texture (press
Shift
+
A
and navigate to
Texture
) in the
Node Editor
window. Press
Shift
+
D
to duplicate the
Voronoi
texture and adjust them in a column.
3. Add
Texture Coordinate
(press
Shift
+
A
and go to
Input
|
Texture
Coordinate
) and a
Mapping
node (press
Shift
+
A
and go to
Vector
|
Mapping
). Connect the
Object
output of the
Texture Coordinate
node to
the
Vector
blue input of the
Mapping
node. Now, connect the
Mapping
node's
Vector
output to the
Vector
input sockets of the four texture nodes.
4. Add a
Mix
node (press
Shift
+
A
and go to
Color
|
Mix
) and connect the
first two
Voronoi
and
Fac
outputs to the
Color1
and
Color2
inputs of the
Mix
node. Set the
Mix
node
Blend Type
to
Screen
and set the
Fac
value
to
1.00
.