4.20 broke my Depth Buffer

Edit##

Turns out it’s a bug! Check [UE-64034][1] for progress on a solution. Thanks to everyone who helped me.

TL;DR

Unreal’s renderer has been corrupted for me since 4.20 released. I suspect that there’s something wrong with my depth buffer. Here’s what the depth buffer looks like before and after entering VR.

In Detail

Sooo after updating to Unreal Engine 4.20 I’ve been having some issues making VR content.

Whenever I enter VR everything Unreal renders gets corrupted (even thumbnails!). Eventually I figured out that the scene depth buffer get messed up by entering VR. To fix this I can restart UE or take a ‘High Resolution Screenshot’.

Best of all: Everything is fine in UE 4.19, and the preview builds of 4.20 also worked flawlessly. Some change in 4.20 probably broke my depth buffer.

At this point I’ve tried pretty much everything except for replacing my graphics card and reinstalling Windows.

I’d be happy about any suggestions! :]

Things I’ve tried

-Creating an empty project

-Reinstalling UE 4.20

-Updating my graphics card driver

-Rolling back my graphics card driver

-Deleting all sorts of derived data caches

-Making posts on the forum, the Answerhub, Reddit, the Unreal Slackers Discord, …

-Not using DirectX (Actually works, but Vulkan and OpenGL crash frequently.)

-Using the forward renderer, using instanced stereo

Here’s my DxDiag. [][3]

[And here’s an image of the renderer overview: Click me][4]

Have I missed anything? Any comments appreciated!

Looks like DirectX VR issues in 4.20 - XR Development - Epic Developer Community Forums

Thanks for the reply. That’s actually my post as well. But I felt like I didn’t describe the issue accurately since I’ve learned a couple new things. Thank you for your replies in that post as well.

I don’t suppose you’ve seen any other threads with my issue?

Edit: I’m also having trouble getting replies. So far you’re the only person who’s replied to any of my question on the forum or Answerhub. Do you have any tips on getting more answers?

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here Unreal Engine Issues and Bug Tracker (UE-64034) You can track the report’s status as the issue is reviewed by our development staff.

Goodness. Thank you so much! Thought there’d never be a solution in sight. :slight_smile:

Glad that the bug report reached you quickly.

Edit: It’s an AMD driver bug. Disable “Flags.bCompositeDepth” in “Oculus\OculusVR\Source\OculusHMD\Private\OculusHMD_Settings.cpp”

After the issue was marked as “Won’t fix”, as a last resort, I tried to find the bug myself.

I found it. So here it is. Reverse this commit and compile your own version of the Unreal Engine.

EpicGames/UnrealEngine/commit/bd51b2429fb5512e30d21d6e9199843c400c1557

Here are the instructions for getting GitHub access to the source code.

After change OculusHMD_Settings.cpp meed only Build new Version or need Buiild sln?