Obi Official Forum
Particle color in simpleFluidRenderer - 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: Particle color in simpleFluidRenderer (/thread-1011.html)



Particle color in simpleFluidRenderer - anonymous - 25-03-2019

Hi.

I'm trying to get a very bright green but the color rendered is much darker than the one set in the fluid material inside simpleFluidRenderer. See incl. pics below. I've tried different things but I can't find the solution. Nothing similar found on the web. What am I missing? This should be simple.


[attachment=304][attachment=305]


RE: Particle color in simpleFluidRenderer - josemendez - 25-03-2019

(25-03-2019, 10:54 AM)anonymous Wrote: Hi.

I'm trying to get a very bright green but the color rendered is much darker than the one set in the fluid material inside simpleFluidRenderer. See incl. pics below. I've tried different things but I can't find the solution. Nothing similar found on the web. What am I missing? This should be simple.
The included simple fluid shader performs multiplicative blending between the background color (dark blue in your case) and the fluid color.

You're supposed to write your own fluid shaders, the included one is just a sample. To get a flat color shader, modify the last line of the shader to be:
Code:
return _Color;

instead of
Code:
return output*_Color;



RE: Particle color in simpleFluidRenderer - anonymous - 25-03-2019

Purrrrfect! Thank you for quick reply.