VR Preview in UE5.1

Every time I attempt to preview a VR scene UE crashes immediately. I am having to build a desktop app whenever I want to view my scene which often takes forever. How do I fix this? Or is there another way to view my scene beyond these 2 options. I have seen that this is possible in this video:

I am using UE 5.1 with lumen and nanite active using the settings in the above video. I am also using SteamVR and have added my scene to the UE VR template (the crashing also took place in the template before adding my assets).

Hi James,

When you crash, what error/callstack are you seeing? Also, what version of the 5.1 preview are you currently on?

Cheers.

Hi, thanks for your response and apologies for the late reply. I didn’t see any email notification. Here is what I see in About Unreal Editor - Version: 5.1.0-22346211+++UE5+Release-5.1. And here is the crash report I see when UE shuts down. Hope this helps.

Assertion failed: DepthSwapchainDesc.Extent.X == SizeX && DepthSwapchainDesc.Extent.Y == SizeY [File:D:\build\++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp] [Line: 2190]

UnrealEditor_OpenXRHMD
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

Thanks James,

Try changing these project settings:

Default screen percentage mode for realtime editor viewports: MANUAL
Default screen percentage mode for non-realtime editor viewports: MANUAL
Default screen percentage mode for mode for path traced editor viewports: MANUAL

(I don’t see the last one in my settings, maybe path tracing needs to be turned on for it to show up.)

Cheers to @Spcarso for posting this fix.

Amazing, this works! Thanks so much for this solution.

Glad to hear it,

For anyone seeing this thread after, this was only a problem in the 5.1 preview builds and VR Preview should work without changing any settings in 5.1.0.

1 Like