PDA

View Full Version : A problem with Primary Visibility and Photoshop


basquiat
02-11-2006, 11:01 AM
Hi all,

I have a problem with rendering in layers, I wonder if anyone else has experienced this:
I render objects in layers by togling primary visibility attributes of different objects, and saving the renders as seperate PSD files. All seems fine, but when I import the files to photoshop and mix them together, I have thin dark edge around objects in different layers, like a comic book edge. It's really anoying and I have no idea where this comes from or why.
Can some one help me please? Thanks,

Ivan

Jozvex
02-11-2006, 01:19 PM
Sounds like a 'pre-multiplied alpha' issue. By default when you render something, the alpha channel is multiplied over the render to... make it look nicer, hehe. For compositing this is bad though as you've discovered. Other apps like Digital Fusion can remedy this with the push of a button but I can't remember if Photoshop has a similar feature. Anyway, in the Render Globals (at least for Mental Ray) you can turn off the Pre-Multiply flag in the Framebuffer area.

:thumbsup:

basquiat
02-11-2006, 01:33 PM
Thanks Jozvex, I'll try your suggestion :) .

I'm posting a small example, if you have any other insight:

http://i14.photobucket.com/albums/a336/basquiat/example.jpg

Left is the normal render. Right is the layered composite of background and ball.

djx
02-13-2006, 02:23 AM
In photoshop you can do layer-matting-"remove black matte" to make it deal with the edge correctly. (Of course this assumes you rendered on a black background)


edit:
I spoke too soon. Photoshop CS 2 seems to over-compensate for the black and you end up with a light colored fringe instead. You can use the layer-matting-"defringe..." to remove it but its not ideal.

Until recently I have been doing this un-premultiply using aftereffects and saving as a layered photoshop file. I think I'll go back to that, since it gives a cleaner result.

CGTalk Moderation
02-13-2006, 02:23 AM
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.