4.20 broke my Depth Buffer
Turns out it's a bug! Check UE-64034 for progress on a solution. Thanks to everyone who helped me.
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.
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. https://pastebin.com/raw/a8pEGRVj
Have I missed anything? Any comments appreciated!
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.
Here are the instructions for getting GitHub access to the source code.
Follow this question
Once you sign in you will be able to subscribe for any updates here