Latest news
Tips & GuidesUnreal Engine

Runtime Virtual Texture in Unreal Engine: A Guide to Terrain and Landscaping

In Unreal Engine, Runtime Virtual Texture (RVT) generates terrain and landscaping material data on the GPU at runtime and caches shading data across large areas. This guide explains how to set up RVT in a Landscape scene and avoid common issues.

A landscape visualization combining terrain, roads and different surfaces around a buildingAI image
Representative image, generated with AI.Image: 3dsınıfı / FCA AI

In brief

  1. RVT generates texel data on the GPU at runtime and caches shading data across large areas.
  2. Setup requires an RVT Asset, a Runtime Virtual Texture Volume placed in the scene, and the appropriate material expressions.
  3. Landscape, Landscape Splines and Static Meshes are among the suitable candidates for writing to an RVT.
  4. YCoCg base color encoding in RVT can reduce visual artifacts, but increases memory use by 25%.

Runtime Virtual Texture (RVT), as described in Unreal Engine’s official documentation, uses the GPU to generate texel data at runtime and caches shading information across large surfaces. The system is particularly useful for architectural visualization and environment design teams that want to combine terrain materials, splines and decal-like surfaces. The setup below follows the workflow in Unreal Engine’s Landscape and RVT documentation; since the documentation does not specify a single Unreal Engine version, no further assumptions about version compatibility should be made.

What does RVT do in a terrain scene?

You can think of RVT as a shading cache that stores specific data from materials in the scene. Landscape, spline and some static objects can write to this texture, while other materials can sample from the RVT. This approach makes it easier for materials to work together, especially for elements such as roads, curbs or surface details that blend into the terrain.

Unreal Engine offers two virtual texturing methods. Runtime Virtual Texturing (RVT) generates data on the GPU at runtime; it is suitable for layered or procedural materials and Landscape use cases. Streaming Virtual Texturing (SVT), on the other hand, prepares data on disk and loads it; it is intended for content that takes time to create, such as large, detailed artist textures and lightmaps. It is important not to treat the two methods as interchangeable when choosing the right approach for a project.

Setup: Asset, Volume and material

  1. Create an RVT Asset. In the Content Browser, right-click or use the Add New button, then navigate to Materials & Textures › Runtime Virtual Texture. The Asset stores RVT settings and links the Volume, materials and components in the scene. In the Asset settings window, define the texture size, tile size and material attributes to support.

  2. Add a Runtime Virtual Texture Volume to the scene. The Volume places the RVT Asset in the scene. Drag the Volume into the scene from the Place Actors panel, then specify the Landscape using the Source Actor selection under Details › Transform from Bounds and click Set Bounds. The Volume should contain the actors that write to the RVT and the objects that sample from it. If you add more components later, Set Bounds can resize the Volume to include their bounds.

  3. Set up the material connections. Use the Runtime Virtual Texture Output and Runtime Virtual Texture Sample expressions in the material to write to and read from the RVT. Output writes the material logic to the RVT, while Sample reads data from the selected RVT Asset. If a Material Instance needs to change the sampled Asset, you can use Runtime Virtual Texture Sample Parameter; in that case, the assigned Asset’s material type must match the type selected in the parameter expression.

  4. Direct components to the RVT. In the writing component’s Details panel, add the relevant RVT Asset under Render to Virtual Textures. For this to work, the Asset must be assigned to a Volume placed in the scene, and the component material must be set up correctly. The material must use the Virtual Texture Material Domain or include the appropriate RVT material expressions.

  5. Blend terrain layers in the material. Add a LandscapeLayerBlend node in the Material Editor and define the layers; connect the node’s output to the material’s Base Color input. You can connect texture samples to the layer inputs and, for height-based transitions, connect the texture sample’s alpha output to the relevant Height input. Keep the layer names identical to the target layers in the Landscape: any layer the material expects but that has no corresponding layer in the Landscape is assigned a weight of zero.

Choosing material types and memory use

