Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Mixing Fluids
#45
(25-08-2022, 11:35 AM)khanx078 Wrote: can i share the project with you. and What i am trying to create is a mobile game in which there is a paint bucket , we pour colors into it and mix them, then paint different stuff with it 3D. Would this asset be something I can use. let me share some screenshots to get your feedback on it, because I do not want to start if its not possible with the asset , as I am facing alot of performance issues in such a simple scene

I wouldn't use Obi for this use case at all.

First: using a particle-based simulation of any kind for this is *absolute overkill*. You're only interested in showing how the colors get mixed in the bucket, there's no need whatsoever to have volumetric fluid dynamics simulation: you don't care about pressure, vorticity, surface tension, friction, free-surface interfaces, collision with the bucket walls, etc... so these are just burning a lot of performance for no good reason.

Second: paint mixing does not behave the same way as digital color mixing. When you mix yellow and blue paint in the real world you get green, when you mix yellow and blue colors in RGB you get gray: (1,1,0 + 0,0,1) * 0.5 = 0.5,0.5,0.5. This is how color behaves in most software, including Unity and by extension, Obi.

To accurately approximate paint mixing in a digital setting you must use a more advanced color representation, such as the Kubelka-Munk model or some approximation of it. The Mixbox model is a relatively cheap way of doing this: https://scrtwpns.com/mixbox.pdf

Leaving the color mixing issue aside, if you want to show the swirly motion on the surface of the bucket as the paint gets mixed a grid-based fluid simulator can do it for a fraction of the cost. Our asset FluXY is a good example of this kind of system, though there's many others in the Asset Store that do a similar thing: https://assetstore.unity.com/packages/to...tor-203795

Note that even if you use a fluid simulator of this kind, accurate paint mixing (if desired) is still something that you must implement yourself.

Let me know if you wish for a refund for Obi Fluid, in that case please let send your Invoice Number to support(at)virtualmethodstudio.com so that I can identify your purchase.
Reply


Messages In This Thread
Mixing Fluids - by canaydiin - 28-03-2022, 12:00 PM
RE: Mixing Fluids - by josemendez - 28-03-2022, 12:15 PM
RE: Mixing Fluids - by canaydiin - 28-03-2022, 01:14 PM
RE: Mixing Fluids - by josemendez - 28-03-2022, 02:49 PM
RE: Mixing Fluids - by canaydiin - 28-03-2022, 10:20 PM
RE: Mixing Fluids - by josemendez - 29-03-2022, 07:31 AM
RE: Mixing Fluids - by canaydiin - 29-03-2022, 01:48 PM
RE: Mixing Fluids - by josemendez - 29-03-2022, 02:18 PM
RE: Mixing Fluids - by canaydiin - 29-03-2022, 02:53 PM
RE: Mixing Fluids - by josemendez - 29-03-2022, 02:59 PM
RE: Mixing Fluids - by canaydiin - 30-03-2022, 07:29 AM
RE: Mixing Fluids - by josemendez - 30-03-2022, 07:45 AM
RE: Mixing Fluids - by canaydiin - 30-03-2022, 07:51 AM
RE: Mixing Fluids - by josemendez - 30-03-2022, 08:13 AM
RE: Mixing Fluids - by canaydiin - 30-03-2022, 08:22 AM
RE: Mixing Fluids - by josemendez - 30-03-2022, 08:24 AM
RE: Mixing Fluids - by canaydiin - 30-03-2022, 08:33 AM
RE: Mixing Fluids - by josemendez - 30-03-2022, 09:12 AM
RE: Mixing Fluids - by canaydiin - 30-03-2022, 09:15 AM
RE: Mixing Fluids - by josemendez - 30-03-2022, 09:18 AM
RE: Mixing Fluids - by khanx078 - 23-08-2022, 10:21 AM
RE: Mixing Fluids - by josemendez - 23-08-2022, 04:56 PM
RE: Mixing Fluids - by khanx078 - 24-08-2022, 04:53 AM
RE: Mixing Fluids - by josemendez - 24-08-2022, 07:32 AM
RE: Mixing Fluids - by khanx078 - 24-08-2022, 08:51 AM
RE: Mixing Fluids - by josemendez - 24-08-2022, 10:18 AM
RE: Mixing Fluids - by khanx078 - 24-08-2022, 12:22 PM
RE: Mixing Fluids - by josemendez - 24-08-2022, 12:50 PM
RE: Mixing Fluids - by khanx078 - 24-08-2022, 01:10 PM
RE: Mixing Fluids - by josemendez - 24-08-2022, 01:39 PM
RE: Mixing Fluids - by khanx078 - 25-08-2022, 03:33 AM
RE: Mixing Fluids - by josemendez - 25-08-2022, 07:57 AM
RE: Mixing Fluids - by khanx078 - 25-08-2022, 08:49 AM
RE: Mixing Fluids - by josemendez - 25-08-2022, 09:44 AM
RE: Mixing Fluids - by khanx078 - 25-08-2022, 10:05 AM
RE: Mixing Fluids - by josemendez - 25-08-2022, 10:23 AM
RE: Mixing Fluids - by khanx078 - 25-08-2022, 10:35 AM
RE: Mixing Fluids - by josemendez - 25-08-2022, 11:04 AM
RE: Mixing Fluids - by khanx078 - 25-08-2022, 11:35 AM
RE: Mixing Fluids - by josemendez - 25-08-2022, 11:57 AM
RE: Mixing Fluids - by khanx078 - 25-08-2022, 12:07 PM
RE: Mixing Fluids - by josemendez - 25-08-2022, 12:11 PM