Programming Flow Fields

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • Use flow fields to create beautiful patterns. Program with Java (processing) to create flow fields that can be used to procedurally generate colorful images or simulate the movement of particles through complex fields of forces.

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

  • @ZinkIThink
    @ZinkIThink 10 месяцев назад +2

    This is a fantastic video. Very interesting concept and lovely demonstration of Processing as well! Please keep up the incredible work, it's wonderful to see content like this.

    • @programmingchaos8957
      @programmingchaos8957  10 месяцев назад +1

      Thank you! I'm glad you enjoyed it. If there are topics you'd be particularly interested in, please let me know. I'm always looing for new ideas.

  • @nand3kudasai
    @nand3kudasai 2 месяца назад

    This is really cool.
    You should try with particles that die after some time and respawn randomly. Maybe moving the flowfield.
    Im sure you know this but to map a number N (0,1) to 0, Max. You can simply do N*Max. The beauty of normalized values.
    Or 0,1 > a,b = a + n*(b-a) (iirc)
    Which is useful on vectors.

    • @programmingchaos8957
      @programmingchaos8957  2 месяца назад

      I'm glad you enjoyed it. The dying and respawning is clever idea, I'll have to give it a try.
      Thanks for the comment about N*Max. I tend to fall into the habit of using the same tools even when they are not ideal. In this case I had been using map() a lot and didn't stop to think about the simpler approach.

  • @VivekHaldar
    @VivekHaldar 10 месяцев назад

    Great explanation. I'd seen genart based on flow fields but this really demystified it for me.

  • @wissen37
    @wissen37 10 месяцев назад

    an interesting and informative video, i liked your channel.

    • @programmingchaos8957
      @programmingchaos8957  10 месяцев назад +1

      Thank you! I try to get a new video posted every few weeks. If there's any topics you would like to see please let me know. I'm always looking for fun new projects.

  • @prietjepruck
    @prietjepruck 10 месяцев назад

    Thanks Terry. You made an other clear explanation of a difficult concept.

    • @programmingchaos8957
      @programmingchaos8957  10 месяцев назад

      I'm glad it was clear. I was worried that some of the discussion about applying forces to the particles wasn't great.

  • @christopherbitikofer257
    @christopherbitikofer257 10 месяцев назад

    Thanks for posting this! It's really interesting to see. I'll have to see if I can apply it to make some control systems art!

    • @programmingchaos8957
      @programmingchaos8957  10 месяцев назад

      I'm glad you enjoyed it. If you create anything you want to share feel free to post a link in the comments are let me know and I may be able to mention it in a future video.

  • @AlmogD
    @AlmogD 7 месяцев назад

    Just finished implementing a vector field illustrator in C after taking inspiration from your video :)
    Love your channel

    • @programmingchaos8957
      @programmingchaos8957  7 месяцев назад +1

      I'm glad it was helpful. Which graphics library do you use with C?

    • @AlmogD
      @AlmogD 7 месяцев назад +1

      @@programmingchaos8957 I use the SDL library for linux

    • @AlmogD
      @AlmogD 7 месяцев назад

      I use the SDL library for linux@@programmingchaos8957

  • @zachmartin1811
    @zachmartin1811 10 месяцев назад

    Really well put together video and great explanation, thoroughly enjoyed thanks!

    • @programmingchaos8957
      @programmingchaos8957  10 месяцев назад +1

      Thank you! I'm always on the look out for new topics. If there's anything you think would be interesting or would like to see explained, please let me know.

  • @programmingchaos8957
    @programmingchaos8957  10 месяцев назад

    EnslavedInTheScrolls on Reddit suggested a number of links with even more fun things to try with flow fields:
    www.reddit.com/r/generative/comments/mp2020/well_thats_a_twist/ a very colorful image based on careful selection of the flow field
    www.reddit.com/r/generative/comments/muib0b/twisted_texture_2k/ and with some added noise
    www.reddit.com/r/generative/comments/n7hnsc/57th_flow/ more patterns
    www.reddit.com/r/generative/comments/nndv7v/warped_weft/
    www.reddit.com/r/generative/comments/s4tckg/genuary2022_martian_sandstone/ using angles to generate the hues

  • @ozodbekjuraev9268
    @ozodbekjuraev9268 10 месяцев назад

    How do you do this? I love math and I want to do projects like this? What programming tools do I need. I have a knowledge of backend programming

    • @programmingchaos8957
      @programmingchaos8957  10 месяцев назад +1

      Hi! It's all done using Processing, which is really an environment for easy graphical programming using Java. You can download Processing for free here: www.processing.org. It takes about 3 minutes to download and install and is super easy (download, unzip, open the folder, start-up processing.exe). If you're new to Processing some of my other videos are a bit simpler projects and I spend more time on the basics of Processing: ruclips.net/video/T-_OTFEP7rg/видео.html, ruclips.net/video/tWqeWJikOCI/видео.html, and ruclips.net/video/_OgU-F0bpoQ/видео.html are all pretty good for getting started.

    • @ozodbekjuraev9268
      @ozodbekjuraev9268 10 месяцев назад

      @@programmingchaos8957 thank you so much, what other programming language can I write? I'm familiar with PHP, python and JavaScript.

    • @programmingchaos8957
      @programmingchaos8957  10 месяцев назад +1

      Using Javascript you should be able to create a canvas and do similar drawing operations to it. Or in Python using either the pygame or turtle libraries should allow you to do similar drawing. But I'm not familiar enough with either of them to know how much you would need to modify the code.

  • @programmingchaos8957
    @programmingchaos8957  10 месяцев назад

    And for even more on different types of images that can be generated with flow fields I would recommend Tyler Hobbs' website: tylerxhobbs.com/essays/2020/flow-fields.