![]() |
Help Render fluid after all opaque on Quest only - 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 Render fluid after all opaque on Quest only (/thread-3093.html) |
Render fluid after all opaque on Quest only - aleveque - 13-09-2021 Hello, I have a problem with ObiFLuid. The fluid is displayed well in the editor, but when I test by making an apk on Quest, the fluid is displayed on top of everything: transparent and opaque. I'm using Universal Render Pipeline / Lit for opaque elements. Someone have an idea ? Unity : 2020.3.12f1 URP : 10.5.0 ObiFLuid : 6.2 Thanks in advance Aurélien RE: Render fluid after all opaque on Quest only - josemendez - 13-09-2021 Hi there, This can be due to a variety of reasons. Fluid should always be rendered after all opaque objects (objects in the opaque render queue). Also, your render pipeline needs to generate a depth buffer, otherwise fluid will be rendered on top of everything. Since you're using the standard Lit shader for opaques, only possible reason for this is that depth buffer generation is disabled in your pipeline. Try enabling it. See: http://obi.virtualmethodstudio.com/manual/6.2/fluidrendering.html RE: Render fluid after all opaque on Quest only - aleveque - 13-09-2021 (13-09-2021, 11:07 AM)josemendez Wrote: Hi there,Hi, Thanks for your reply. Depth Texture and Opaque Texture boxes is checked : [attachment=1109] Did you know how can I know if my pipeline generate a depth buffer ? Thanks Best RE: Render fluid after all opaque on Quest only - aleveque - 13-09-2021 If I checked Surface Reconstruction AND Lighting, the sorting is well done. But in this case, the framerate is very low in VR on Oculus Quest... [attachment=1110] RE: Render fluid after all opaque on Quest only - josemendez - 13-09-2021 (13-09-2021, 02:07 PM)aleveque Wrote: If I checked Surface Reconstruction AND Lighting, the sorting is well done. Quest is basically a mobile platform, which is very filtrate limited. Rendering at full resolution will probably be too expensive there. You should use downsampling, as stated in the manual: http://obi.virtualmethodstudio.com/manual/6.2/fluidrendering.html Quote:Mobile performance RE: Render fluid after all opaque on Quest only - alexisss - 01-07-2024 Is there a way to adjust the rendering layer of the fluid in Unity so it appears behind other objects, even if they are opaque, while using the Universal Render Pipeline with Lit materials? https://cxfileexplorerapk.net/ RE: Render fluid after all opaque on Quest only - josemendez - 08-07-2024 (01-07-2024, 03:32 PM)alexisss Wrote: Is there a way to adjust the rendering layer of the fluid in Unity so it appears behind other objects, even if they are opaque, while using the Universal Render Pipeline with Lit materials? Hi, There's no such thing as a "render layer" that would allow objects to always appear behind other objects under all circumstances. In rendering, the chronological order in which objects are rendered and their actual overlap order on the screen are two completely different things. Overlap (whether an object appears in front of or behind another object) depends on how the object uses the depth buffer: whether it reads from it, which kind of test it performs to determine whether it should be visible or not, whether other objects write to it, etc. Only in cases where an object does not use the depth buffer does rendering order become important: objects drawn later will obscure objects already drawn to the screen. You must be a lot more specific about your use case, as it may involve changing the fluid render pipeline, the fluid shader, or even other object's shaders: do you want fluid to alway appear behind all opaque objects, only some specific objects, must this happen regardless of relative distance to camera (depth)? how about transparent objects? kind regards, |