• 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

    Help using Kinect data to draw filled shapes

    How To... ?
    4
    6
    2057
    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
      RenegadeBoy last edited by

      Hi Guys,

      I'm quite new and need some help.

      I've been playing with various forms of input but most commonly using a Kinect 2. No problem getting the osc via NiMate, etc and able to draw lines that are linked to various tracked points in real time.

      But, I cant seem to draw filled shapes that use the 2D or 3D vector of an input to draw filled shapes. For example, a triangle made by the top of the head, the right & left hands. 

      I have tried to use some glsl actor code for this but, I am new to opengl and some of the directives don't seem to work inside the glsl actor.

      Ultimately, I would like to be able to draw multiple shapes (say several triangles made by linking the middle of the body to your head, hands and feet) that could be made to fold or overlap based upon the input of the moving points.

      I'm not sure if my description is clear enough but I hope someone might have a bit of guidance for me.

      Any help is appreciated.

      Thanks.

      Izzy 3| Metabox Laptop 3.70GHz Intel i7-8700K CPU 64GB NVidia GeForce GTX 1080 8GB 2*2TB SSD | Windows 10

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

        @renegadeboy said:

        But, I cant seem to draw filled shapes that use the 2D or 3D vector of an input to draw filled shapes.

        Have you tried connecting the X and Y values for each point to an individual Shapes actor's "horz pos" (X) and "vert pos" (Y) to get shapes that followed the points? You'd use Limit-Scale Value actors to scale the values with some guess and check work to make the scaling work out. It's possible that I don't understand your question though...

        Best wishes,

        Woland

        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 |

        1 Reply Last reply Reply Quote 0
        • DusX
          DusX Tech Staff @RenegadeBoy last edited by

          @renegadeboy
          It sounds like you would like to draw a Polygon, with each vertex controlled in 2D (x and y).
          There is no included way of doing this in Isadora.
          I have found a GLSL shader that was a library for drawing many different shapes, but can't find it now.

          So, it may be that you need to roll your own. This online book may help: https://thebookofshaders.com/0...

          Troikatronix Technical Support

          • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
          • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
          • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

          Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

          R 1 Reply Last reply Reply Quote 0
          • R
            RenegadeBoy @DusX last edited by

            @Woland @DusX 

            Thanks to you both for your ideas and feedback. I think DusX managed to say what I was trying to get at, each vertex controlled in 2D but, no way to do this directly in Isadora.

            I have since prototyped a simple solution sending data to Processing using OSC and returning the moving polygon output to Isadora via Spout. It's a bit glitchy (though right now it's settled down to 30 fps) and I haven't had the chance to link it with the actual Kinect at this time but it appears to be okay for the moment.

            Once I get it cleaned up and working with the Kinect, I'd be happy to put it out there for anyone who might be able to offer further advice or optimisation.

            Anyway, thanks again.

            Izzy 3| Metabox Laptop 3.70GHz Intel i7-8700K CPU 64GB NVidia GeForce GTX 1080 8GB 2*2TB SSD | Windows 10

            1 Reply Last reply Reply Quote 1
            • dbini
              dbini last edited by

              this would be a great feature in Isadora - kind of like a mashup of Shapes and 3D Lines.

              John Collingswood
              taikabox.com
              2019 MBPT 2.6GHZ i7 OSX15.3.2 16GB
              plus an old iMac and assorted Mac Minis for installations

              1 Reply Last reply Reply Quote 2
              • DusX
                DusX Tech Staff last edited by

                Workaround method of drawing Polygons.
                I just posted a method as a reply to a Question Fred had.
                It might be useful to address this usecase as well.
                https://community.troikatronix...

                Troikatronix Technical Support

                • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
                • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

                Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

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