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

Navigation

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

    [ANSWERED] Fish Eye Actor for V3?

    How To... ?
    actors fisheye
    6
    9
    723
    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.
    • Whatnao
      Whatnao last edited by Woland

      Hello good people!
      I'm sure something similar has been discussed in the past but I couldn't find anyone posting about the fisheye actor that was available on v2 and not for v3. I assume it is because of 32 bit to 64 bit change. I tried QC Fish Eye, but that is not the same. The old version could change positions as well as amount of distortion. I used mouse watchers to control these qualities and it worked nicely moving them to the music when I was VJing. Perhaps this effect became passé and nobody use it anymore, but if anyone know a similar plugin or how I can achieve a similar effect, please let me know.
      Thank you!

      bonemap J 2 Replies Last reply Reply Quote 0
      • bonemap
        bonemap @Whatnao last edited by

        @whatnao

        Hi,

        You can create a fisheye lens effect with the 3D Stage Orientation actor. It has a FOV property that simulates a camera lens. There are other camera controls there as well. It requires a 3D object - perhaps 3D Quad or 3D Projector with a Virtual Stage routed to it. I know it is not as simple as a pass through video actor, but just so you know it is there.

        Kind Regards

        Russell

        http://bonemap.com | Australia
        Izzy 3 STD/USB 3.2.6 | + Beta
        MBP 16” 2019 2.4 GHz Intel i9 64GB AMD Radeon Pro 5500 8 GB 4TB SSD | 12.6.3 Monterey
        Mac Studio 2022 M1 Max 32GB | OSX 13.3.1 Ventura

        Whatnao 1 Reply Last reply Reply Quote 1
        • Whatnao
          Whatnao @bonemap last edited by

          @bonemap Thank you for your reply! I'm sorry for delayed response. I had upgraded my computer and doing other work, completely forgot that I asked this question. I appreciate your advise. I'm not familiar with 3D Stage Orientation but if I understand you correctly, this actor won't work as fisheye effect unless I have 3D Quad or 3D Projector, right? So it won't work to make a image projected on normal 2D screen into fisheye lens like image?

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

            @whatnao

            GLSL Shaders can do this. A quick bit of Google-fu got me this one (which shouldn't be used in any official work because it doesn't list any sort of license): https://www.shadertoy.com/view/4s2GRR

            The first input is your fisheye-ness basically, and strangely, you'll need to flip the image 180 degrees because it makes it go upside down for some reason.

            //Inspired by http://stackoverflow.com/questions/6030814/add-fisheye-effect-to-images-at-runtime-using-opengl-es
            void mainImage( out vec4 fragColor, in vec2 fragCoord )//Drag mouse over rendering area
            {
                vec2 p = fragCoord.xy / iResolution.x;//normalized coords with some cheat
                                                                         //(assume 1:1 prop)
                float prop = iResolution.x / iResolution.y;//screen proroption
                vec2 m = vec2(0.5, 0.5 / prop);//center coords
                vec2 d = p - m;//vector from center to current fragment
                float r = sqrt(dot(d, d)); // distance of pixel from center
                float power = ( 2.0 * 3.141592 / (2.0 * sqrt(dot(m, m))) ) *
                            (iMouse.x / iResolution.x - 0.5);//amount of effect
                float bind;//radius of 1:1 effect
                if (power > 0.0) bind = sqrt(dot(m, m));//stick to corners
                else {if (prop < 1.0) bind = m.x; else bind = m.y;}//stick to borders
                //Weird formulas
                vec2 uv;
                if (power > 0.0)//fisheye
                    uv = m + normalize(d) * tan(r * power) * bind / tan( bind * power);
                else if (power < 0.0)//antifisheye
                    uv = m + normalize(d) * atan(r * -power * 10.0) * bind / atan(-power * bind * 10.0);
                else uv = p;//no effect for power = 1.0
                vec3 col = texture(iChannel0, vec2(uv.x, -uv.y * prop)).xyz;//Second part of cheat
                                                                  //for round effect, not elliptical
                fragColor = vec4(col, 1.0);
            }

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

              I know it probably isnt a genuine fish eye effect but you can achieve a similar distortion just using Issy Map.

              This example uses a 3x3 grid with curved paths. I'm sure with a bit of time and perhaps some more mapping points you could get something looking pretty good using this method. This one looks a bit too rectangular to me still but I'm sure with a bit of care you could get it there.

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

                Having just looked at the wikipedia page for Fisheye Lenses there's a break down of the maths for the mapping functions of different lenses towards the bottom. Might make a good GLSL project (bit beyond my high school maths I think).

                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 0
                • J
                  jandraka @Whatnao last edited by jandraka

                  @whatnao

                  Hi,

                  I have made two FFGL 2.0 plugins with Vuo app. They are built from simple nodes, without further complications. One of the plugins uses a warping mesh from Paul Bourke who has a lot of information on his website.
                  I hope this helps.
                  Best

                  Fisheye.bundle.zip

                  Fisheye.PaulBourke.bundle.zip

                  MBP 2017, Quad-Core Intel Core i7 3,1GHz, 16GB, Radeon Pro 560 4GB. MacOS 13.4 Isadora 3.2.5

                  CitizenJoe 1 Reply Last reply Reply Quote 2
                  • CitizenJoe
                    CitizenJoe @jandraka last edited by

                    @jandraka said:

                    Vuo app

                     Am I correct in thinking that these would be MAC only?

                    Cheers,

                    Hugh

                    Hugh in Winnipeg - All test machines, Win10 Pro, 64 bit, OS SSD and separate data SSD.

                    1. new laptop: Dell 7560, i9 11950H, 64 gigs, NVIDIA RTX A4000 w/8 GB GDDR6
                    2. old desktop: Dell T5500 2009, Dual Quad Core Processor E5530, 12 gigs, 2x Radeon 5750... Still works well!
                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jandraka @CitizenJoe last edited by

                      @citizenjoe

                      That is. Only MAC. Sorry for not clarifying.

                      MBP 2017, Quad-Core Intel Core i7 3,1GHz, 16GB, Radeon Pro 560 4GB. MacOS 13.4 Isadora 3.2.5

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