Godot River Add-on WIP 2 - Getting closer. Flowmaps and Foam

Поделиться
HTML-код
  • Опубликовано: 3 ноя 2024
  • After a ton of work I've gotten to the point where I can calculate a collision map of my generated river and turn that collision map into a distance map. I then used that distance map to generate a flow map and foam map. Still doing a few of these steps manually at the moment, but soon it should all be automated with a single bake function.
    Repository:
    github.com/Arn...
    Join me on Patreon:
    / arnklit

Комментарии • 8

  • @me2beats313
    @me2beats313 4 года назад +1

    Great as always

  • @НеизвестныйЯ-г4ь
    @НеизвестныйЯ-г4ь 4 года назад +1

    Awesome work!

  • @НеизвестныйЯ-г4ь
    @НеизвестныйЯ-г4ь 4 года назад +1

    But it seemed to me that flowmaps worked correctly before. You also need to add a little transparency around the edges of the water and objects, so that a clear line doesn't catch your eye. You can also blur the image under water depending on the transparency of the water itself. I saw that You were setting the law for her.)) so you can use texture ("SCREEN_TEXTURE, uv, beerfactory") to make the image cloudy with opaque water and clear with transparent water. And you have seam. Not tiling texture?

    • @KasperFrandsen
      @KasperFrandsen  4 года назад

      Here is a better example of the flowmaps. There was a bug in the video version. twitter.com/KasperArnklit/status/1327994544466644992. The seam is just because of how I'm generating the texture at the moment, that will be gone when I start applying the filters directly inside godot with margins set up. There is a lot of work still to be done on the shader with regards to depth and transparency and better refraction, but I just need to get the flowmaps finished first.

    • @НеизвестныйЯ-г4ь
      @НеизвестныйЯ-г4ь 4 года назад

      @@KasperFrandsen Thanks! I'm waiting for this Shader. And Yes, working with ripples and refraction is very difficult, for example, I did not succeed beautifully.

  • @paulojonathan3161
    @paulojonathan3161 4 года назад

    Can I use it on my project will credit you, of course.

    • @KasperFrandsen
      @KasperFrandsen  4 года назад +1

      Hi Paulo, yes you are very welcome to use it. It's all under MIT license. I would however recommend giving me a few more weeks to work on it before trying it out, since it is not at all very user friendly. I'll make a release of it on github and the asset library when it's ready and post a video about it.

    • @paulojonathan3161
      @paulojonathan3161 4 года назад

      Sure man take all the time you need , I opened the project to see what's going on and man I had no idea idea what to do after a few minutes I could see the river and it's great.