The RVT Asset’s material type determines what data is stored and which format is used for compression. Some of the options listed in the documentation are:

RVT material typeData storedCompression format
Base ColorBase color onlyBC1
Base Color, Normal, Roughness, SpecularBase color, normal, roughness and specularBC3 + BC3
World HeightHeight valueR16_UNORM
DisplacementDisplacement value between 0 and 1BC4
Mask4Four-channel maskBC3

YCoCg base color encoding can help reduce color shifts and banding, especially in soft color transitions. The trade-off is a 25% increase in memory use, according to the documentation; sampling and decoding virtual texture data also adds performance overhead. Before enabling this option, evaluate both image quality and memory requirements in the project scene.

What to consider in an architectural visualization workflow

RVT can be useful in outdoor scenes featuring topography, Landscape Splines and static objects that blend into the terrain. The documentation lists Static Meshes and Instanced Static Meshes as suitable components, along with Landscape and Landscape Splines. However, RVT content is not fully updated every frame, so moving or animated objects are poor candidates; objects writing to an RVT are generally expected to have Static mobility.

Platform support should also be considered. Virtual Texture Feature Switch can be used to switch to an alternative material path for platforms that do not support virtual texturing. This lets you plan how the material will behave if virtual texturing is unsupported, rather than assuming RVT will be available. Checking that elements sampling from or writing to the RVT remain within the Volume bounds is another fundamental setup step.

Common mistakes

  • Setting Volume bounds too narrowly: If a writing or sampling component falls outside the bounds, the expected RVT behavior may not occur. Set the Volume to contain the target actor and relevant components.

  • Mismatching layer names: If a layer named in the material is not defined in the Landscape, its weight will be zero. Check the layer names and target layers together.

  • Mixing different material types: If another Asset is assigned through Runtime Virtual Texture Sample Parameter, the material types must match. Review the material references after changing the Asset.

  • Writing animated objects to the RVT: Since the RVT shading cache is not fully refreshed every frame, animated or skeletal components are not suitable candidates.

  • Confusing RVT with SVT: RVT, generated on the GPU at runtime, and SVT, prepared on disk and loaded, are designed for different needs. Choose the texture generation and loading method according to the scene’s requirements.

Sources

3 sources
D
dev.epicgames.comdev.epicgames.com/documentation/en-us/unreal-engine/runtime-virtual-texturing-in-unreal-engine
Summary
D
dev.epicgames.comdev.epicgames.com/documentation/en-us/unreal-engine/virtual-texturing-in-unreal-engine
Summary
D
dev.epicgames.comdev.epicgames.com/documentation/en-us/unreal-engine/landscape-materials-in-unreal-engine
Summary

Source texts are not republished; short quotes are marked, everything else is our own summary and commentary.

3dsınıfı’s take
3dEditor’s assessment

For offices in Turkey producing outdoor visualizations, RVT is a workflow worth exploring in scenes that bring together terrain, roads, splines and static environment elements. Its most meaningful benefit is the ability to manage complex Landscape materials and details that blend into the terrain together; however, this does not mean automatic performance gains in every scene.

Teams should evaluate memory costs, virtual texture support on the target platform and whether content is moving from the outset. The visual benefit of the YCoCg option requires 25% more memory, so the decision should be tested on the actual scene and hardware. The most likely sources of problems are Volume bounds, mismatched layer names and material types.

Frequently asked questions

What is Unreal Engine Runtime Virtual Texture (RVT)?

RVT generates texel data on the GPU at runtime and caches shading data across large areas. It is suitable for Landscape, layered materials and spline workflows.

What components are needed to set up RVT?

You need an RVT Asset, a Runtime Virtual Texture Volume placed in the scene, and materials set up to write to or sample from the RVT. The relevant components must be within the Volume bounds.

What is the difference between RVT and SVT?

RVT generates data on the GPU at runtime, while SVT prepares data on disk and loads it. The official documentation associates RVT with procedural and layered materials, and SVT with large textures and lightmaps.

Comments and the forum are in Turkish.Join the discussion
+

Related news