Announcement

Collapse
No announcement yet.

Problem with png shadow transparency

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with png shadow transparency

    So coming from another post about the fringing on png alphas, I just noticed this other problem, which is hard to believe I haven't spotted before...

    The 'reference' image is from the VFB with a background layer baked in.
    The exr output is basically the same with regard to the shadows (and correctly addresses the fringing thing as a bonus) but the png is totally wrong, being way too dark (and of course with the annoying matting issue).
    Why is that?
    Is it simply that a png cannot store the alpha of the shadows correctly?
    Attached Files
    https://www.behance.net/bartgelin

  • #2
    Are you certain your PS layers aren't stacking? I'm getting similar matte shadow results with both .png and .exr.
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      All it is is the saved image and a white bkg layer.
      From what I can see, it's the exr being 32 bit that creates the correct (as vfb) transparency.
      If I switch that to 16 bit in ps then it loses some of the transparency and matches the png version.

      How are you saving to get a result which is the same?

      Here's the file...maybe you can spot what (if) I'm doing wrongly.
      Probably something embarrassingly obvious
      Attached Files
      https://www.behance.net/bartgelin

      Comment


      • #4
        I might have confused the comparisons (I compared the 16bit .exr to the .png). When comparing a VFB applied white background to a .png with a background in PS, the PS version's shadows are indeed darker. As my reply to the other topic, this difference is not present in Nuke, presuming the cause is PS's method of interpreting .png transparency.
        Aleksandar Hadzhiev | chaos.com
        Chaos Support Representative | contact us

        Comment


        • #5
          Yeah there is quite a confusing difference between different software.

          As a test I opened both the 32 bit exr and png in PS, Fusion, AE and Gimp.
          Photoshop is the only one that displayed the exr properly, with correct shadows and no fringing.
          All the others got it variously wrong with the exr, either showing darker shadows and/or fringing.

          With the png version, only Gimp displayed the shadows correctly but had the fringing issue, albeit a little better than the others.

          So it seems that the only way to get a match to the vfb is to export a 32 bit exr and keep it as exr until final composite, as a switch to 16 bit will darken the shadows.
          And then, it is only actually a 1:1 match if viewed specifically in photoshop or Nuke, which seems ridiculous to me.
          I use AE rather than Nuke and in AE, as I found, it will not display the shadows correctly in the exr.
          So the only option is either deal with incorrect shadows (for animation i.e.) or switch to Nuke.
          Bizarre situation.
          https://www.behance.net/bartgelin

          Comment


          • #6
            As an update to this, I just discovered that with the png, if I switch mode to 32 bit in PS then instantly it reads the alpha correctly, with remove black matte dealing with the fringing.
            In AE I can use Set Matte to both regain the correct shadows and also to properly defringe, solving both issues.
            So a good result overall and worth the time trying to solve it

            Thanks for your input hermit.crab
            https://www.behance.net/bartgelin

            Comment


            • #7
              Originally posted by fixeighted View Post
              As an update to this, I just discovered that with the png, if I switch mode to 32 bit in PS then instantly it reads the alpha correctly, with remove black matte dealing with the fringing.
              In AE I can use Set Matte to both regain the correct shadows and also to properly defringe, solving both issues.
              So a good result overall and worth the time trying to solve it

              Thanks for your input hermit.crab
              if in PS you see the difference between 8 and 32bit mode in this case - check the setting blend RGB colors using gamma in Color Settings.
              Marcin Piotrowski
              youtube

              Comment


              • #8
                Setting this has no effect on how it 'sees' the alpha I'm afraid.
                https://www.behance.net/bartgelin

                Comment


                • #9
                  Originally posted by fixeighted View Post
                  Setting this has no effect on how it 'sees' the alpha I'm afraid.
                  this is the difference I'm getting on my end. 8bit png with alpha on white background made in PS. saved from 3ds max 2020:
                  Click image for larger version  Name:	Screenshot 2022-01-10 220247a.jpg Views:	0 Size:	489.9 KB ID:	1136206
                  Marcin Piotrowski
                  youtube

                  Comment


                  • #10
                    Not sure what I'm looking at here tbh...did you try with the examples I attached in the post a bit further up?
                    The darker shadows I referred to were on a matte plane, which I 'fixed' by switching image mode from 8 bit to 32 bit, which seems an odd fix really, but it worked.
                    It's late and I've had wine, so I will look at your suggestion again in the morning
                    https://www.behance.net/bartgelin

                    Comment


                    • #11
                      Originally posted by piotrus3333 View Post

                      this is the difference I'm getting on my end. 8bit png with alpha on white background made in PS. saved from 3ds max 2020:
                      Click image for larger version Name:	Screenshot 2022-01-10 220247a.jpg Views:	0 Size:	489.9 KB ID:	1136206
                      Thanks! I was having hard time on this one! Change the blend mode in Color Settings worked in Photoshop. Now, my question is how my client will handle the file, because if he doesn't make this change in Color Settings it won't work. I've tried in Fusion to see how it handles the alpha and I'm having darker shadows as well. So, if I'm understanding this correctly, V-Ray saves alpha channel and RGB channels with different gamma settings. How can I make sure my client will have the correct shadow without messing around with Photoshop configuration?
                      In the attached image, on the left png straight out of VFB with a white background, and on the right png without bkg and alpha channel saved. The shadow is darker as it was in Photoshop

                      How should I deliver a png file with correct shadows to my client since he wants to use it in multiple backgrounds?
                      Attached Files
                      Last edited by felipe_valduga; 07-05-2022, 08:56 AM.

                      Comment


                      • #12
                        I think you'll just need to tell the client that it's a technical thing...that is, it's not your fault lol.
                        Just get them to swap them to 16bit I guess is the only solution, unless anyone else has an idea.
                        I think the issue is generally that apps deal differently with something as seemingly obvious as the alpha channel, so we all
                        face this problem to various extents.
                        https://www.behance.net/bartgelin

                        Comment


                        • #13
                          Thanks, not sure how I'm going to handle this scenario. Maybe sending the .exr in 32 bits and that's it. You've mentioned 16 bits, but at least in my tests it only works in 32 bits or changing the blend mode in Color Settings. Is this a v-ray specific thing? I'm going to test using Arnold to see if it has the same behavior.
                          Last edited by felipe_valduga; 08-05-2022, 02:21 PM.

                          Comment


                          • #14
                            Originally posted by felipe_valduga View Post
                            Thanks, not sure how I'm going to handle this scenario. Maybe sending the .exr in 32 bits and that's it. You've mentioned 16 bits, but at least in my tests it only works in 32 bits or changing the blend mode in Color Settings. Is this a v-ray specific thing? I'm going to test using Arnold to see if it has the same behavior.
                            16 half float is shown as 32 bit in PS.
                            Marcin Piotrowski
                            youtube

                            Comment


                            • #15
                              Thanks! Didn't know that! Is there a way to save .png in Photoshop that shows the shadow properly?

                              Comment

                              Working...
                              X