Compute-Shaders-Fluid-Dynamic- icon indicating copy to clipboard operation
Compute-Shaders-Fluid-Dynamic- copied to clipboard

Obstacles not working correctly?

Open Necronomison opened this issue 1 year ago • 2 comments

Hi there!

First off, thank you so very much @IRCSS for all your work on this project. As a complete shader noob, I'm trying to learn a lot from your work (and have gone down a rabbit hole of all your other VFX stuff...incredible!).

Onto the problem: I pulled down the project and tried running the vast land scene. I wanted to play around a bit more with obstacles, so I created a new primitive cube object in the scene, attached the FluidObstacles tag and ran the scene. Unfortunately, it seems like the fog just passes right through and doesn't get blocked by the obstacle as I would have expected.

Investigation / Observations:

  • Upon further inspection, I noticed that perhaps all of the obstacles (the existing mountain mesh) might not be quite working as shown in your video (symptom of a bigger issue?). Compared to the video you made, it looks like perhaps the fog is passing through even the mountain hills?
  • To test the previous point, I tried removing the FluidObstacles tag from the TheVastLand3/MainMesh object, and re-running the scene. The fog seems to behave the same way with or without the tag, which perhaps indicates that indeed something else is broken?
  • The fog also seems to be emitting at a really high rate than shown in the video. Not sure if this is a related issue, or an issue at all.
  • Finally, I thought perhaps this may be due to me trying the project in Unity 2022. I pulled a fresh clone, and instead downloaded the 2019 version mentioned in the readme, but I'm still seeing the same behaviour

Heres a gif that shows the fog interacting (or rather not) with the hills and the cube object (i've adjusted it's scale): obstacles_not_working_cmprsd

Necronomison avatar Jun 24 '24 23:06 Necronomison

Ok so some updates.

It looks like sometimes the render texture being generated for the obstacle is turning out black. I can't tell what the repro for this is. Sometimes the render texture looks normal (like whats shown in your blog post), other times it looks like this:

image

Necronomison avatar Jun 25 '24 00:06 Necronomison

Same issue here, not sure what is causing it either, also had a fully colored renderer texture with experimentation, and sometimes reverting to what was previously set up by the author wont restore the texture properly either.

ndumais avatar Feb 14 '25 15:02 ndumais