Using Premultiplied Images and unpremultiplying them

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  12 December 2006
Using Premultiplied Images and unpremultiplying them

Is there any way to un-premultiply rendered images in Photoshop?

Most 3D applications write images where the rgb-image is premultiplied with the alpha channel. The result canīt be used in Photoshop, since photoshop wants a clean (not-premultiplied) edge and cuts it with the alpha on its own. The result is, that if the 3D element is rendered against black background and you put a white background behind the object in photoshop, you end up in dark edges around the object. Compositing tools like AfterEffects handle this with ease (they automatically unpremultiply).

So .. in formula, what 3D delivers (using finalrender, actually no straight mode available):

RGB(premultiplied) = RGB(rendered) * Alpha

What i need:

RGB(rendered) = RGB(premultiplied) / Alpha

quite easy formula, but how can this be done in Photoshop? Or is there a filter available that calculates this?
  12 December 2006
Layer, Matting, Remove Black Matte.

To use this your layer has to have transparency, not just a mask. In other words you have to add your alpha as a layer mask, then apply the layer mask, then use Remove Black Matte.
  12 December 2006
THANKS! .. i thought this would only pixel-shrink the transparency mask, but i compared with a straight AfterEffects export and the results match perfectly. great
  12 December 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright Đ2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 10:00 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.