• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum
    • Categories
    • Recent
    • Popular
    • Tags
    • Register
    • Login

    [ANSWERED] Optical Flow simulation

    How To... ?
    4
    10
    202
    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.
    • RILR
      RIL
      last edited by Woland

      Hello everyone ! I wonder if it is possible to achieve motion tracking the way Touch Designers uses OPTICAL FLOW? Of course leaving aside the Kinect or other depth cameras.

      It seems to be something very straight foward this optical flow operator in Touch Designers but I always prefer Isadora!
      Eyes Actor +? (possible scenario: an installation where the audience manipulates the projection of a system of particles)
      Thanks friends !
      RIL

      Red Isadora Latina | redisadoralatina.blogspot.com | redisadoralatina@gmail.com
      page facebook.com/Red-Isadora-Latina-1319037108171197/ | Group https://www.facebook.com/groups/315960249155308/
      MacBook Pro 2015 High Sierra. Isadora 3.2

      JuriaanJ 1 Reply Last reply Reply Quote 0
      • JuriaanJ
        Juriaan Tech Staff @RIL
        last edited by Juriaan

        @ril

        Not as efficiently as they are doing with TD. Since they have a partnership with Nvidia who makes the SDK "Optical Flow"

        EDIT:

        Please see Fred's answer for a more detailed answer about this; you can do this thru other means on the CPU with Isadora.

        Isadora 3.1.1, Dell XPS 17 9710, Windows 10
        Interactive Performance Designer, Freelance Artist, Scenographer, Lighting Designer, TroikaTronix Community moderator
        Always in for chatting about interaction in space / performance design. Drop me an email at hello@juriaan.me

        RILR FredF 2 Replies Last reply Reply Quote 2
        • RILR
          RIL @Juriaan
          last edited by

          @juriaan Thanks for your answer !

          I think the difficult thing is getting a good sensing device that works well and doesn't crash. Kinect would be our best option for now, right?

          Best, 

          Maxi-RIL

          Red Isadora Latina | redisadoralatina.blogspot.com | redisadoralatina@gmail.com
          page facebook.com/Red-Isadora-Latina-1319037108171197/ | Group https://www.facebook.com/groups/315960249155308/
          MacBook Pro 2015 High Sierra. Isadora 3.2

          1 Reply Last reply Reply Quote 0
          • FredF
            Fred @Juriaan
            last edited by Fred

            @juriaan optical flow is a very old technique not owned by Nvidia at all. It is not a complex algorithm and can be found in many open source libraries and there is a great implementation in openCV. 

            The touch designer optical flow is not the result of a partnership, just that touch designer uses the Nvidia SDK (https://developer.nvidia.com/optical-flow-sdk) which any company can do, including Troika Ranch. As it is Nvidia only this would make it have a pretty limited audience considering the larger number of mac users here.

            The Nvidia version does this efficiently on the GPU. 

            There are several Python implementations of optical flow algorithms that can be integrated into isadora using the Pythoner actor, including openCV (https://learnopencv.com/optical-flow-in-opencv/). This does not have the efficiency of GPU acceleration, but on a modern cpu will still work quite well. 

            http://www.fredrodrigues.net/
            https://github.com/fred-dev
            OSX 10.15.15 MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
            Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD
            Windows 10 Threadripper 3960x 64g ram, 1tb NVME, rtx 2080ti + rtx2070 super

            RILR JuriaanJ 2 Replies Last reply Reply Quote 5
            • RILR
              RIL @Fred
              last edited by

              @fred great info !

              Maybe a futured request for Optical flow implementation? 

              Students and artistic producers have one little word at the point of their tongue: interactivity   ( for instalations)

              Best,

              Maxi-Ril

              Red Isadora Latina | redisadoralatina.blogspot.com | redisadoralatina@gmail.com
              page facebook.com/Red-Isadora-Latina-1319037108171197/ | Group https://www.facebook.com/groups/315960249155308/
              MacBook Pro 2015 High Sierra. Isadora 3.2

              1 Reply Last reply Reply Quote 0
              • JuriaanJ
                Juriaan Tech Staff @Fred
                last edited by

                @fred

                Hi Fred, I didn't mention that Nvidia owns the technique 'Optical Flow'. I said that we cant do it as efficient as they are doing with TD.

                Other then that love the input that you gave and the links to the OpenCV counterparts that run on the CPU.

                Isadora 3.1.1, Dell XPS 17 9710, Windows 10
                Interactive Performance Designer, Freelance Artist, Scenographer, Lighting Designer, TroikaTronix Community moderator
                Always in for chatting about interaction in space / performance design. Drop me an email at hello@juriaan.me

                SkulptureS 1 Reply Last reply Reply Quote 1
                • SkulptureS
                  Skulpture Izzy Guru @Juriaan
                  last edited by

                  @juriaan Is there an GLSL code for this maybe?

                  Graham Thorne | www.grahamthorne.co.uk
                  RIG 1: Windows 11, AMD 7 Ryzen, RTX3070, 16gig RAM. 2 x M.2 SSD. HD. Lenovo Legion 5 gaming laptop.
                  RIG 2: Windows 11, Intel i19 12th Gen. RTX3070ti, 16gig RAM (ddr5), 1x M.2 SSD. UHD DELL G15 Gaming laptop.
                  RIG 3: Apple rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

                  FredF 1 Reply Last reply Reply Quote 1
                  • FredF
                    Fred @Skulpture
                    last edited by

                    @skulpture Here are some shadertoy examples of optical flow:

                    https://www.shadertoy.com/view...

                    https://www.shadertoy.com/view...

                    The issue with this is that the computation of what is moving where and when is in a shader, this means if you want to do anything with that data, you need to do it in a shader. Getting data out of shaders is not always easy, and is best done with compute shaders, and this means windows only. The Nvidia SDK will do the computation on the GPU and pass data back to the CPU so it can be used for other calculations.

                    http://www.fredrodrigues.net/
                    https://github.com/fred-dev
                    OSX 10.15.15 MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
                    Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD
                    Windows 10 Threadripper 3960x 64g ram, 1tb NVME, rtx 2080ti + rtx2070 super

                    RILR SkulptureS 2 Replies Last reply Reply Quote 1
                    • RILR
                      RIL @Fred
                      last edited by

                      @fred 

                      Thanks Fred for sharing... I'm going to try them!
                      Best,
                      Maxi-RIL

                      Red Isadora Latina | redisadoralatina.blogspot.com | redisadoralatina@gmail.com
                      page facebook.com/Red-Isadora-Latina-1319037108171197/ | Group https://www.facebook.com/groups/315960249155308/
                      MacBook Pro 2015 High Sierra. Isadora 3.2

                      1 Reply Last reply Reply Quote 0
                      • SkulptureS
                        Skulpture Izzy Guru @Fred
                        last edited by

                        @fred said:

                        @skulpture Here are some shadertoy examples of optical flow:

                        https://www.shadertoy.com/view...https://www.shadertoy.com/view... />

                        https://www.shadertoy.com/view...

                        The" class="redactor-linkify-object">https://www.shadertoy.com/view... issue with this is that the computation of what is moving where and when is in a shader, this means if you want to do anything with that data, you need to do it in a shader. Getting data out of shaders is not always easy, and is best done with compute shaders, and this means windows only. The Nvidia SDK will do the computation on the GPU and pass data back to the CPU so it can be used for other calculations.

                         That makes a lot of sense. Thanks.

                        Graham Thorne | www.grahamthorne.co.uk
                        RIG 1: Windows 11, AMD 7 Ryzen, RTX3070, 16gig RAM. 2 x M.2 SSD. HD. Lenovo Legion 5 gaming laptop.
                        RIG 2: Windows 11, Intel i19 12th Gen. RTX3070ti, 16gig RAM (ddr5), 1x M.2 SSD. UHD DELL G15 Gaming laptop.
                        RIG 3: Apple rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

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