Obi Official Forum
Help Fluid keeps blinking invisible with Depth Tex enabled - 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 Fluid keeps blinking invisible with Depth Tex enabled (/thread-3685.html)



Fluid keeps blinking invisible with Depth Tex enabled - 7Dev.io - 07-12-2022

The fluid keeps blinking invisible if I enable Depth Texture on URP's render asset.




RE: Fluid keeps blinking invisible with Depth Tex enabled - josemendez - 07-12-2022

(07-12-2022, 02:19 AM)7Dev.io Wrote: The fluid keeps blinking invisible if I enable Depth Texture on URP's render asset.


Hi,

So far I've been unable to reproduce this. I take it that you're using fluid renderer feature on your URP pipeline, and then enabled opaque and depth textures, correct?

Which Obi/Unity/URP versions are you using?

thanks!


RE: Fluid keeps blinking invisible with Depth Tex enabled - 7Dev.io - 07-12-2022

(07-12-2022, 10:13 AM)josemendez Wrote: Hi,

So far I've been unable to reproduce this. I take it that you're using fluid renderer feature on your URP pipeline, and then enabled opaque and depth textures, correct?

Which Obi/Unity/URP versions are you using?

thanks!
I figured it out. My depth texture mode was set to after transparents, changing it to after opaques fixed it.


RE: Fluid keeps blinking invisible with Depth Tex enabled - josemendez - 08-12-2022

(07-12-2022, 09:30 PM)7Dev.io Wrote: I figured it out. My depth texture mode was set to after transparents, changing it to after opaques fixed it.

Glad you found the culprit! Makes sense: since the fluid is a transparent object, generating the depth texture after transparents would depth test the fluid against itself, causing z-fighting.