Hello,
so basically I am working on a VR project with multiplayer and colocation so that people can be in the experience in the same room/hall. For this, I am using the spatial anchors from MetaXR plugin.
Other thing is that this project is a presentation experience so the clients want to have the best graphics and demand it uses DX12 with nanite and lumen.
Sadly though, it so happens that most of the time it works fine when I test on scenes from epic/fab, even in my own scenes from completely different projects of mine BUT when we try to open the scenes prepared for this client, it crashes with the following error message:
LogWindows: Error: appError called: Assertion failed: !EnumHasAnyFlags(TextureDesc.Flags, ETextureCreateFlags::RenderTargetable | ETextureCreateFlags::ResolveTargetable) [File:D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12Texture.cpp] [Line: 301]
Important also is that we disable virtual textures which causes few errors in the CrashLog of materials needing virtual textures but only non virtual were provided, we also get warnings about translucent materials being applied to nanite meshes. All things me and other devs working on this remind graphics a lot but these things doesn’t seem to cause the crashing as these warnings and errors happen even with scenes that don’t crash.
The crash also happens only when a VR headset is connected to the PC and HMD is enabled, without VR, there are only a few graphical glitches (mainly heavily pixelated reflections), these doesn’t happen at all when there is no headset connected. It doesn’t happen when OpenXR is used instead of MetaXR and it also doesn’t happen when on DX11. So far, I was able to track down a mesh that was causing an issue, some bush used in InstancedMeshActor, of course with nanite.
I will be looking into it more closely myself but I wanted to know whether someone experiences anything similar with 5.6 and if yes, what was causing it and how did you solve it?
Thanks in advance.