Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mesh and Fluid Problem
#21
(13-12-2019, 10:01 AM)josemendez Wrote: Hi,

I found the culprit, seems like a bug in Unity. Turns out the camera depth texture accessible to the shaders isn't cleared to the correct value in OpenGLES unless the camera is explicitly told to render a depth texture. I will raise a bug report.

Found out that I had a regular (deactivated) FluidRenderer attached to the camera. The presence of this renderer set the camera depthTextureMode, so the SimpleFluidRenderer worked well.

Removing the FluidRenderer allowed me to reproduce the issue.

Simply adding this line to the SimpleFluidRenderer's Setup() method fixes it:
Code:
GetComponent<Camera>().depthTextureMode |= DepthTextureMode.Depth;

Attaching the updated SimpleFluidRenderer for convenience.
Excellent) now it works like you) thanks.
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