Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Chemical reactions
#4
(02-06-2019, 07:40 PM)josemendez Wrote: 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,

 Hi! I was wondering if there could be a feature for Obi Fluid that could mix 2 or more particle properties into a single particle. This could simulate a lot of chemical reaction based on molecular changes. I've been playing with ObiFluid for a couple of weeks and Im fastinated with its potential since all seems to work in an organic way. This is the hardest aproach to Unity from physics concepts that I've seen this far!
Reply


Messages In This Thread
Chemical reactions - by bogdanTNT - 02-06-2019, 05:12 PM
RE: Chemical reactions - by josemendez - 02-06-2019, 07:40 PM
RE: Chemical reactions - by Charlie Rubio - 04-06-2019, 08:56 AM
RE: Chemical reactions - by josemendez - 04-06-2019, 09:21 AM
RE: Chemical reactions - by bogdanTNT - 03-06-2019, 06:39 AM