• 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

    Polar to cartesian and back

    Interfacing
    5
    12
    3041
    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.
    • Armando
      Armando Beta Gold last edited by

      Isadora has a simple way to calculate cartesian to polar:

      Mousewatcher (or whatever sensor gives you y and y coordinates) - and calc angle in which x2 and y2 are set to 50\. Et voila. (Don't forget to trigger values updates into trigger input of the calc angle....
      But I can't figure out the polar to cartesian.... 

      ce8e23-screen-shot-2014-06-15-at-19.54.48.png

      Armando Menicacci
      www.studiosit.ca
      MacBook Pro 16-inch, 2021 Apple M1 Max, RAM 64 GB, 4TB SSD, Mac OS Sonoma 14.4.1 (23E224)

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

        Sure calculating the angle is not that hard but this is for unwarping whole images that are shot on a spherical mirror (realtime and HD). Unless I missed something and you can use that coordinate to unwarp an image some how.

        http://www.fredrodrigues.net/
        https://github.com/fred-dev
        OSX 13.6.4 (22G513) 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

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

          Fred,

          I think it's not a problem of polar to cartesian transformation (who are just 2 ways to write the position in space, 1 with x/y, cartesian, other one with angle and distance, polar)
          It's mor a question of projection from space to plan, like in cartography you have mercator or lambert projection.
          Perhaps you could try with the 3D Mesh Projector, who make the transform in real time, using the relative coordinate of the same point in different geometric system.
          The problem is that the description format (.dat) is not well documented. I worked a bit on it but I stopped for that reason, but it could be a way to resolve your problem.
          Hope that help,
          Jacques

          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
          • Fred
            Fred last edited by

            OK again, the problem is solved and the files above are there if anyone else wants a GPU solution for using 360 lenses and wants to see the footage. Have a look at the files and you will see what they do. I am not actually using Isadora for this project, I am displaying the images in an oculus rift so I wrote my own software solution. I thought I would share an Isadora friendly version of part of it. Still use full if you want 360, live or in playback.

            http://www.fredrodrigues.net/
            https://github.com/fred-dev
            OSX 13.6.4 (22G513) 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

            1 Reply Last reply Reply Quote 0
            • Armando
              Armando Beta Gold last edited by

              Thanks Fred.

              Armando Menicacci
              www.studiosit.ca
              MacBook Pro 16-inch, 2021 Apple M1 Max, RAM 64 GB, 4TB SSD, Mac OS Sonoma 14.4.1 (23E224)

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

                Thanks Fred, gave it a try. Inside the zip is an empty foleder called 'To Freeframe'
                Was there supposed to be anything in there?

                I put the .qtz files into my Compositions folder and they load ok as QC actors.
                Scene 'car to pol' in the izz patch works perfectly but pol to car has no visible output from the QC actor
                I checked in QC and the inputs/outputs are published.

                I am using latest izzy beta 1.5.30f23

                jamie :)

                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
                • Fred
                  Fred last edited by

                  Sorry I updated the link above, it should all work now.

                  http://www.fredrodrigues.net/
                  https://github.com/fred-dev
                  OSX 13.6.4 (22G513) 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

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

                    thanks @Fred

                    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
                    • mark_m
                      mark_m last edited by

                      @fred, I just tried downloading the sample above but the link is broken :-(
                      Do you still have this patch and sample somewhere? I am trying to work with similar images to those from the 0-360 tool, and to interact with them via Isadora and an OSC accelerometer. I think your patch would be very useful for getting me started.

                      Many thanks

                      Mark M

                      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 0
                      • Fred
                        Fred last edited by

                        I will have a better look when I get the chance, so far I dont find the old files. 

                        I made it using Quartz composer and programming in the core image filter node in QC and published the inputs and outputs
                        I think this code looks like it will do both directions
                        http://lists.apple.com/archives/quartzcomposer-dev/2009/Mar/msg00022.html
                        Best of luck

                        http://www.fredrodrigues.net/
                        https://github.com/fred-dev
                        OSX 13.6.4 (22G513) 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

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

                          Thanks, Fred.

                          I'm afraid I have no knowledge of Quartz Composer... yet! Always something new to learn!

                          Cheers

                          Mark

                          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 0
                          • First post
                            Last post