PDA

View Full Version : Premultiply with IBL


majorbludd
08-09-2006, 06:27 PM
Hello,
I've had this problem for a while but I can't find a solution. I have a scene with an object and I'm using IBL. When I use IBL I can't premultiply objects to my camera's environment color. Black is what the image get's premultiplied with. This is driving me crazy and I can't find any info except a few threads that don't really address this. I am using photoshop to composite the images and I tried to use the "Layer/matting/remove black matte" but I don't like the result. I also tried to map the HDRI to a sphere around my scene but the reflections seem to be not as dynamic. I don't inderstand why this can't seem to be done. Please help me get rid of these black halos. Thanks.
-Noah

ZippZopp
08-09-2006, 09:08 PM
i noticed this as well, whenever I use IBL, no matter what my cameras environment color is set to, my background is alway black. no idea if there is a way around this, does anyone know?
one thing i do to get around this is select the alpha in photoshop, fill it with black on a new layer. drop that underneath your render and set your render to i think linear dodge and it should get rid of the black matte edge. give it a shot

Undseth
08-09-2006, 10:17 PM
You can assign a ray-shader to the "texture" slot of the IBL node and set the "eyerays" slider on the ray-shader to white, this way the background will turn white.

You need to switch the type option from "file" to "texture".

A hdri file may be assigned to the "finalgather" slot of the rayshader.

Ive seen at least two rayshaders on cgtalk, the one i tried just now is the "ctrl_rays" shader which is found somewhere on cgtalk.

When using final gather with multibounce, i think the eyeray color will somehow add to the fg shading and make things a bit brighter when the value of the white is set to 1, even brighter if value is set higher than 1.

Link to links (http://forums.cgsociety.org/showthread.php?t=338895&highlight=ctrl_rays)

majorbludd
08-09-2006, 11:08 PM
Thank you both guys. Using ctrl_rays is such a good idea! I didn't think of that (obviously). I'll try it now.

Ash-Man
08-10-2006, 12:43 PM
I"m not sure if this would be the answer to your problem

but you can Uncheck Premultiply
from render settings
under Primary framebuffer

---- EDIT-------
if you are trying to have IBL to sphere of ex and u want the background to be white
then
2 render layers ..cause the IBL is an enviroemnt node...
one layer over ride to file .. HDRI
the other override to be color white
and Uncheck the premultiply

CGTalk Moderation
08-10-2006, 12:43 PM
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.