Directional Mask
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.
Search the node palette for “directional mask”, “facing up”, “dust”, “snow” or “moss”.
The quickest start
Section titled “The quickest start”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.
Direction, Spread and Sharpness
Section titled “Direction, Spread and Sharpness”- 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 ball
Section titled “The direction ball”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.
A model exported with Z up
Section titled “A model exported with Z up”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.
See it on the model
Section titled “See it on the model”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.
Inputs, output and messages
Section titled “Inputs, output and messages”- 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.
Parameters
Section titled “Parameters”Pins
Direction
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
The direction above or below the horizon: 90 is straight up, -90 straight down
Mask
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
The falloff. 0 is a smooth ramp from white facing the direction to black at Spread, 1 a hard edge at Spread
Camera
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.
Camera rotation around the model, in degrees. 0 looks straight down the front
Camera elevation above the model, in degrees. Positive looks down at it; 90 looks straight down from the top
How far the camera sits from its Target, as a multiple of the auto-fit distance
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
Where the camera looks and orbits, in model sizes from the model's center. Pan and double-click move it; F resets it
Where the camera looks and orbits, in model sizes from the model's center. Pan and double-click move it; F resets it
Where the camera looks and orbits, in model sizes from the model's center. Pan and double-click move it; F resets it
Usage Tips
Section titled “Usage Tips”- 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.
Related Nodes
Section titled “Related Nodes”Examples
Section titled “Examples”One of the example documents in ArcBrush uses this node.
-
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 ArcBrushDon't have ArcBrush? Download