Obi Official Forum
Help Depth buffer problem - 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 Depth buffer problem (/thread-3683.html)



Depth buffer problem - kebab_traume - 06-12-2022

Hey! Thank you for your patience again )
Have a issue with rendering ice cube with custom shader and obi fluid in the same time. Fluid renders in front of transparent surface. Maybe you know the reason and the solution for it.
Cheers!
[attachment=1595][attachment=1596]


RE: Depth buffer problem - josemendez - 06-12-2022

(06-12-2022, 05:16 PM)kebab_traume Wrote: Hey! Thank you for your patience again )
Have a issue with rendering ice cube with custom shader and obi fluid in the same time. Fluid renders in front of transparent surface. Maybe you know the reason and the solution for it.
Cheers!

Hi,

My guess would be that your shader isn’t in the correct render queue, it’s drawn before other transparent objects and writing in the depth buffer.

Set your shader to the “Transparent” render queue, that should fix it.

Note its impossible to correctly render intersecting transparent objects using regular alpha blending in rasterization, though.

Kind regards,