Get started
How it works
How the capture actor, the parameter collection and the material functions work together to blend a mesh into the terrain.

BP_GroundBlendCaptureholds two top-down orthographic scene captures framed on its box. HeightCapture renders the scene depth of the ground intoRT_GroundBlend_Height(R32F); ColourCapture renders its base colour intoRT_GroundBlend_Colour(RGBA16F). Both captures see only the ground: every Landscape in the level (Include Landscapes) plus the actors in Ground Actors. Rocks, props and buildings are not in the capture, so they never count as ground.- The actor writes the frame into
MPC_GroundBlend:GB_Frame(origin X, origin Y, size, top Z) andGB_Info(active, colour active, 1 / resolution, depth range). Every Ground Blend material reads these, so there is nothing to set per material. - In the material,
MF_GB_HeightAboveGroundturns the pixel's world position into its height above the captured ground (three taps of the height capture, which also give the terrain's normal).MF_GB_GroundSamplesamples the ground texture set in world space at the terrain's tile size: top-down where the face is near horizontal, so the grain on a ledge lines up with the terrain beside it, and from one of two world side planes (X or Y, chosen by the face of the mesh's own bounding box the pixel lies on) on steeper faces. The captured colour then sets its hue and brightness, and the set keeps only its luminance variation (the grain).MF_GB_Blendmixes it into the mesh's own material in two layers: the ground fill on the faces that can hold soil, and a dust film of the terrain's colour that covers walls and undercuts, strongest at the contact.MF_GB_Applywraps all three in one node. - Outside the box, where the capture saw no ground, or with no capture actor in the level, the blend weight is 0 and the material shows the plain rock. The weight fades out over the last 2 texels at the box's edge.