• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    [ANSWERED] Link a colour to a specific video.

    How To... ?
    measure color logic inside range control color
    5
    12
    1641
    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.
    • Juriaan
      Juriaan Tech Staff @hollyjw last edited by

      @hollyjw

      You are aware that you can use a Measure Color actor to get the dominate color in a video feed right ? The only thing that you addiotional need is a Comperator or an Inside Range to verify that the Reds for example are in the area that you wish to have to get it triggered.

      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

      H 1 Reply Last reply Reply Quote 1
      • H
        hollyjw @Juriaan last edited by

        @juriaan I'm fairly new to Isadora so no i didnt know, where on the stage would that go? I'm not familiar with that actor so i'm not sure how it would work. thanks 

        mark_m 1 Reply Last reply Reply Quote 0
        • mark_m
          mark_m @hollyjw last edited by

          @hollyjw

          Well, I've just had fun figuring this out...

          And the Isadora File

          colour_change.zip

          The interesting thing was about how to turn the videos on and off in response to the colours...

          The tricky things for me, and for you if you're new to Isadora, was setting the initialise values in the movie players: off for visibility and 0 and 1 for playback speed.

          Basically the way that this works is the camera detects a colour using the measure colour actor. Then I translated that from RGB to give me a single Hue value. Then used the inside range actor to look out for that specific hue. When it registers that particular colour the Inside value of the Inside Range actor changes to 1, which toggles the toggle actor on, which turns on the visibility of the movie and starts it playing... when that colour is gone - for example if it detects no colour - then the inside range actor changes the inside value to 0 and everything stops.

          Hope this makes sense!

          Intel NUC8i7HVK Hades Canyon VR Gaming NUC, i7-8809G w/ Radeon RX Vega M GH 4GB Graphics, 32GB RAM, 2 x NVMe SSD
          Gigabyte Aero 15 OLED XD. Intel Core i7-11800H, NVidia RTX3070, 32GB RAM 2 x NVMe SSD
          PC Specialist Desktop: i9-14900K, RTX4070Ti, 64GB RAM, Win11Pro
          www.natalieinsideout.com

          1 Reply Last reply Reply Quote 2
          • Kathmandale
            Kathmandale last edited by Kathmandale

            @hollyjw 

            well, @mark_m just pipped me to it but we did almost the same thing (and now I've made it, I thought I might as well post it). I was just turning the movie players on and off using the 'inside' from the Inside Range actors. If a value in Isadora can be set to 'on' or 'off' then it will interpret a '0' as 'off' and a '1' as 'on' so you can send 0s and 1s as a good way to manage this. You could also manage things using the triggers from 'enter' and 'exit'.

            The main difference with my patch and @mark_m 's is I added a gate to the between the 'hue' and the main Inside Ranges. This is so you can set a maximum/minimum saturation level to avoid white or black being seen as red. If you just pass the hue through you could have some colours with very low saturation trigger the 'red' video.

            I also added a second Inside Range for the red setting as red can be both a high hue number and a low hue number depending on if it's on the green side of red or blue side of red, if that makes sense.

            I think the main challenge here will be setting the 'low' and 'high' values on the Inside Range actors to fine tune it. You may also want to make good use of the Contrast Adjust actor (which I haven't included), perhaps before sending the video to the Measure Colour. Also, if the person wearing the clothes you want to trigger the video is only a small part of the incoming video frame I imagine you'll need to do a bit more tracking, perhaps using Eyes, to narrow down where the Measure Colour is reading from. If you know that they're going to stand on a certain spot then you could zoom right in. 

            colour selection example.izz

            2014 MBP Mojave 10.14.6 OS with 16GB, 2.5Ghz i7 quad core, Intel Iris Pro 1536 & Geforce GT 750m 2GB - Izzy 3.0.8
            Gigabyte Brix Windows 10 with 32GB, i7-6700 quad core, 4GB GeForce GTX 950 - Izzy 3.0.8
            Based in Manchester, UK.

            mark_m 1 Reply Last reply Reply Quote 0
            • Woland
              Woland Tech Staff last edited by

              @mark_m @Kathmandale 

              I'd love it if you could both upload those fantastic example files to the Plugin Page <3

              TroikaTronix Technical Support
              New Support Ticket: https://support.troikatronix.com/support/tickets/new
              Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
              Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
              Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

              | Isadora Version: all of them | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

              Kathmandale 1 Reply Last reply Reply Quote 0
              • Kathmandale
                Kathmandale last edited by Kathmandale

                @hollyjw I've been thinking about it and I like your approach of using Chroma Key to separate out the colours. Here's another quick example starting with that approach:

                > Chroma Key the colour you want with 'inverse' turned on to keep the colour

                > Put it through a Threshold with the 'bright colour' set to white and a pretty low threshold setting

                > Use a Calc Brightness to read how much white is passing through

                > Use an Inside range to set the parameters of how much white (in place of the original colour) you want to trigger the movie.

                The file is attached again with this example in scene 2.


                colour selection example.izz

                2014 MBP Mojave 10.14.6 OS with 16GB, 2.5Ghz i7 quad core, Intel Iris Pro 1536 & Geforce GT 750m 2GB - Izzy 3.0.8
                Gigabyte Brix Windows 10 with 32GB, i7-6700 quad core, 4GB GeForce GTX 950 - Izzy 3.0.8
                Based in Manchester, UK.

                1 Reply Last reply Reply Quote 1
                • Kathmandale
                  Kathmandale @Woland last edited by

                  @woland I will, I promise. I'm putting a bit of a list together and they'll go up soon.

                  2014 MBP Mojave 10.14.6 OS with 16GB, 2.5Ghz i7 quad core, Intel Iris Pro 1536 & Geforce GT 750m 2GB - Izzy 3.0.8
                  Gigabyte Brix Windows 10 with 32GB, i7-6700 quad core, 4GB GeForce GTX 950 - Izzy 3.0.8
                  Based in Manchester, UK.

                  1 Reply Last reply Reply Quote 1
                  • mark_m
                    mark_m @Kathmandale last edited by

                    @Kathmandale 

                    Fascinating to see how we started the same, but yours has more sophistication and a greater beauty in its simplicity ☺
                    I'd also not thought about the saturation, or the fact that red is at both ends of the hue.
                    And as one thinks about real world examples (I was just holding post-it notes up in front of the webcam!) I think both you and @hollyjw were spot on with the Chromakey method.


                    Love how Isadora lets you the same thing in so many ways, and how one can just keep adding levels of sophistication

                    Intel NUC8i7HVK Hades Canyon VR Gaming NUC, i7-8809G w/ Radeon RX Vega M GH 4GB Graphics, 32GB RAM, 2 x NVMe SSD
                    Gigabyte Aero 15 OLED XD. Intel Core i7-11800H, NVidia RTX3070, 32GB RAM 2 x NVMe SSD
                    PC Specialist Desktop: i9-14900K, RTX4070Ti, 64GB RAM, Win11Pro
                    www.natalieinsideout.com

                    Kathmandale 1 Reply Last reply Reply Quote 2
                    • Kathmandale
                      Kathmandale @mark_m last edited by

                      @mark_m said:

                      Love how Isadora lets you the same thing in so many ways

                       

                      @mark_m That is one of the great joys of Isadora, maybe the greatest. I wasn't using post-its but had a red soup bowl, green coaster and the yellow jumper I was wearing being waved around in some complex new form of choreography😂

                      And all credit to @hollyjw for thinking of the Chromakey approach.

                      2014 MBP Mojave 10.14.6 OS with 16GB, 2.5Ghz i7 quad core, Intel Iris Pro 1536 & Geforce GT 750m 2GB - Izzy 3.0.8
                      Gigabyte Brix Windows 10 with 32GB, i7-6700 quad core, 4GB GeForce GTX 950 - Izzy 3.0.8
                      Based in Manchester, UK.

                      H 1 Reply Last reply Reply Quote 3
                      • H
                        hollyjw @Kathmandale last edited by

                        @kathmandale @mark_m thats great thank you guys! really helpful i will try them now! really appreciate it!!

                        1 Reply Last reply Reply Quote 3
                        • H
                          hollyjw last edited by

                          @Kathmandale @mark_m my project works!!!! im over the moon thanks for much for your help guys!!

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