Help How to render transparent and opaque fluid particles with URP - 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 How to render transparent and opaque fluid particles with URP (/thread-3711.html) |
How to render transparent and opaque fluid particles with URP - Mich279 - 25-12-2022 The last project that I used obi fluid for was a couple of years ago and I was just using the built in renderer. It was easy to separate the different renderer components on the main camera and have different renderer setting for different emitters. I had some emitters simulating water with transparent particles and other emitters simulating a foam like liquid with opaque particles. I am now working on a new project with some friends of mine and we are using the URP. Iv got the renderer stuff set up in the URP settings but cant seem to figure out how to render some emitters with transparent water like particles and other emitters with opaque coloured particles. I read another forum post in which in the response it was confirmed that "It’s not possible in URP to have different emitters using different fluid rendering properties, since the URP pipeline is an asset, and assets in Unity cannot have references to objects in the scene." (http://obi.virtualmethodstudio.com/forum/thread-3668.html?highlight=URP) I can't seem to figure out how to use the URP and render both transparent and opaque coloured particles from different emitters in the same scene. I would very much appreciate any help from the community and the developers on this matter. Thank you in advance. RE: How to render transparent and opaque fluid particles with URP - josemendez - 25-12-2022 (25-12-2022, 12:57 AM)Mich279 Wrote: The last project that I used obi fluid for was a couple of years ago and I was just using the built in renderer. It was easy to separate the different renderer components on the main camera and have different renderer setting for different emitters. I had some emitters simulating water with transparent particles and other emitters simulating a foam like liquid with opaque particles. Hi, This is not possible, and an inherent limitation of how renderer features work in URP. In the future, we want to work around this by ceasing to use renderer features and instead write a custom renderer for URP. Kind regards, RE: How to render transparent and opaque fluid particles with URP - Mich279 - 26-12-2022 Hello, Thank you for the quick response. I was worried that would be the answer. I was wondering whether there is a work around with the shader that the Obi Particle Renderer component uses. I played about with switching between shaders that came with Obi and the ParticleShaderURP has a different result compared to the normal ParticleShader. Attached in an image of what I mean. (left is default ParticleShader, right is ParticleShaderURP) [attachment=1613] Is it possible to copy the shader and manipulate it to render a specific emitter particles to be opaque? Or is the current answer simply just to use the built in render? Thanks again in advance. RE: How to render transparent and opaque fluid particles with URP - PureSpark - 15-05-2023 (25-12-2022, 09:52 AM)josemendez Wrote: Hi, Hi. Has this issue for URP been resolved yet? In my project the settings of the Fluid Renderer component on the camera have no effect. Can even remove if off the camera because in URP it seems to provide no purpose. RE: How to render transparent and opaque fluid particles with URP - PureSpark - 23-05-2023 (15-05-2023, 06:51 AM)PureSpark Wrote: Hi.Bump RE: How to render transparent and opaque fluid particles with URP - josemendez - 23-05-2023 (23-05-2023, 09:15 AM)PureSpark Wrote: Bump Hi there, The ObiFluidRenderer component in the camera is intended for the built-in pipeline only. In URP, rendering is performed by the FluidRenderer feature in your URP renderer. See: http://obi.virtualmethodstudio.com/manual/6.3/fluidrendering.html Quote:Setting up fluid rendering is done in a slightly different way depending on which scriptable render pipeline you're using. Note the HDRP rendering pipeline is not currently supported: Because of limitations in URP's renderer feature system, it is currently not possible to have multiple fluid renderers rendering specific emitters in the same scene. kind regards, RE: How to render transparent and opaque fluid particles with URP - PureSpark - 16-06-2023 (23-05-2023, 09:42 AM)josemendez Wrote: Hi there,Thanks, but you mentioned this in your response 6 months ago. "In the future, we want to work around this by ceasing to use renderer features and instead write a custom renderer for URP." So it is possible? Is there an ETA? RE: How to render transparent and opaque fluid particles with URP - josemendez - 17-06-2023 (16-06-2023, 04:54 PM)PureSpark Wrote: Thanks, but you mentioned this in your response 6 months ago. Hi, Obi 7 (which is currently undergoing beta) allows for this, by using rendering passes. These are scriptable objects that relate specific fluid emitters to specific fluid renderer features. This allows you to have multiple renderer features in URP, each one rendering a specific subset of emitters in the scene. See: http://obi.virtualmethodstudio.com/forum/thread-3849.html http://obi.virtualmethodstudio.com/manual/7.0/fluidrendering.html |