Activity › Forums › Adobe After Effects › Mattes leaving a fine black line around the edge
-
Mattes leaving a fine black line around the edge
Posted by Neil Kidney on September 10, 2007 at 5:37 pmHowdy folks,
Ive often seen it, but not until now to need to find the solution…
Ive got Mattes for a 3D render to pull out some objects etc. but when i use the matte, it doesnt do a thorough job, it leave a black line around the edge.
choking and/or blur doesnt really do the trick…
Any tips?
Cheers, TBK
Bill Beaumont replied 15 years, 2 months ago 7 Members · 6 Replies -
6 Replies
-
Steve Roberts
September 10, 2007 at 5:46 pmIt sounds as if the alpha (actually the RGB, but who’s counting) of the renders was premultiplied. Can you re-interpret the footage as “premultiplied”, choosing black as the color?
File>interpret footage>main.
Or are you trying to key an image that has no alpha?
-
Hunter Christy
September 10, 2007 at 5:48 pmso, just to understand. you rendered something in a 3d app, like C4D, and then rendered a matte?
this is a stupid question, but you have the alpha (or luma) matte set, on the rendered layer, to track the matte layer?
THE BiG HONKIN’
“The Defenders Of Stan”-lots of after effects -
Greg Neumayer
September 10, 2007 at 6:48 pmWhen you render your 3D, make sure you render with a “straight” alpha, not a premultiplied one. Then, of course, when you import your matte, interpret it as a “straight” alpha.
In short, premultiplied alphas define the semi-transparent areas (your anti-aliased edges) by determining what your object would look like semi-transparent over a black background*. Straight alpha channels, which are optimal, are purely defined by a level of transparency, without “premultiplying” it to any specific color.
*The color used to premultiply the semi-transparent areas is usually adjustable to any color you want, but often defaults to black.
If you 3D software has no ability to render a straight alpha, you’ll need to try to get it to at least use a color most similar to the background you’re compositing it to in AE. For example, use blue if rendering a plane to be put in a blue sky.
Most 3D apps nowadays will render a straight alpha. For Maya, there’s a checkbox buried in the render settings called “premultiply” or something that needs to be unchecked (if I remember correctly).
Check your AE manual for more info on straight/premultiplied alpha channels.
Hope it helps.
-GregAntifreeze Design
https://www.antifreezemotiongraphics.com -
Kevin Camp
September 10, 2007 at 8:09 pmif you have the 3d object footage rendered with an alpha channel, then setting the interpret footage settings to premultiplied should work, as mentioned before…
but, if you have the 3d footage and a matte as separate renders, and are setting the matte as the trackmatte for the 3d fill footage, precomp the matte and fill footage (after setting the fill footage to use the matte as a trackmatte). then apply the effect remove color matting, this should remove the fringe… if the fringe was not black, choose the color that the 3d object was rendered on.
in the future, if you can render as straight or unmatted in your 3d app and also include the alpha in the file, you can simplify this workflow… be aware though that not all 3d apps correctly render as straight with alpha… my somewhat old version of c4d gives me a white fringe around the object, and i actually think it is easier to remove the black fringe in the interpret footage settings.
Kevin Camp
Designer – KCPQ, KMYQ & KRCW -
Aharon Rabinowitz
September 11, 2007 at 11:30 amIn case you aren’t clear on the whole Straight vs. Premultiplied thing – watch these 2 videos:
In General
https://cowcast.creativecow.net/multimedia_101/episodes/CC_101_StraightiPod_Lo.mp4Rendering Straight With AE
https://library.creativecow.net/articles/rabinowitz_aharon/straight_vs_premult.php -
Bill Beaumont
June 24, 2011 at 5:54 pmI just wanted to say….. I love you guys!
I’ve been banging my head off a brick wall with this problem and your post means I can go home to my family! I cannot thank you enough. Seriously, you rock!
Reply to this Discussion! Login or Sign Up