Decals and oculus rift problem
|
hI, I'm making some test with a scene to be displayed using Oculus Rift. The scene is filled with various decals: I've placed deferred decals using a material with DBuffer blend mode because with other blend modes decals are visible only if hit by direct lighting. Unfortunately, diplaying the scene with Oculus Rift, Dbuffer blend mode decals are visible only on one oculus eye. This is an issue or I'm making something wrong? I'm using unreal engine 4.1.1, I've also used unreal engine 4.2.1 without success. Please help me, I need a solution this is what I see when starting the game with Oculus: This is the material I used on the deferred decal:
(comments are locked)
|
|
Hello robi2005, After doing a bit of digging I found that this is a known issue (UE-11849) and that it has been resolved internally. This solution will be available in a later release of the engine. I have provided two options below that may be able to resolve your issue. The first is a bit of code that a developer had changed to solve a similar issue. The other is the commit that was used for UE-11849. I hope that this helps. In "SetupPrePassView" in "DeferredShadingRenderer.cpp" change this:
to this:
The Commit: https://github.com/EpicGames/UnrealEngine/commit/10f7131b928cb855b674eba17bfac3f249c26394 Make it a great day Just wondering if anyone else is getting weird flickering in the left eye on DBuffer Decals in HTC VIve or Oculus DK2/ CV1 in 4.11 the decal on the left is with the DBuffer Translusent while the decal on the right is just Translucent decal. problem with just the translusent decal on the right is it does not work with out direct light hitting it and the DBuffer decals are now flickeing in the left eye of the HTC VIve. its a lose lose situation :(
Hello adubois7, Are you using 4.11.2 or just 4.11? Hi Rudy Triplett I am using 4.11.2 Let me know if there is anything I can provide to help track down this issue. I am a dev and even know this is for a side fan art project this is something that will help with future development in VR. Thanks Thank you for the information. Could you create a new thread and provide the link in a comment here? I believe that the issue that you are experiencing is different enough from the original question on the thread that it should have a thread of it's own for tracking purposes. I will be happy to assist you further on the new thread. here is the link to the new bug post. https://answers.unrealengine.com/questions/429472/dbuffer-decals-flicker-in-left-eye-of-hmd-vr.html
(comments are locked)
|
|
Hello, I ran into this problem as well in 4.5.1, and was able to track the issue to the DBuffer clears in FRCPassPostProcessDeferredDecals::Process in PostProcessDeferredDecals.cpp:
The issue is that each of those calls to Clear() cleared the entire surface, so the right eye cleared the decals from the left eye. The solution is to add a call to SetViewport() after each call to SetRenderTarget():
I hope this helps, Curtis Hey Curtis Beeson, Thank you for the information. I will be sure to pass include this post in the Jira Report. Have a great day! Hi, I'm working on an Oculus project too and I have the same problem. I'm using the 4.7.3 but I don't know how to change the code of the engine and compile it. Can you help me ? Hello robi2005, I was unable to reproduce this issue on our end. I have a few questions for you that will help narrow down what issue it is that you are experiencing. Quick questions:
Sorry to answer so late but we were quite busy these last days. We tried to change the PostProcessDeferredDecals.cpp but we still have the problem. Worst, we also don't have any light on the left eye. It's begin to be a big project so I can't provide you a list of what we exactly did but we still have the problem on a blank project. We followed this tutorial for the decals : https://answers.unrealengine.com/questions/25508/decals-not-rendered-without-direct-lighting.html We just install the last SDK from Oculus and we still have the same problem :/ Hello robi2005, Please try one of the suggestions that was provided below. This issue should be resolved in the 4.8 version of the engine. If this is not the case please post back with any additional information. (PLEASE NOTE: we do NOT suggest that develop your project in the preview version of the engine. Preview versions of the engine are considered unstable and are for testing out new potential features for the up and coming release) Apologies Rudy, I didn't see your answer D: I thought the reply will be after my last post so I didn't check the top of the page ... We managed to solve the problem by changing the code, thanks a lot ! We're waiting for the final version of the 4.8 to test if it works well but for now we can continue our work :D Hello robi2005, I am happy to hear that you have things working! If the issue returns in 4.8 please be sure to update this thread with any new information that you have. Make it a great day
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here




Howdy ciddi3d,
Thank you for your report. Would you be able to share the decal asset material so that we could further investigate the issue that you have been seeing? Could you also share your dxdiag?
Thanks and have a great a day!
How can I share material asset? I have to migrate the asset to another folder or export it as text file?
Hey ciddi3d,
If you find the folder in your Window Explorer, You should be able to drag the folder onto your desktop. After doing this, you can then right click the folder and highlight the Send To> option and click on Compressed (Zip) file. You should be able to send that as an attachment in a comment.
Thanks and have a great day!
here is the zip containing the graffiti material asset ( w/o the texture, 'cause it's too big for posting :( ).
link text
Hope this could help :)
Hey ciddi3d,
Would setting your Decal Blend Mode to Translucent for the decal make the image appear in both eyes of the Oculus?
yes, in that case the decal appears on both eyes, but It disappears in the shadow (i.e. it is visible only if hit by direct lighting) :(
Hey ciddi3d,
Thanks for clearing that up. That is a known issue where decals are not appearing when they are not in direct lighting. We have placed a single decal on the wall and moved the lighting so that the decal is half in the light and half in the shadow and only the lighted area was visible. This issue will be addressed in a future build.
Thanks and have a great day!