Help Strange dark surface reflection at low viewing angles - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html) +--- Thread: Help Strange dark surface reflection at low viewing angles (/thread-3349.html) |
Strange dark surface reflection at low viewing angles - locque - 07-03-2022 Take a look this this: https://imgur.com/a/w8gOxxP As the camera moves further from the fluid and the viewing angles gets lower, the more this dark reflection appears in the liquid's surface. I removed all reflection probes from the scene to see if that had something to do with it, to no effect. Looks like a screen space reflection, but it's way too dark for the fluid and environment. I'm using the default fluid renderer with nothing changed other than the surface downsampling seen in the pictures, but I also reverted that to see if it would make a difference. Update: This only affects VR rendering. Here's a comparison between the exact same scene from the exact same perspective with nothing changed other than the render target: https://imgur.com/a/2Gzumv8 RE: Strange dark surface reflection at low viewing angles - josemendez - 07-03-2022 (07-03-2022, 12:38 PM)locque Wrote: Take a look this this: https://imgur.com/a/w8gOxxP Hi! This is probably just refraction. Refraction works by reading a opaque texture of whatever is behind the fluid (so this happens in screen space), and perturbing the read location by the fluid normal. Does this happen if you set the renderer's refraction parameter to zero? RE: Strange dark surface reflection at low viewing angles - locque - 07-03-2022 Thanks for the quick answer! Turning down refraction does reduce the issue. Why does this happen in VR only though? Didn't think of changing the default parameters since it looked fine when rendering to the main display. I would really like to use refraction, but just raising it slightly above zero will still turn the surface almost entirely dark at a distance of only a few units. RE: Strange dark surface reflection at low viewing angles - josemendez - 07-03-2022 (07-03-2022, 01:15 PM)locque Wrote: Thanks for the quick answer! What does your VR setup look like? (Headset? SDK used?) I recently fixed an issue with OpenVR's stereo handling, as it uses off-center projection (not currently supported by Obi) which results in incorrect eye-space positions being calculated the fluid shader. This affects not just refractions but reflections too. I added off-center projection support -which will be included in the next update-, in the following thread you can find a patch that includes it: http://obi.virtualmethodstudio.com/forum/thread-3214-page-3.html RE: Strange dark surface reflection at low viewing angles - locque - 08-03-2022 (07-03-2022, 01:27 PM)josemendez Wrote: What does your VR setup look like? (Headset? SDK used?) Those pictures were taken with the patch, I was the one asking for it I have a Valve Index / SteamVR SDK. RE: Strange dark surface reflection at low viewing angles - josemendez - 08-03-2022 (08-03-2022, 10:40 AM)locque Wrote: Those pictures were taken with the patch, I was the one asking for it My apologies! Didn't realize it. (08-03-2022, 10:40 AM)locque Wrote: I have a Valve Index / SteamVR SDK. I will try to reproduce this there then (though I only have Quest/Rift available to test, but I doubt that makes any difference). Back when I was implementing the off-center projection I didn't notice anything weird with refractions, but maybe I just wasn't looking hard enough. Will try and get back to you, in the meantime using a small refraction parameter should work. |