Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obstacles not working correctly? #2

Open
WolvenBard opened this issue Jun 24, 2024 · 1 comment
Open

Obstacles not working correctly? #2

WolvenBard opened this issue Jun 24, 2024 · 1 comment

Comments

@WolvenBard
Copy link

WolvenBard commented Jun 24, 2024

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

@WolvenBard
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant