Enable Neural Super Sampling in Unreal Engine with ML Extensions
Introduction
Introduction to neural graphics and Neural Super Sampling (NSS)
Setting up the emulation layers
Create an example game
Run the example
Using RenderDoc for Debugging and Analysis
Wrapping up
Next Steps
Enable Neural Super Sampling in Unreal Engine with ML Extensions
Create the example project
- Open Unreal Engine and create a new Third Person template project using the C++ option.
Figure 3: Create a new C++ project in Unreal Engine.
- Save the project and close Unreal Editor. Open the project’s
.slnfile in Visual Studio, select Development Editor and Win64, then right-click your game project in Solution Explorer and select Build. Confirm in Output > Build that the<YourProjectName>Editortarget builds without errors.
After the build is finished, open your project in Unreal Engine.
If a solution build reports failures in AutomationTool, Gauntlet, or other *.Automation projects, build your game project separately. Continue only when its editor target succeeds. For game-project failures, inspect the first error in Output > Build and check the Visual Studio components listed in the development setup notice.
Change Unreal’s Rendering Interface to Vulkan
By default, Unreal uses DirectX. Instead, you need to choose Vulkan as the default RHI:
- Go to Edit > Project Settings > Platforms > Windows > Targeted RHIs > Default RHI.
- Select Vulkan.
- Restart Unreal Engine to apply the change.
Figure 4: Set Vulkan as the default RHI.
Create the Plugins directory
Open your project directory in Windows explorer, and create a new folder called Plugins.
Figure 5: The new Plugins directory
Enable the plugin
The neural-graphics-for-unreal directory cloned in the previous section contains the plugin descriptor NG.uplugin and its source.
- Close Unreal Editor and copy the
neural-graphics-for-unrealfolder into your project’sPluginsdirectory. The descriptor should be at<YourProject>\Plugins\neural-graphics-for-unreal\NG.uplugin, withShadersandSourcealongside it. Confirm thatSource\NG-SDKcontains the SDK source. - Reopen Unreal Engine, allowing it to rebuild missing modules if prompted. Open Edit > Plugins, search for Arm Neural Graphics Plugin, and select its checkbox. Save and close the editor before the Visual Studio build.
- Close Visual Studio if it is open. Right-click the
.uprojectfile and select Generate Visual Studio project files (under Show more options on Windows 11). Open the regenerated solution, select Development Editor and Win64, and build your game project. Confirm that its editor target succeeds before continuing. - Reopen Unreal Engine and confirm that Arm Neural Graphics Plugin is enabled in Edit > Plugins. Restart the editor if prompted.
In Edit > Project Settings > Plugins > Neural Graphics 1.1.1, confirm the NSS settings are available. If the plugin is missing from the list, first check the NG.uplugin path above. If the build fails in BuildSDK.py, check that Python and CMake are on PATH and that the SDK submodules and LFS assets were downloaded.
With the emulation layers and Arm Neural Graphics Plugin configured, you’re ready to run Neural Super Sampling in Unreal Engine. Continue to the next section to test the integration.