Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mesh and Fluid Problem
#60
(28-12-2019, 09:49 PM)sc00b Wrote: I understand how your system works, but in life it’s not. In the gradient picture, it is shown that if you mix 50 to 50, you get a grayish tint. Here's how to get it? Change the script, but which one?

p.s. Yellow with red, it turns orange, but if you mix red and green you should get a different color, but definitely not black) understand?)

Nope, I don’t understand. When using diffusion, the colors you get are the ones defined in the gradient (could not get a color that’s not in the gradient, as it is directly evaluated using interpolation). You don’t need to change any script for this to happen. Simply ensure your fluid materials have diffusion > 0 and one of them has non zero diffusion channels. This is what the fluid mixing sample scene does, try it.

When not using diffusion, if you mix red and green (using multiplicative blending) you can only get black. This is also how it works in real life: try mixing red ink and green ink, you’ll get black, as you’d get when mixing any complementary colors. (See https://www.google.es/amp/s/m.wikihow.co...ck%3famp=1). It is mathematically impossible to get anything but black when multiplying red and green, as I demonstrated earlier:

Red: (1,0,0)
Green: (0,1,0)
Red * Green: (1,0,0)*(0,1,0) = (0,0,0) = black.

If using additive blending, you’d get yellow instead (this is how light blends in real life). You can change the blending mode in FluidColorsBlendSimple.shader as I mentioned before. I also gave you a link to Unity’s reference page on blending modes, so honestly I don’t know what else to do.

This is getting extremely confusing for me, I no longer know if anything I said makes any sense to you. If you could share your project with me I think things would be easier for both of us. You can send it to support(@)virtualmethodstudio.com and I’ll take a look at it.
Reply


Messages In This Thread
Mesh and Fluid Problem - by sc00b - 12-12-2019, 11:32 AM
RE: Mesh and Fluid Problem - by josemendez - 12-12-2019, 11:34 AM
RE: Mesh and Fluid Problem - by sc00b - 12-12-2019, 01:57 PM
RE: Mesh and Fluid Problem - by josemendez - 12-12-2019, 02:19 PM
RE: Mesh and Fluid Problem - by sc00b - 12-12-2019, 02:22 PM
RE: Mesh and Fluid Problem - by josemendez - 12-12-2019, 02:23 PM
RE: Mesh and Fluid Problem - by sc00b - 12-12-2019, 02:32 PM
RE: Mesh and Fluid Problem - by josemendez - 12-12-2019, 02:42 PM
RE: Mesh and Fluid Problem - by sc00b - 12-12-2019, 08:20 PM
RE: Mesh and Fluid Problem - by josemendez - 13-12-2019, 08:27 AM
RE: Mesh and Fluid Problem - by sc00b - 13-12-2019, 08:30 AM
RE: Mesh and Fluid Problem - by josemendez - 13-12-2019, 08:44 AM
RE: Mesh and Fluid Problem - by sc00b - 13-12-2019, 08:49 AM
RE: Mesh and Fluid Problem - by josemendez - 13-12-2019, 08:53 AM
RE: Mesh and Fluid Problem - by sc00b - 13-12-2019, 09:10 AM
RE: Mesh and Fluid Problem - by josemendez - 13-12-2019, 09:26 AM
RE: Mesh and Fluid Problem - by sc00b - 13-12-2019, 09:41 AM
RE: Mesh and Fluid Problem - by josemendez - 13-12-2019, 09:47 AM
RE: Mesh and Fluid Problem - by sc00b - 13-12-2019, 09:56 AM
RE: Mesh and Fluid Problem - by josemendez - 13-12-2019, 10:01 AM
RE: Mesh and Fluid Problem - by sc00b - 13-12-2019, 10:08 AM
RE: Mesh and Fluid Problem - by josemendez - 13-12-2019, 10:10 AM
RE: Mesh and Fluid Problem - by sc00b - 16-12-2019, 10:07 PM
RE: Mesh and Fluid Problem - by josemendez - 17-12-2019, 08:02 AM
RE: Mesh and Fluid Problem - by sc00b - 17-12-2019, 08:37 AM
RE: Mesh and Fluid Problem - by josemendez - 17-12-2019, 08:48 AM
RE: Mesh and Fluid Problem - by sc00b - 17-12-2019, 08:51 AM
RE: Mesh and Fluid Problem - by josemendez - 17-12-2019, 08:53 AM
RE: Mesh and Fluid Problem - by sc00b - 17-12-2019, 01:07 PM
RE: Mesh and Fluid Problem - by josemendez - 17-12-2019, 02:07 PM
RE: Mesh and Fluid Problem - by sc00b - 17-12-2019, 06:14 PM
RE: Mesh and Fluid Problem - by josemendez - 17-12-2019, 06:37 PM
RE: Mesh and Fluid Problem - by sc00b - 21-12-2019, 09:20 AM
RE: Mesh and Fluid Problem - by josemendez - 21-12-2019, 03:59 PM
RE: Mesh and Fluid Problem - by sc00b - 22-12-2019, 06:55 AM
RE: Mesh and Fluid Problem - by josemendez - 22-12-2019, 06:57 PM
RE: Mesh and Fluid Problem - by sc00b - 23-12-2019, 05:44 PM
RE: Mesh and Fluid Problem - by sc00b - 25-12-2019, 02:14 PM
RE: Mesh and Fluid Problem - by josemendez - 26-12-2019, 10:40 AM
RE: Mesh and Fluid Problem - by sc00b - 26-12-2019, 04:47 PM
RE: Mesh and Fluid Problem - by josemendez - 26-12-2019, 06:25 PM
RE: Mesh and Fluid Problem - by sc00b - 26-12-2019, 07:26 PM
RE: Mesh and Fluid Problem - by josemendez - 26-12-2019, 09:51 PM
RE: Mesh and Fluid Problem - by sc00b - 26-12-2019, 10:25 PM
RE: Mesh and Fluid Problem - by josemendez - 27-12-2019, 10:22 AM
RE: Mesh and Fluid Problem - by sc00b - 27-12-2019, 01:07 PM
RE: Mesh and Fluid Problem - by josemendez - 27-12-2019, 01:12 PM
RE: Mesh and Fluid Problem - by sc00b - 27-12-2019, 02:09 PM
RE: Mesh and Fluid Problem - by josemendez - 27-12-2019, 02:33 PM
RE: Mesh and Fluid Problem - by sc00b - 27-12-2019, 09:44 PM
RE: Mesh and Fluid Problem - by josemendez - 27-12-2019, 10:09 PM
RE: Mesh and Fluid Problem - by sc00b - 27-12-2019, 11:13 PM
RE: Mesh and Fluid Problem - by josemendez - 27-12-2019, 11:19 PM
RE: Mesh and Fluid Problem - by sc00b - 27-12-2019, 11:28 PM
RE: Mesh and Fluid Problem - by josemendez - 28-12-2019, 12:05 AM
RE: Mesh and Fluid Problem - by sc00b - 28-12-2019, 07:46 PM
RE: Mesh and Fluid Problem - by josemendez - 28-12-2019, 08:46 PM
RE: Mesh and Fluid Problem - by sc00b - 28-12-2019, 09:49 PM
RE: Mesh and Fluid Problem - by josemendez - 29-12-2019, 12:28 AM
RE: Mesh and Fluid Problem - by sc00b - 29-12-2019, 11:54 AM
RE: Mesh and Fluid Problem - by josemendez - 29-12-2019, 01:17 PM
RE: Mesh and Fluid Problem - by sc00b - 29-12-2019, 02:36 PM
RE: Mesh and Fluid Problem - by sc00b - 09-01-2020, 03:23 PM
RE: Mesh and Fluid Problem - by josemendez - 09-01-2020, 03:35 PM
RE: Mesh and Fluid Problem - by sc00b - 09-01-2020, 04:50 PM
RE: Mesh and Fluid Problem - by josemendez - 09-01-2020, 05:10 PM
RE: Mesh and Fluid Problem - by sc00b - 09-01-2020, 05:24 PM
RE: Mesh and Fluid Problem - by josemendez - 09-01-2020, 06:00 PM
RE: Mesh and Fluid Problem - by BelieveShuai - 21-12-2019, 01:38 PM