Adding Displacement
Last updated
Last updated
To add a displacement map, you just have to enable the Displacement space in the builder, and then add your map.
Once done, you have 2 ways of actually getting displacement from the map, Tessellation and Virtual Heightfield Mesh.
Tessellation adds geometry near the camera then moves that geometry according to the displacement map. Using Tessellation requires excluding the layer from caching.
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.
Click on the MASTER button to open the master. On the right, set GTessellation Mode to "Flat Tessellaion" or "PN Triangles".
The Tessellation Quality changes the number of mesh subdivisions.
In the exampl below, the dense area is set to 5, and the lesser dense area further away is another Sub-Layer set to 0. Each sub-Layer can have its own quality depending on its needs.
The Displacement force affects how further up the vertices will go based on the map.
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.