Skip to content

Directional Mask

Directional Mask
Texture

Directional Mask makes a mask from a World Normal map: white where the model faces a direction, black where it faces away. Dust and snow settle on what faces up, moss grows on the side away from the sun, and light from a window falls on what faces it. Every texel of the World Normal map says which way that spot of the model faces, so the mask lands on the model the same way whatever its UV layout.

A picnic table with snow lying in drifts on its top and seats, and none on its legs

Search the node palette for “directional mask”, “facing up”, “dust”, “snow” or “moss”.

Model 1 lion.glb model Model Maps 1 modelhighcagetexture positionworld normalgravityidaocurvatureconvexityconcavitythicknessnormalheightcoveragetexture Directional Mask 1 world normalmodel mask up, Spread 60
Wiring Model Maps' World Normal into Directional Mask also wires the Model node into its Model input.

Start from a model baked by Model Maps (see Texture a Model for the whole chain). Add a Directional Mask and wire Model Maps’ World Normal output into its World Normal input. The Model node feeding that Model Maps is wired into the mask’s Model input in the same undo step, when that input is empty. At a new node’s defaults the mask is white on everything facing up, half gray on faces tilted 45 degrees, and black on the walls and everything below them.

To put dust on the tops, wire the mask into the Opacity of a Texture node with Use Value on for a dust color, a high Roughness and Metallic 0, and lay that fill over the bake’s Texture output with a Texture Layer, into 3D Render. Dust on top builds it end to end.

Three views of a picnic table's Directional Mask: white only on the flat tops and seats at Spread 30, the legs and edges coming in dark gray at 100, and nearly all of the table white at 130
  • Yaw (degrees) and Pitch (degrees) set the direction, in 3D Render’s camera convention: Pitch 90 (the default) is straight up whatever the Yaw, Pitch 0 is level, and Pitch -90 straight down. Yaw turns around the vertical axis, 0 toward the model’s front.
  • Spread (degrees) (0 to 180, default 60) is the angle from the direction at which the mask reaches black. At 0 only faces pointing exactly along the direction stay white; at 180 everything does but a face pointing exactly away. At 60 the tops and gentle slopes are white and the walls black.
  • Sharpness (0 to 1, default 0.5) is the falloff. At 0 the mask ramps smoothly from white facing the direction to black at Spread; at 1 it is a hard edge at Spread. In between, faces within Sharpness times Spread of the direction are fully white: at the defaults, everything within 30 degrees of up.

A texel whose World Normal holds no direction, such as an empty spot of a bake from another app, is black.

The Direction rows of Directional Mask with the direction ball under them, its labeled axes and the arrow pointing straight up

Under Yaw and Pitch, the direction ball draws the model’s X, Y and Z axes, labeled, with world up marked, turned the way the 3D Render showing this model looks at it, so you aim in the view you judge the result in. While the Preview shows the mask On Model, the ball turns with the node’s own Camera instead.

Drag on the ball to turn the arrow. Near one of the model’s axes it pulls onto that axis exactly, and clicking an axis end points straight along it. Hold Shift to step by 15 degrees. The whole drag is one undo step. The ball works as Model Maps’ Gravity ball does.

There is no up-axis row. A model exported from an app that uses Z as up, and not converted on export, lies on its back in ArcBrush, so “straight up” catches its front instead of its top. Aim the mask with the ball: its labeled axes show where the model’s own Z points, so drag the arrow onto the Z axis (or click its end), which sets Yaw 0 and Pitch 0. Judge it On Model or in 3D Render, which shows the model lying the same way.

With a Model node wired into Model, the Preview offers UV and On Model for the mask, as it does for a Model Maps map: the mask is drawn flat on the model, so you see which faces it catches and orbit them without a 3D Render. Press M over the Preview to switch between the two. The Camera section, collapsed and last in the panel, holds that view’s camera. The Model input serves this view only: it never changes the mask.

  • World Normal takes a World Normal map in the model’s UVs, read as data whatever its tags: Model Maps’ own, or one baked in another app in the same convention. Model is optional.
  • Mask is a single-channel mask at the document’s bit depth, opaque everywhere: a transparent background in a bake from another app never cuts a hole in it.
  • With nothing wired, the node asks for a World Normal map.
  • A map that arrives 8-bit warns that directions step, and asks for a 32-bit bake. Model Maps’ own maps stay 32-bit in every document, so they never warn.
  • Over a bake that is one map per material, the mask is one frame per material, each from its own frame of the World Normal.

Pins

World NormalImage
InputOptional
ModelModel
InputOptional
MaskMask
Output

Direction

Yaw (degrees)Number
Default: 0.0 Range: -180.0–180.0

The direction faces are compared against, around the vertical axis, as 3D Render turns its camera. Drag the ball under these rows to aim it in the view of the 3D Render showing this model; Shift snaps to 15 degrees

Pitch (degrees)Number
Default: 90.0 Range: -90.0–90.0

The direction above or below the horizon: 90 is straight up, -90 straight down

Mask

Spread (degrees)Number
Default: 60.0 Range: 0.0–180.0

The angle from the direction at which the mask reaches black. 0 keeps only faces pointing exactly along it, 180 everything but faces pointing exactly away. At 60 the tops and gentle slopes are white and the walls black

SharpnessNumber
Default: 0.50 Range: 0.00–1.00

The falloff. 0 is a smooth ramp from white facing the direction to black at Spread, 1 a hard edge at Spread

Camera

ProjectionChoice
Default: Perspective Range: Perspective / Orthographic

How the camera draws depth.

  • Perspective: farther things look smaller, as through a lens.
  • Orthographic: parallel lines stay parallel and size does not change with depth, for front, side, top and isometric views. Distance zooms; Focal Length is not used.
Orbit YawNumber
Default: 30.0 Range: -180.0–180.0

Camera rotation around the model, in degrees. 0 looks straight down the front

Orbit PitchNumber
Default: 20.0 Range: -90.0–90.0

Camera elevation above the model, in degrees. Positive looks down at it; 90 looks straight down from the top

DistanceNumber
Default: 1.00 Range: 0.02–8.00

How far the camera sits from its Target, as a multiple of the auto-fit distance

Focal LengthNumber
Default: 50 Range: 8–400
Projection = Perspective

Lens focal length in millimeters, 35 mm-equivalent (a 36 x 24 mm sensor). 50 is a normal lens; lower is wider, higher is a telephoto

Target XNumber
Default: 0.00 Range: -4.00–4.00

Where the camera looks and orbits, in model sizes from the model's center. Pan and double-click move it; F resets it

Target YNumber
Default: 0.00 Range: -4.00–4.00

Where the camera looks and orbits, in model sizes from the model's center. Pan and double-click move it; F resets it

Target ZNumber
Default: 0.00 Range: -4.00–4.00

Where the camera looks and orbits, in model sizes from the model's center. Pan and double-click move it; F resets it

  • Multiply the mask by a 3D Noise on the same model so the dust or snow thins in patches instead of covering every top evenly.
  • For moss on one side, drop Pitch to 0 and turn Yaw toward the shaded face.
  • On a metal model, give the dust fill Metallic 0 as well as its color, or the dust only tints the reflections.

One of the example documents in ArcBrush uses this node.

  • Geometry-Aware Texturing

    Geometry-Aware Texturing

    Masks and projections read from where each spot sits on a model and which way it faces: dust settled on the tops of a bronze lion, snow lying in drifts on the lid of an iron-bound chest, rust creeping up a watering can from the ground and a horse statue projected in red granite with no seams.

    Open in ArcBrush

    Don't have ArcBrush? Download