Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Flock Modifier

    General Talk
    4
    8
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Rambenwal
      last edited by

      Hello folks!

      I have a project that I am working on for a client, and I need to show a flock of different elements so I did a search on the internet and found a tutorial on youtube that is perfect for what I need. The plugin (free) is called Flock Modifier, it allows us to make particle objects flock like birds or a school of fish. I have contacted the creator Frank Willeke who currently lives in Germany to ask him if he had come up with an updated plugin for R21 and he responded the following:

      Hi Joe, I currently don’t have the time to work on the plugin to R21. But it’s open-source, so basically anybody can do it. Maybe posting on the forums and asking for help there might work out?

      Can anybody on this forum help? Here is the link for the youtube tutorial:

      and Frank's Wileke's website is: https://www.frankwilleke.de/site/

      I am Mac-based and hope that someone in the forum can help. Thank you all.

      Cheers,

      Joe García

      1 Reply Last reply Reply Quote 0
      • fwilleke80F
        fwilleke80
        last edited by

        Hey Joe,

        it might help adding the link to the plugin:
        https://github.com/fwilleke80/flockmodifier

        Greetings,
        Frank

        www.frankwilleke.de
        Only asking personal code questions here.

        R 1 Reply Last reply Reply Quote 0
        • ferdinandF
          ferdinand
          last edited by ferdinand

          Hi,

          isn't there a Python boid script somewhere in the Thinking Particles preset library? You probably won't find anyone who is willing to maintain someone else's code on such a minor matter, so this might be your best option.

          FYI: I am pretty sure that the boid script was unoptimised (i.e. did not optimise the proximity evaluation of the boids). But given the fact that @fwilleke80 says "in less than 400 lines of code" on github, the same probably also applies to his code. C++ is faster than Python, but not that much faster (that it can negate exponential complexity) , so things will probably get slow rather quickly in both cases.

          Cheers,
          zipit

          MAXON SDK Specialist
          developers.maxon.net

          fwilleke80F 1 Reply Last reply Reply Quote 0
          • P
            PluginStudent
            last edited by

            The boid simulation in a Python Tag can be found on GitHub (scene, source).

            1 Reply Last reply Reply Quote 1
            • R
              Rambenwal @fwilleke80
              last edited by

              @fwilleke80 Thank you Frank. I was rushing because of a medical family situation. Thanks again.

              1 Reply Last reply Reply Quote 0
              • fwilleke80F
                fwilleke80 @ferdinand
                last edited by

                @zipit said in Flock Modifier:

                isn't there a Python boid script somewhere in the Thinking Particles preset library? You probably won't find anyone who is willing to maintain someone else's code on such a minor matter, so this might be your best option.

                FYI: I am pretty sure that the boid script was unoptimised (i.e. did not optimise the proximity evaluation of the boids). But given the fact that @fwilleke80 says "in less than 400 lines of code" on github, the same probably also applies to his code. C++ is faster than Python, but not that much faster (that it can negate exponential complexity) , so things will probably get slow rather quickly in both cases.

                The FlockModifier is a lot faster than the Python/TP solution. Not only because of C++, but mostly because FlockModifier uses the standard particle system, which is simple but fast, while TP is complex and.. well, hell slow.

                www.frankwilleke.de
                Only asking personal code questions here.

                ferdinandF 1 Reply Last reply Reply Quote 0
                • ferdinandF
                  ferdinand @fwilleke80
                  last edited by ferdinand

                  @fwilleke80 said in Flock Modifier:

                  The FlockModifier is a lot faster than the Python/TP solution. Not only because of C++, but mostly because FlockModifier uses the standard particle system, which is simple but fast, while TP is complex and.. well, hell slow.

                  Hm,

                  I did not mean the comment to be rude. I was just pointing out, that due to the complexity of a naive version of that algorithm, a switch to a Python version might not be as costly as one would think. I did not look at your code though, and certainly did not want to imply that it is bad. I was just going by the quoted part from github.

                  Cheers,
                  zipit

                  MAXON SDK Specialist
                  developers.maxon.net

                  1 Reply Last reply Reply Quote 0
                  • fwilleke80F
                    fwilleke80
                    last edited by

                    I didn't take it as rude, don't worry 😉

                    www.frankwilleke.de
                    Only asking personal code questions here.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post