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

Navigation

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

    How to draw a polygon with specified corner coordinates?

    How To... ?
    5
    10
    2405
    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.
    • Ubik
      Ubik last edited by

      Hey!

      I want to draw a custom polygon shape with every point having specified x and y coordinates.
      Does anyone have a solution on how to do that?

      www.hypnorama.se | facebook.com/hypnorama
      Macbook Pro (Late 2013) running Mavericks with 2,3 Ghz Intel Core i7, 16GB, 500GB SSD

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

        Hello,

        One question is "how many gones"
        One easy solution for rectangle would be to use 3D quad distort, feed it with background color and make calculation to put each angle where you want.
        For more "gones", I would use Processing with syphon, it's not trivial but it works.
        Hope that helps
        Jacques Hoepffner

        Jacques Hoepffner http://hoepffner.info
        GigaByte 550b / Ryzen 7 3800X / Ram 64 Go / RTX 3090 24 Go / SSD 2 To / raid0 32 To
        MBP 13' i5 2.6 Ghz 16 Go / Intel Iris / macOs 10.11.6 / izzy 2.6.1 + 3.0.3b2
        MBP 15' i7 2.6 Ghz 16 Go / GTX 650M 1Go/ MacOs10.13.3 / Izzy 2.6.1
        MSI GS65 i7 3.6 Ghz 32 Go / GTX 1070 8 Go / Windows 10 / Izzy 3.0.3b2

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

          Lines Actor sorry, i just dug out an old patch of a rotating pyramid i constructed out of triangles made with 3D Line Actors.

          i've stripped it down to its minimum so it might make sense.

          ecfcfb-pyramid.izz

          John Collingswood
          taikabox.com
          2013 MBPR 2.3GHZ i7 OSX11.7.4 16GB
          & 2019 MBPT 2.6GHZ i7 OSX12.3 16GB

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

            attached you ail find a "hardcoded" mask utilizing 1024 polygon mask

            a bit of quartz composer ….
            but worked well for us before isadora beta 2 come out
            or you could publish the x y coordinates of a custom shape in the new projector in izzy 2

            b1386c-qc_masking.zip

            avk4.net

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

              @dbini

              Thanks! Some stringent patching you made there. I love the clear headedness of this forum :-)
              Have any ideas on how to fill it with a fill color?... (sorry I'm asking to much here I know!)
              @m_theater
              I couldn't open your document because I don't have the KinemeStructureMaker plugin.

              www.hypnorama.se | facebook.com/hypnorama
              Macbook Pro (Late 2013) running Mavericks with 2,3 Ghz Intel Core i7, 16GB, 500GB SSD

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

                @Ubik if you are still interested the missing plug can be found at kineme site

                if you take dbini's example and modify it by using the quad distort actor and giving him the missing 4 values (x3y3x4y4) in stead of the 3d lines then you are close
                a couple of question:
                do you want it as a mask (solid color) 
                a mapping (filled with video texture) 
                with a fixed size (numbers of points won't change) 
                or flexible e.g a growing number of points
                will it be modified during the performance or just for setup
                thinking about cpu / gnu performance how many do you intend to use

                avk4.net

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

                  coloured polygons is a different matter entirely. i can't think of a way of doing it right now. sorry.

                  i might use that pyramid patch in a show tomorrow.

                  John Collingswood
                  taikabox.com
                  2013 MBPR 2.3GHZ i7 OSX11.7.4 16GB
                  & 2019 MBPT 2.6GHZ i7 OSX12.3 16GB

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

                    Hello,

                    I come back with a new proposition for polygon with processing. That's a "quadrilatère" but it's easy to make an nGone.
                    Here are 1 processing file who receive corner coordinates, fill color, stroke color and weight from Isadora by OSC
                    and send image to Isadora by Syphon, and 1 Isadora file who draw it.
                    You need to download Processing
                    https://processing.org/download/
                    the syphon library
                    https://github.com/Syphon/Processing
                    the OSC library
                    http://www.sojamo.de/libraries/oscp5/
                    I hope that works for you. Feel free to use and transform it.
                    Jacques

                    1e2a57-sendframes.zip 55215e-envoipolygon.izz

                    Jacques Hoepffner http://hoepffner.info
                    GigaByte 550b / Ryzen 7 3800X / Ram 64 Go / RTX 3090 24 Go / SSD 2 To / raid0 32 To
                    MBP 13' i5 2.6 Ghz 16 Go / Intel Iris / macOs 10.11.6 / izzy 2.6.1 + 3.0.3b2
                    MBP 15' i7 2.6 Ghz 16 Go / GTX 650M 1Go/ MacOs10.13.3 / Izzy 2.6.1
                    MSI GS65 i7 3.6 Ghz 32 Go / GTX 1070 8 Go / Windows 10 / Izzy 3.0.3b2

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

                      @jhoepffner Hey, Thanks! I'll take a look on it!

                      www.hypnorama.se | facebook.com/hypnorama
                      Macbook Pro (Late 2013) running Mavericks with 2,3 Ghz Intel Core i7, 16GB, 500GB SSD

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

                        Nice example, thanks! @jhoepffner
                        Worked right "out of the box" ! ha ha LOL...
                        Makes me happy to see these things.
                        Thanks for your generosity :)

                        @dbini
                        Also great. What a fabulous bunch of peeps!  :)

                        Pro-User Latest Beta - MacBook Pro i7 2.66GHz SSD
                        www.jamiegriffiths.com Arctic Canada
                        www.chickweedarts.com

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