02-06-2019, 07:40 PM
(This post was last modified: 02-06-2019, 07:41 PM by josemendez.)
(02-06-2019, 05:12 PM)bogdanTNT Wrote: I bought obi fluid a couple of days ago and I still have not figured out how to make chemical reactions like in the video demo. There isn't even a demo scene to test.
Guys, send help pls
Yes there is a demo scene included, it's called "FluidMixing". Set up two fluid materials, give them different diffusion data values (there are 4 channels that can be used for diffusion, the sample scene only uses the first one). Also set the "diffusion" property to some low value, e.g. 0.002. This controls the diffusion/reaction speed.
Then, write a script that gets the "userData" values for each particle and maps the diffusion data to color, viscosity, density, or any other particle property.
The sample scene uses the "ObiFluidPropertyColorizer" sample script, which maps diffusion data to a color using a gradient.
kind regards,