Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Fluid not rendering in build
#3
(01-08-2024, 07:58 AM)josemendez Wrote: Hi,

I'm unable to reproduce this, fluid renders fine in windows builds for us. Which backend are you using (Burst or Compute?) Which render pipeline? Unity version?

kind regards,

Unity 2022.3.20
URP 14.0.10
Burst 1.8.17

I have Obi Solver using the Compute backend.  Testing in Editor, I get decent performance with Compute, but with Burst the frame rate bogs right down.  I've made a test build using Burst, and the same thing happens.

Possibly related, the following shader error comes up during the building process:
Quote:Shader error in 'Shader Graphs/IndirectTransparent': invalid subscript 'shadowCoord' at 2024/usaf-hangar-hush-house/HushHouse.Unity/Library/PackageCache/com.unity.shadergraph@14.0.10/Editor/Generation/Targets/BuiltIn/Editor/ShaderGraph/Includes/Varyings.hlsl(132) (on d3d11)

Compiling Subshader: 1, Pass: DepthOnly, Vertex program with _MAIN_LIGHT_SHADOWS _SHADOWS_SOFT
Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: INSTANCING_ON SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING _MAIN_LIGHT_SHADOWS_CASCADE
...though I'd have thought if this was the cause of the problem, it wouldn't work in the Editor either.

A few more details...

I have Obi Fluid Surface Mesher set to Opaque.
I'm using a normal map, but no diffuse map.

Renderer features in use: (in order)
1) Obi Fluid Renderer
2) Screen Space Ambient Occlusion
3) Beautify

The URP pipeline asset has Depth Texture & Opaque Texture enabled, as well as SRP Batcher--but not Dynamic Batching.

The Camera has post-processing enabled and a second overlay camera in the stack.
Reply


Messages In This Thread
Fluid not rendering in build - by Barliesque - 01-08-2024, 03:01 AM
RE: Fluid not rendering in build - by josemendez - 01-08-2024, 07:58 AM
RE: Fluid not rendering in build - by Barliesque - 01-08-2024, 10:13 PM
RE: Fluid not rendering in build - by josemendez - 02-08-2024, 07:49 AM
RE: Fluid not rendering in build - by Barliesque - 03-08-2024, 10:54 PM
RE: Fluid not rendering in build - by josemendez - 05-08-2024, 08:41 AM
RE: Fluid not rendering in build - by Barliesque - 05-08-2024, 10:26 PM
RE: Fluid not rendering in build - by Barliesque - 02-08-2024, 12:10 AM