Products › BaseNode Packs › Material Layers › Tutorial: Rover hull

Rover hull

A rover parked in a stony desert, its orange paint worn to bare metal on every edge, its panels lined with seams, dust drifted on top, oily grime splashed up by the wheels, fine scratches all over. Its hull has no UV map: every texture is projected, and every layer is stacked in the material, a few lines at a time.

An orange six-wheeled rover in a stony desert at golden hour, its edges chipped to bright metal, panel seams on its walls, beige dust on its deck and fenders, dark oily grime on its nose above the wheels
Where we are going. Seven steps, each one a few lines more.

You will learn

This page goes faster on the basics than Lunar ground, which starts from a flat square: a noise, a shader group, a material. Read it first if those are new to you.

Before you start

You need Blender 5, the Base Node add-on, and the Material Layers pack, sold by the author of Base Node apart from the open source project: it carries the two modules this tutorial assembles. The steps below are free to read, copy and change; the modules they use are not.

ModuleKindWhat it gives
material_layersshaderA layer as one bundle of PBR channels (base color, metallic, roughness, normal, height, emission, coat); stacking by mask (layer_mix), by height (layer_height_blend), by blend mode per channel (layer_blend), a detail layer (layer_detail); normals combined by reoriented or whiteout normal mapping; layer_bsdf at the end.
projectionsshaderTextures without UVs: triplanar and box_map of a texture given as a closure, triplanar_normal for normal maps, detail_coords for a texture tiled at another scale.

Every block below is a complete .bn file, its code beside the nodes it builds. Two ways to try a step:

Render with Cycles: the edge mask of step 3 comes from the Bevel node, which EEVEE does not have. The pictures are rendered from these exact files by render.py, which adds the desert, the rocks and the wheels around the hull, bevels its edges a little, and gives it hatches, a solar panel, an antenna dish and two camera lenses: the painted parts take the step's own material, and none has a UV map either.

A stack of layers

A texture painter paints a material in layers: a base, then a layer over it where a mask says, then another. Each layer is a whole material, its colour, its roughness, its metal, its relief, and a mask lays all of them at once.

material_layers does the same in a shader. layer(…) packs the channels of one material into one value; each stacking graph takes two layers and a mask and gives one; layer_bsdf turns the last one into a Principled BSDF. A step of the stack is one call, its mask written once for every channel.

1. One layer of paint

The hull is a few boxes: a body whose nose slopes back, two fenders, a deck, a mast and its head. None of them has a UV map, and none will need one. The material is one layer, painted metal.

step1_paint.bn: hull_paint, HullPaint, rover_hull

A plain orange rover on six treaded wheels in a desert at golden hour, seen from afar
Step 1. Paint, and nothing else: plastic, for now. The next pictures come closer, on the corner of the nose.

2. A texture without UVs

Paint is never even: it is darker where it is thick, glossier where it was wiped. A texture gives that; to read a 2D texture, an image, the surface needs coordinates. triplanar reads it three times, along x, y and z, and mixes the three by how much the surface faces each axis.

step2_triplanar.bn: hull_paint

The orange hull, its paint now uneven, glossy and matte in smears
Step 2. Smears of gloss and tone, on every face, with no UV map.

3. Bare metal on the edges

Paint wears off where things knock: the edges. A second layer, bare metal, goes over the paint where a mask finds them.

step3_edges.bn: hull_paint

The orange hull with chipped bright metal along its edges
Step 3. Bare metal along every edge, in chips.

4. A normal map without UVs

Panels: seams every 40 cm, pressed into the paint. They are relief, not colour, so they come as a normal map, projected like the texture of step 2.

step4_panels.bn: hull_paint, seam

The worn orange hull with a grid of panel seams on its walls and deck
Step 4. Seams on every face, lit as grooves.

5. Dust stacked by height

Dust does not fall as a mask: it fills what is low first and leaves what stands high. Each layer now has a height, and layer_height_blend shows the top one where it stands higher than the bottom one.

step5_dust.bn: hull_paint

The worn hull with ochre dust drifted on its deck, fenders and nose
Step 5. Dust on what faces up, first in the chips and the seams.

6. Blend modes per channel

Grime splashed up by the wheels: it darkens the paint without hiding its colour, and it is oily, glossier than the paint under it. A mix cannot say that; blend modes can, one per channel.

step6_grime.bn: hull_paint

The dusty hull, darker and glossy along its lower part above the wheels
Step 6. Grime along the lower body, dark and glossy.

7. A detail layer at another scale

Last, fine scratches over everything: a detail layer, as game engines put on top of a material, read from a texture much finer than the others.

step7_detail.bn: hull_paint

Close to the nose of the rover: worn edges, panel seams, fine scratches in the highlights, dust on top, grime above the wheels
Step 7, close to the nose: the scratches show in the highlights.

The knobs

Every input of hull_paint is on its node in the material; the calls inside it have theirs, in the Shader Editor.

WhereInputWhat it does
hull_paintpaint, metal, dust_color, grimeThe colour of each layer.
hull_paintwear, dust, splash, detailHow much of each layer shows.
BevelradiusHow wide the edges are, for the wear and for the light.
triplanar, triplanar_normalscale, sharpness, spaceHow large the texture, how narrow the blend between axes, stuck to the object or to the world.
layer_height_blendcontrastSoft or sharp rims of dust.
layer_blend…_modeNormal, Multiply, Screen, Overlay, Add, Subtract, for each channel apart.
detail_coordsscale, rotationHow much finer the detail, and how far turned.

Try: on step 7, set base_color_mode of the grime to Screen: dried mud, pale, instead of oil. Set space of the triplanar calls to World, move the rover: the textures slide over it.

To paint your own model, give it HullPaint: nothing here needs its UVs. Keep the textures stuck to it with space: Object, and mind its scale: the seams are 40 cm apart in its own units.

Take it to Blender

The finished hull, in one file. Drag the card onto empty space in Blender's 3D Viewport and keep Instantiate the Example: a new object carries rover_hull. A click on the card downloads the file.

The steps before it, to start again from any of them:

The files, with the script that renders this page's pictures, are in examples/tutorials/rover_hull/.