Fluidsim (interactions only) not visible when packaged.

Hi, I’m having an issue in 4.27 where BP_Fluidsim_01 from the water plugin does not create visual waves when packaged (but works perfectly in editor).

Everything else in the packaged game seems to be working. Water itself is there, and waves added to the level water bodies directly are as they should be. There are also no water related warnings or errors when packaging.

I’ve probed a bit and Fluidsim seems to have the correct data - its registering forces and has the correct information to try to draw. Its just missing the actual visual waves. I’m wondering if there’s a potential issue with a texture or render target.

I appreciate any help in advance!

I was able to find a solution, hopefully this helps someone else too.

The issue was M_Fluid_Sim_Force_Component when not using the ‘constant water depth’ option. More specifically, I believe it was a problem trying to read MPC_Landscape. The solution for me was to bypass this by making the highlighted lerp node always accept alpha=0 and by editing the WaterZ parameter to incorporate height.

In BP_FluidSim_01, I made the following two changes:

  1. In function “Setup SIM MID and MPC Values,” I set “Set Scalar Parameter Value” for “LandscapeWaterSystem” to always be 0.

  1. In function “Draw Dynamic Force,” I spliced in “Set Scalar Parameter Value” for “WaterZ” and set it to the Z height of the [dynamic] ‘Force Component’.