• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum

Navigation

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

    [ANSWERED] Live draw leap motion

    Hardware
    leap motion live drawing
    3
    6
    515
    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.
    • E
      Eva last edited by Woland

      Dearest, someone who can help:) I am hoping that this might somehow work out some challenges. I am currently working with leap motion and exploring the live drawing actor - that on a first hand seems to work really nicely. I am aiming at drawing through a mask, and having different images fading into each other that emerge when I draw with my hand in from of the leap motion. Now, I only have one image, it is a simple setup - but for some reason, it stops sometimes in the middle of a drawing - and last night when i wanted to use it for performance, it kept freezing, so i couldn't even draw. So I skipped it and did something else.  I just saw a black screen after I had seen a drawing of simple colors changing. The pressure on the computer doesn't seem to be too large - so I am wondering if it is a bug? Or if it is my graphics card or lack of ram - because I only have 8 RAM in this computer? Any help will be very well appreciated! I am hoping to use it tomorrow - but so far it seems i will have to do something else...
      Cheers Eva

      Eva Esmann Behrens
      Labtop: Macbook pro (Retina) 2015, 2,7 GHz,8 GB, MacOS Mojave

      E mark Woland 3 Replies Last reply Reply Quote 0
      • E
        Eva @Eva last edited by

        edit 8GB-ram - but it is also showing underneath;)

        Eva Esmann Behrens
        Labtop: Macbook pro (Retina) 2015, 2,7 GHz,8 GB, MacOS Mojave

        1 Reply Last reply Reply Quote 0
        • mark
          mark @Eva last edited by

          @eva said:

          but for some reason, it stops sometimes in the middle of a drawing

          The first question is, were the numbers on the Leap Motion actor still changing, or were they frozen? If they were frozen, then the Leap Motion actor is either losing the connection or else your hand has gone out of range.

          If the Leap Motion outputs were still moving, and the horz pos and vert pos inputs of the Live Drawing actor were changing, then there was something going on with the Live Drawing actor.

          Which was it?

          Best Wishes,
          Mark

          Media Artist & Creator of Isadora
          Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

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

            Please post the patch and I'll see if I can diagnose what happened.

            I can see that you made it so that your left hand needs to be at a certain z position in order for capture to be on and that your right hand needs to be constantly changing z positions in order to add points. If either of these conditions are not true, you will not be able to draw. 

            Generally when I use live drawing it I make it so that whatever is sending the data to horz or vert position is triggering "add point" since the incoming data will continuously trigger "add point".

            For capture I sometimes do a similar thing to what you did (when [CONDITION] is true, Trigger Value 1 = on, when [CONDITION] is false, Trigger Value 0 = off). It's worth noting that in your case, the Comparator already sends 1 or 0 for true and false from its "output" parameter, so you can skip the Trigger Value actors entirely. 

            Another way I do it is to use a Trigger Delay actor that will turn the capture off with a Trigger Value 0 actor if it stops receiving data long enough for the Trigger Delay actor to send its trigger. I've demonstrated this method below.


            Here's the example file from the screenshot above: Live Drawing Example v3.0.7.izz

            I've also uploaded it to the Plugin Page.

            TroikaTronix Technical Support
            New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
            TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
            TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

            | Isadora 2.6.1 + 3 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s | Macbook Pro (Retina, 15", Mid 2015), macOS 10.11.4, 2.8GHz Intel Core i7, 16GB RAM, Intel Iris Pro 1536 MB |

            1 Reply Last reply Reply Quote 1
            • Woland
              Woland Tech Staff @Eva last edited by

              @eva

              I rebuilt your patch based on the pictures and discovered that it draws fine for me. The only way I could get it to stop drawing was if I:

              1. Moved my left hand down (so its z value was greater than 0, which made the Comparator trigger the Trigger Value to turn capture off)
              2. Then removed my left hand from the Leap Motion's view entirely.

              This is because the Leap Motion just kept the last z value for the left hand that it had been given (since it couldn't find the left hand anymore), which in turn meant that the Comparator kept getting fed a value greater than 0 and therefore triggering the Trigger Value actor to turn off capture. This made it so that capture was effectively locked "off" until I moved my left hand back into view and moved it up far enough for the left hand z value to be less than zero.

              3.0.7 Live Drawing Leap Test.izz

              TroikaTronix Technical Support
              New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
              TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
              TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

              | Isadora 2.6.1 + 3 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s | Macbook Pro (Retina, 15", Mid 2015), macOS 10.11.4, 2.8GHz Intel Core i7, 16GB RAM, Intel Iris Pro 1536 MB |

              1 Reply Last reply Reply Quote 0
              • E
                Eva last edited by

                Thank you guys, so far! This is really a big help!  I will try and rebuild it. And maybe cut out the on off in the left hand, if it is even necessary...  I did try to take the on/off out at one point - but I will start trying to rebuild and see if I can get it to work again! Thanks for the support!!! 

                @Mark - what I can say right now is, that if the leap motion freezes - usually it happens for all the scenes and I have to restart my computer... but this time it was only this one - so I think it is another problem. but I will go through the comments so far and see if I can work it out:) 

                Eva Esmann Behrens
                Labtop: Macbook pro (Retina) 2015, 2,7 GHz,8 GB, MacOS Mojave

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