• 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

    [LOGGED] ​Picture Viewer Alters Data?

    Troubleshooting and Bug Reports
    4
    9
    753
    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.
    • J
      jg Beta Tester last edited by Woland

      Hey, all–

      I'm trying to do some resampling of a live feed using a UV map stored in a png. I've got some simple GLSL adapted from 'TouchDesigner that should work. However, when I import the UV map with picture viewer, the GLSL actor seems to see many of the pixels zeroed out. I thought it may be something wrong with the code, but when I syphon in the same image from TD, it works as expected, which leads me to believe something is happening inside picture viewer.

      Wondering if anyone has encountered something like this before? There's an easy workaround, but it's silly and cumbersome. I've attached the UV map image I'm using for reference, as well as the shader.

      UV map

      Thanks,

      : j

      ------ GLSL ------

      uniform sampler2D tex0;
      uniform sampler2D tex1;

      void main(void) {
      vec3 uv = texture2D(tex1, gl_TexCoord[0].xy).rgb;


      vec3 c0 = texture2D(tex0, uv.xy).rgb;

      // for debugging //
      if (uv.y == .0){
      c0 = vec3(1.,0.,0.);
      }
      //

      gl_FragColor = vec4(c0, 1.0);
      }

      Woland mark 2 Replies Last reply Reply Quote 0
      • Bennnid
        Bennnid last edited by Bennnid

         hi I tried converting you pic into a video file .mov and put it in movie player, and same result...

        MBP 2019- 16' (16,1) i9 2,3 GHz, 32 Gb /Radeon pro 5550M 8GBram/ OSX 10.15.3
        Equip.: kinect 360 1414/ Leapmotion / Myo Armband /Wiimotes/ Saitek Joysticks ( X, evo, throttle) /Ipad / enttec dmx usb pro

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

          @jg said:

          when I syphon in the same image from TD, it works as expected, which leads me to believe something is happening inside picture viewer.

           Very strange, I see this same behavior. I'll log this.

          Best wishes,

          L Wilson-Spiro

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

            @jg said:

            I've got some simple GLSL adapted from 'TouchDesigner that should work. However, when I import the UV map with picture viewer, the GLSL actor seems to see many of the pixels zeroed out.

            You are right, I can see this too. We use the standard Mac routines for reading pictures, and it should be respecting the color profile, but maybe there's something going wrong with that. I'm investigating.

            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
            • mark
              mark @jg last edited by mark

              @jg said:

              I've got some simple GLSL adapted from 'TouchDesigner that should work. However, when I import the UV map with picture viewer, the GLSL actor seems to see many of the pixels zeroed out.

              Alright, you have indeed discovered a bug. Pictures imported from disk may contain a color profile, and Isadora wasn't correctly locating that color profile and using it when converting the picture to a bitmap. I've fixed this in our current beta, which is the only way for you to get your hands on a fix before we release -- which is still a ways away.

              Please ask @Woland to join our beta tester program and get this fix from us.

              Best Wishes,
              Mark

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

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

                @mark said:

                Please ask @Woland to join our beta tester program and get this fix from us.

                 Please send in a ticket using the link in my signature if you'd like to go this route.

                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 |

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

                  @woland said:

                   Please send in a ticket using the link in my signature if you'd like to go this route.

                   FYI, the fix is in b21.

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

                  1 Reply Last reply Reply Quote 2
                  • J
                    jg Beta Tester last edited by

                    Great- thanks so much for looking into it! I've submitted a ticket requesting access to b21.

                    I'm a little nervous switching to a beta for production- would another workaround be to alter the color profile of the image?

                    Thanks!

                    : j

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

                      @jg said:

                      I'm a little nervous switching to a beta for production- would another workaround be to alter the color profile of the image?

                      After some additional poking around, I did find a solution.

                      You can see this the current color profile in Photoshop by opening the document and choosing Document Profile" from the popup menu at the bottom of the window.


                      The current color profile of your image is sRGB 61966 2.1 (8bpc)

                      You need to change this profile to Generic RGB.

                      Photoshop:
                      1) Open your image in Photoshop
                      2) Choose "Assign Color Profile" from the Edit menu
                      3) Choose "Generic RGB Profile"
                      4) Save the file

                      Preview:
                      1) Open your image in Preview
                      2) Choose "Assign Profile" from the Tools menu
                      3) Choose "Generic RGB Profile" from the popup in the dialog and click OK
                      4) Save the file

                      Here's my test file showing this works.

                      uvwarp-color-profile.zip

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