Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mesh and Fluid Problem
#65
(09-01-2020, 03:23 PM)sc00b Wrote: Blend One One - this mode creates a red center and white in a circle, but in the end everything is white)

Make sure the background buffer is cleared to black, not white. If you add any color to white, you'll of course get white. In additive blending,  you need to start from black and gradually add color to it. In multiplicative blending, you start from white and gradually remove color from it. Like in the image I posted depicting both blending modes.

So in the ObiSimpleFluidRendererColored file I provided, change this line:

Code:
renderFluid.ClearRenderTarget(true,true, new Color(1, 1, 1, 0));

to this:

Code:
renderFluid.ClearRenderTarget(true,true, new Color(0, 0, 0, 0));
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