GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Nikita Lisitsa (lisyarus@mastodon.gamedev.place)'s status on Monday, 27-Jan-2025 05:28:07 JST Nikita Lisitsa Nikita Lisitsa

    I'm in the middle of huge refactoring, so I decided to take a break and do some water sim again. This time using the virtual pipes model, it turned out to be amazingly simple.

    Don't have time for a fancy 3D viz, but still this might be the best shallow water sim I've made :)

    In conversation about 4 months ago from mastodon.gamedev.place permalink

    Attachments


    • Embed this notice
      The Seven Voyages Of Steve (sinbad@mastodon.gamedev.place)'s status on Monday, 27-Jan-2025 05:28:03 JST The Seven Voyages Of Steve The Seven Voyages Of Steve
      in reply to

      @lisyarus assigning to flowx / flowy functions weirded me out at first but they both return references I guess? I haven’t really seen that pattern before but I guess it’s better than raw array access (assuming inlined)

      In conversation about 4 months ago permalink
    • Embed this notice
      Nikita Lisitsa (lisyarus@mastodon.gamedev.place)'s status on Monday, 27-Jan-2025 05:28:04 JST Nikita Lisitsa Nikita Lisitsa
      in reply to
      • Philip Trettner

      @artificialmind Here's the whole update code. bed is NxN array of terrain elevation, water is NxN water column height (so bed + water is the height of water surface), flowx is (N+1)xN of horizontal pipes, and similarly flowy is Nx(N+1) for vertical pipes.

      In conversation about 4 months ago permalink

      Attachments


      1. https://cdn.masto.host/mastodongamedevplace/media_attachments/files/113/878/581/763/499/524/original/0a069d358f376a6f.png
    • Embed this notice
      Nikita Lisitsa (lisyarus@mastodon.gamedev.place)'s status on Monday, 27-Jan-2025 05:28:05 JST Nikita Lisitsa Nikita Lisitsa
      in reply to
      • Philip Trettner

      @artificialmind I'm using this paper: https://diglib.eg.org/bitstream/handle/10.2312/vriphys20181067/045-054.pdf (section 3.1 is the main stuff), without viscosity & without any multi-layer stuff, together with outflow scaling that they mention from this paper https://inria.hal.science/inria-00402079/document

      In conversation about 4 months ago permalink

      Attachments



    • Embed this notice
      Philip Trettner (artificialmind@fosstodon.org)'s status on Monday, 27-Jan-2025 05:28:06 JST Philip Trettner Philip Trettner
      in reply to

      @lisyarus nice! Do you have a good reference for the virtual pipes model? I did shallow water equations using the discrete exterior calculus in my masters thesis but was disappointed by the "flow feeling"

      In conversation about 4 months ago permalink
    • Embed this notice
      Nikita Lisitsa (lisyarus@mastodon.gamedev.place)'s status on Monday, 27-Jan-2025 05:42:36 JST Nikita Lisitsa Nikita Lisitsa
      in reply to
      • The Seven Voyages Of Steve

      @sinbad Oh, that's my N-d array class with overloaded operator() (because multi-argument operator[] is only in C++23), and yep, it returns a reference!

      In conversation about 4 months ago permalink
    • Embed this notice
      The Seven Voyages Of Steve (sinbad@mastodon.gamedev.place)'s status on Monday, 27-Jan-2025 07:20:14 JST The Seven Voyages Of Steve The Seven Voyages Of Steve
      in reply to

      @lisyarus ahh yeah - I quite like it

      In conversation about 4 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.