Adding a texture to a 3D model helps to create realistic representations. After all, we’re not living in a perfectly smooth world! In Blender, a very powerful and open-source modeling tool, there are a couple of different ways to create textures and use them to enhance the appearance of an object.
One way is through the use of image files and UV mapping, however, the results may vary. The texture will remain the same regardless of any geometric changes to the model, such as when increasing its size or deforming it, potentially creating an artificial look.
Another way texture can be added is through procedural textures, which are computer-generated using code built into the software. Procedural textures change programmatically, allowing for greater flexibility and control over the appearance even after changes to the model’s geometry. This allows for the creation of unique and complex textures that would be difficult to do with a static image alone.
There are a number of different procedural textures, however, all can be created and controlled through the use of what is referred to in Blender as “nodes“. So to get started, let’s learn about what nodes are and the different types of nodes that can be used to create textures.
A node is a visual representation of a mathematical function. If you can imagine, the surface of your material can be represented by a set of data. A node takes this data set and applies a certain mathematical operation. The data that makes up your object’s surface is now changed, and this is visually reflected in your model. Multiple nodes can be connected, with one output going directly to the input of another. It’s this arrangement of nodes in Blender that creates complex visual effects.
There are several types of procedural texture nodes in Blender. The main ones are the following:
Using one or a combination of these different textures, users have nearly boundless options when it comes to recreating whatever kind of material they have in mind.
In this guide, we’ll demonstrate how to apply procedural textures to create a realistic-looking pretzel in Blender. Let’s get into it!
In this guide, we’ll focus on applying textures, so we’ll import a ready-made model found on Thingiverse. This pretzel model was created by the user MTB3D, who modeled it for decoration purposes for Oktoberfest. However, you’re free to start from your own model or pick another one from the several 3D model repositories online.
If you choose a ready-made model, import it into Blender by simply navigating to “File > Import > Stl (.stl)”, then selecting the desired file. You should then see the model show up in the viewport.
Next, let’s set up the workspace so that the Node Editor is visible. Navigate to the “Shading” tab in Blender, which is located in the topmost bar of your screen. Once you’ve clicked the tab, you should see the Node Editor at the bottom half of your screen. This is where all the node action will take place.
Lastly, let’s create a new material we’ll manipulate to create a realistic texture for our pretzel. Select the object, then go to the “Materials Properties” tab on Properties Editor. The editor is on the right side of your screen, and the tab you’re looking for is second symbol from the bottom. If the list of materials in the tab is emply, click “New” to add a new material for the pretzel object.
Now, we’re ready to create procedural textures for this model!
You should already have the Principled BSDF node in your Node Editor panel by default. This node is the starting point for the color and texture of the object. It’s a versatile shader node that can create a wide range of materials with accurate lighting and shading properties.
You’ll also notice that the node’s “BSDF” output (right side) is connected to the “Surface” input (left side) of a smaller Material Output node. This node will apply all of the changes to the surface of your object.
These nodes don’t create textures themselves, but we can use them to establish the color of our object:
In the Principled BSDF node, we’ll adjust some options to create your desired color:
Optionally, you can also adjust other values in Principled BSDF, such as “Sheen Tint”, “Clearcoat”, and “Subsurface” to give the pretzel a shiny appearance.
Clearly, one can only get so far in the creation of a realistic texture by just adjusting the surface properties. Let’s add more nodes!
Now it’s time to apply procedural texture nodes to create an interesting color pattern to the model. We’ll be adding a few new nodes, and the easiest way to do that is to use the search bar in the Add menu:
With that shortcut out of the way, let’s add ColorRamp, Musgrave Texture, and Texture Coordinate nodes:
You should now see a randomized speckle pattern on your pretzel! Play around in the Musgrave Texture node – particularly with the “Scale” toggle – to adjust the pattern to your liking.
Great, we have the color down, but the surface of our object is still artificially smooth. We’ll fix that next.
To add further detail to the pretzel model, we’ll add noise to the model’s surface. This effect can take your model from looking like a perfectly smooth, computer-generated object to a realistic-looking snack!
Here are the steps:
This may be enough texture for many objects, but let’s take it one step further.
As a final step, we’ll create surface cracks on the model by using the Voronoi pattern as a displacement map. This pattern is actually a mathematical tool that partitions a plane using a defined set of rules. In our case, we’ll use it to generate a random cracked effect.
And now you should have a delicious-looking pretzel! Remember, this is just a starting point, you may want to add next some salt or chocolate to the pretzel to really make it your own! You could even take it a step further and combine Blender with Substance Painter (or a Substance Painter alternative) to create very realistic textures.
Bon appétit!
License: The text of "Blender: Procedural Texturing – Simply Explained" by All3DP is licensed under a Creative Commons Attribution 4.0 International License.