7 Replies Latest reply: Mar 28, 2013 3:12 AM by timoteo1 RSS

    Transparency/Alpha Great Mystery (IMPORTED PNG Sequence)

    timoteo1 Community Member

      Ok, this one is going to fall under the "I would LOVE to get an explanation of this one!" category. Just when I thought I knew everything about transparency and alpha channels, etc ...

       

      The problem: I am importing a PNG sequence into After Effects (CS 5.5), however AE refuses to see the Alpha channel contained within the sequence. Now before anyone jumps the gun and says, "But wait, PNG does not really support alpha, it just supports transparency!" Right, something I just learned, and still -- quite honestly -- baffles the heck out of me.

       

      But anyway, another PNG sequence exported from the exact same program, imports into After Effects just fine with an "alpha channel" and all. I double-checked, and there is NOT an option in the program to export the PNG without transparency info.

       

      Importing sample images from each sequence reveals the EXACT SAME THING ... both have transparency, but NEITHER have an alpha-channel per se.

       

      Sooo ...

       

      • 1) ANY idea why in the heck AE would interpret one's transparency, and not the other?
      • 2) Is there a way to FORCE AE to see the transparency of the one?
      • 3) IF not, is there something out there that will convert the PNG's with transparency to another format (TIF, TGA, PSD) with an alpha? I just don't want to have to re-render the sequences again.

       

      ANY insight into this bizarre-ness would be GREATLY appreciated.

       

      Thanks,

      Tim

        • 1. Re: Transparency/Alpha Great Mystery (IMPORTED PNG Sequence)
          Mylenium MVP

          24bit vs. 8bit. AE doesn't handles palette-based transparency, only genuine per-pixel transparency. Tools like XnView or IrfanView can do all sorts of conversions. always good to have them handy.

           

          Mylenium

          • 2. Re: Transparency/Alpha Great Mystery (IMPORTED PNG Sequence)
            timoteo1 Community Member

            Actually, they are 32-bit.  But regardless, that doesn't explain why the sequence I generated (from the exact same 3D app) as a PNG sequnce IS handled correctly by AE.  In fact, I can't recall AE ever not seeing the transparency of my PNG sequences ... or those of anyone else.

             

            I have XNView, (maybe INfran too, need to check), LightImageResizer, Sage, Thumbsplus, etc., etc.  None of them handle the transparency as far as I can tell.

            • 3. Re: Transparency/Alpha Great Mystery (IMPORTED PNG Sequence)
              Mylenium MVP

              Then batch them through Photoshop....

               

              Mylenium

              • 4. Re: Transparency/Alpha Great Mystery (IMPORTED PNG Sequence)
                timoteo1 Community Member

                Thanks, Myl ... but I'm afraid my Photoshop batching skills are feeable, at best.  I know how to setup a basic batch of converting to PSD, but I need it to do three steps first, of course:

                 

                1) Tell it to LOAD CHANNEL AS SELECTION

                2) Then INVERT the channel

                3) Then SAVE SELECTION AS CHANNEL.

                 

                Can you brief me on how I would do just that?

                 

                Thanks,
                Tim

                • 5. Re: Transparency/Alpha Great Mystery (IMPORTED PNG Sequence)
                  timoteo1 Community Member

                  Actually, I think I figured it out.  Will let you know how it goes momentarily ...

                  • 6. Re: Transparency/Alpha Great Mystery (IMPORTED PNG Sequence)
                    timoteo1 Community Member

                    Yep, I got it to do the batch correctly, so that is indeed a workaround.  Thanks.

                     

                    However, I would still like the mystery solved.  I went ahead and rendered another PNG sequence from another 3D app, and it imported just fine (alpha-channel detected) in to AE.  So my only guess at this point is, they broke something with PNG (or perhaps ALL image output) with the latest update to the other app.

                     

                    -Tim

                    • 7. Re: Transparency/Alpha Great Mystery (IMPORTED PNG Sequence)
                      timoteo1 Community Member

                      Ok another follow-up with interesting results ...

                       

                      1) The second sequence I have that I tried to batch in PS, did not turn out correctly.  Investinging with a single frame inside PS revealed that it was not simply adding a selection to the "solid" parts, but actually sections within the solid parts.  (To make it clearer, the animation is a zoom out from an open 3D book.  Instead of making a selection of the book, it selected the book, and then various things contained on the book.  Not sure where it was getting this selection from.

                       

                      2) In AE, I simply moved those frames in the beginning where there would not be an alpha channel (or need of one) because the book is filling the entire frame.  I then imported the remaining frames and it saw the alpha channel with no problem. I then just added the starting frames as a seperate sequence to the begininnig of the timeline, and wallla ... problem solved.

                       

                      So I can only surmise that the 3D app did not -- oddly enough) output any alpha/transparency info for those first 60-or-so frames where the book filled the entire frame.  Thus, AE -- looking at the first frame with no alpha info -- rightfully concluded that there wasn't any, and igores the transparency info.

                       

                      The other PNG sequences did not start with object(s) filling the entire frame, so alpha info was written to the first frame for those.  I can test this theory pretty easily.  I could probably, now that I think about it, even just have created a frame 0000 with some alpha info, and then it would have worked (possibly.) 

                       

                      -Tim