Lumen with Runtime Meshes

azureyes - 代码插件 - 2024/07/19

Make the meshes loaded at runtime fully support Lumen global illumination rather than only having screen-space Raytracing.

  • 支持的平台
  • 支持的引擎版本
    5.3 - 5.4
  • 下载类型
    引擎插件
    此产品包含一款代码插件,含有预编译的二进制文件以及与虚幻引擎集成的所有源代码,能够安装到您选择的引擎版本中,并根据每个项目的需求启动。

The models loaded by UE at runtime have always only had screen-space Lumen, making the picture relatively unrealistic. The rendering effect has always been much worse than the models cooked and packaged in the UE Editor. But now this plugin (AZLumenRuntime) has successfully transplanted the generation process of Mesh's SDF and MeshCard to the runtime environment. Just by turning on Runtime Mesh monitoring in the runtime environment, smooth SDF and MeshCard calculations can be generated for the new StaticMesh entering the Level in the background thread queue. Once the generation is completed, the perfect Lumen global illumination can be presented immediately, instead of the deceptive screen-space Lumen.


However, there is a limitation here. Without modifying the UE source code, the graphics card needs to support HardwareRaytracing to function correctly. If you have the ability to modify the UE source code (see the subsequent document link, which indicates the source code modification location), you can break this limitation and present Lumen global illumination perfectly on the models loaded at runtime without enabling HardwareRaytracing.


Video: Video1 Video2


Other versions of the plugin can also be provided. The UE version number is required to be greater than or equal to 5.1. You can inquire by emailing me.

技术细节

Features:

  •  Build the SDF and MeshCard of StaticMesh in the background at runtime.
  •  Support modifying DistanceFieldResolutionScale and MaxLumenMeshCards at runtime to freely adjust the quality of Lumen.
  •  The background thread builds SDF and MeshCard, and the building process does not cause stuttering in rendering.
  • Support serialization and deserialization of the already computed SDF and MeshCards in the Level.

Code Modules:

  •  AZLumenRuntime

Number of Blueprints: 0

Number of C++ Classes: 3

Network Replicated: No

Supported Development Platforms: Win64

Supported Target Build Platforms: Win64

Documentation: DropBox 知乎

Example Project: DropBox 百度网盘

Important/Additional Notes: If the UE source code is not modified (see the documentation for specific modifications), your graphics card needs to support HardwareRaytracing.