Obi Official Forum
Help Mulitple color in Simple Fluid. - 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 Mulitple color in Simple Fluid. (/thread-2262.html)



Mulitple color in Simple Fluid. - Hassan Sohail - 22-05-2020

Hi,
I am new to Obi Fluid. How can I use different Emitter with different colors in Sample Fluid Scene?


RE: Mulitple color in Simple Fluid. - josemendez - 23-05-2020

(22-05-2020, 07:43 PM)Hassan Sohail Wrote: Hi,
I am new to Obi Fluid. How can I use different Emitter with different colors in Sample Fluid Scene?

Hi,

The SimpleFluidRenderer does not support per-particle colors for performance reasons.  See:
http://obi.virtualmethodstudio.com/tutorials/customparticlerendering.html

Quote:ObiSimpleFluidRenderer: Will render 2D fluid without depth testing, refraction, uniform color, no lightning, at half screen resolution. This is useful for mobile devices and less powerful GPUs.

If you wish to add per-particle color support, either write your own custom fluid renderer (see the link above), or modify the SimpleFluidRenderer to write particle colors in the rgb channels of the thickness buffer, and modify SimpleFluid.shader to modulate the overall fluid color by the color read from the thickness buffer. You can take the regular FluidRenderer as reference for this.

kind regards,


RE: Mulitple color in Simple Fluid. - hungseparate - 17-07-2020

(23-05-2020, 10:28 AM)josemendez Wrote: Hi,

The SimpleFluidRenderer does not support per-particle colors for performance reasons.  See:
http://obi.virtualmethodstudio.com/tutorials/customparticlerendering.html


If you wish to add per-particle color support, either write your own custom fluid renderer (see the link above), or modify the SimpleFluidRenderer to write particle colors in the rgb channels of the thickness buffer, and modify SimpleFluid.shader to modulate the overall fluid color by the color read from the thickness buffer. You can take the regular FluidRenderer as reference for this.

kind regards,

Can i some how get this multi color renderer from you like a package update or example script ?
I have no exp with shader, so i dont know how to customize it