Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects comping 3d images with gamma 1.0 results in alphas with black borders.

  • comping 3d images with gamma 1.0 results in alphas with black borders.

    Posted by Daniel Tegeland on December 29, 2013 at 11:15 pm

    Hi!

    I am a 3d artist that relays quite heavily on different render passes. Comping them together in after effects is usually not a problem. After all of my operations is done I simply put an alpha layer on top of my comp, that removes any sign of black borders and anti aliasing problems.

    However when working with gamma 1.0 in my 3d package this method doesn’t seem to work. I am left with a black border in my precomps anyway. Do I have to do anything to the alpha of my 3d images before I do any comp operations? Some Nuke guys I know told me there was a checkbox or something that did something to the alpha. Sorry if I am vague. I will post some images soon to illustrate my problems.

    My basic question is. How do I remove black borders from my precomps when comping 3d images rendered with gamma 1.0 settings?

    Daniel Tegeland replied 12 years, 4 months ago 2 Members · 16 Replies
  • 16 Replies
  • Daniel Tegeland

    December 30, 2013 at 1:42 pm

    I might have found something that actually works. If you add a levels effect on the layers using some blending operations (add, mult…) then apply a value of 0.45 on the alpha. The black halo around the object is gone. I believe I have de-gamma the alpha. Not entirely confident on the linear workflow stuff. Just trying to find something that works.

    I think Adobe should give the color space in AE some attention. This issue isn’t one in the other compositing tools.

  • Daniel Tegeland

    January 1, 2014 at 9:54 pm

    I use V-Ray as my renderer of choice. It doesn’t support straight alpha output. If it did I believe this wouldn’t be a problem

  • Darby Edelen

    January 2, 2014 at 5:31 am

    Did you let AE know that the footage was premultiplied? Unless V-Ray was applying different gamma to the alpha than the RGB (which would show up as a problem in any compositing pipeline) I can’t see why the standard un-premultiply wouldn’t work.

    If you’re using the EXtractoR plug-in you should note that the color and alpha settings you choose for the footage items in AE’s project panel will be ignored on instances of the footage with EXtractoR applied. The plug-in reads the data as-is from the file. If you want to un-premultiply an image using EXtractoR you check the “Unmult” box in “Process” section of the effect.

    Darby Edelen

  • Darby Edelen

    January 2, 2014 at 7:40 am

    Forgot to mention, part of the color settings that you have to worry about when using EXtractoR is the linear color. If your working space is not linearized then the extracted color will look dark. I doubt that’s the issue as you would’ve noticed colors being off, but I thought I should mention it. If it is a problem then either linearize the working space (because: why wouldn’t you?) or use a Utility > Color Profile Converter effect to convert to linear.

    Darby Edelen

  • Daniel Tegeland

    January 4, 2014 at 5:40 pm

    Hi Darby!

    Thanks for the info. I do believe that my footage is linear. And I do get black borders. My footage is set to premultiply and my project settings are linear. I have some issues with real time playback when using linearize working space(RAM preview). That is why I prefer to leave it off and use “match colors using 1.0 gamma” instead.

    If it’s not to much trouble could I send over a ae file and maybe you can have a look at it. You seem to know what you are talking about.

  • Darby Edelen

    January 5, 2014 at 6:05 am

    [daniel tegeland] “If it’s not to much trouble could I send over a ae file and maybe you can have a look at it. You seem to know what you are talking about.”

    Sure, no guarantees there’ll be a solution but I can take a look. If it’s a relatively small file you can upload to the COW otherwise you can use dropbox or something like that.

    Darby Edelen

  • Daniel Tegeland

    January 5, 2014 at 11:28 am

    Thumbs up!

    Here is a test scene I did to illustrate the problem. I did a comp of the render elements. Using them results in bad anti aliasing. The problem multiplies with the number of layers used. Maybe this isn’t a gamma problem but the fact that I m using pre-multiplied images? Just want a workflow that doesn’t produce this problem.

    The zip contains an aftereffects scene, exr images and a max scene. I didn’t include the hdri used in the scene.

    It would be great to hear your input in the matter.

    below is the link.

    6958_testedgejaggedfolder.zip

  • Darby Edelen

    January 7, 2014 at 4:55 am

    So it is definitely related to the premultiplied images and the way that AE handles compositing.

    This may seem counter intuitive but what you’ll want to do is composite all of your layers against black. Then use a copy of the footage at the top of the stack set to the Stencil Alpha blend mode to punch out the alpha from the lower layers.

    You shouldn’t need to do this if you’re compositing onto a background directly, but if you need to render out again with alpha (or there’s an intermediate step where you need good RGBA values) then you’ll need to do the above.

    Here’s an example file using the assets you provided:

    6964_testedgefixedfolder.zip

    Darby Edelen

  • Daniel Tegeland

    January 7, 2014 at 8:26 pm

    Hi Darby!

    I does seems that this does the trick in this particular scene. I imported some more objects and change the lighting some and all of the sudden I have the same problem again, although I just replaced the images from your comp. Strange. If you can find it in your heart to look at the same setup once more with a different rendering I’d be appreciative. It’s pretty close now though, but it would be nice to always know I’d be dead on.

    6967_testedgefixedconvertedfolder.zip

  • Darby Edelen

    January 7, 2014 at 11:18 pm

    I’m running CS6 so I can’t see how your compositions are set up. I was able to get the same result with the new assets you uploaded though.

    I did notice that the results look worse when using Blend Colors Using 1.0 Gamma only. I linearized the working space in the project files I’m working in and everything looks good.

    Darby Edelen

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy