Adding Displacement

Using Virtual Hightfield Meshes

To add a displacement map, you just have to enable the Displacement space in the builder, and then add your map.

Virtual Heightfield Mesh uses the displacement to generate another mesh matching the landscpae in size, but with the vertices changed to suit the displacement. It does NOT need excluding from caching.

You need to have set virtual textures on the terrain with the volumes. See Landscape Caching for more information.

Place a Virtual Heightfield Mesh actor in your scene, and in its detail set the Virtual Texture to your "World Height" VT.

Then, click on "Set Bounds" and in Heightfield click on "Build" next to "Build MinMax Texture". Let it build its mesh.

The build time can take some times, depending on the size of your terrain and size of your height VT.

Then, create a new material.

It will be used to apply the texture of the landscape into the Virtual Heightfield Mesh.

The material should look like this : a Runtime Virtual Texture Sample linked to our normal VT, which sets the Color/Specular/Roughness/Normal to our Heightfield Mesh.

Assign this material to your VHF and you're done !

Note however that excluded layers aren't in the Virtual Texture and as such won't be on the VHF!

The VHF can be hidden in editor to not interfere with the edition of your Landscape Instance, in its details. It is hidden by default !

The displacement maps & their force values blends with each other, if 4 sub-layers blends with each other then their dispalcement would be a middle-ground between each of their values.

Last updated