View Full Version : Alpha with sky or background object question
joeski4d 02-20-2008, 04:00 PM I'm trying to render out an object that has a soft alpha gradient applied to its texture. If I render against black (no sky or bknd object) the alpha renders fine (see alpha desired, far right below).
But I need the object to render against white, so I have a sky object with a white texture applied (I've tried the background object, too.) When I render it this way, the alpha loses it's soft transition and becomes solid (see middle alpha below).
Is there a way to achieve the desired alpha when using the sky object?
I'm pretty sure this could be rendered out with the desired alpha using object buffers, but I'm looking for a way to get this w/out using several passes.
any help here would greatly be appreciated!
thanks,
Joe
http://joeski.com/cgtalk/alpha-example.jpg
|
|
Katachi
02-20-2008, 04:35 PM
This is a restriction in c4d. I reported it...I think 1 year ago. Hope to see this flattened soon. Anyway, did you try using transparency instead of alpha? (I remember this didnīt work either...however, worth a try as Iīm not sure anymore)
And why not using no background at all. Then go to PS and composite with a white bg. Create a PS action for it, then process the whole sequence if itīs an animation.
HTH
govinda
02-20-2008, 04:52 PM
It's been a bug all this time, eh? I just speculated that it was premultiplying with the hue used in the background object, even if you use 'straight' as an alpha setting iirc.
joeski4d
02-20-2008, 05:09 PM
Thanks for the info... At least I know it's a bug now and not something I was doing wrong.
Replacing the black background in PS with white doesn't work because some of the black remains present in the transition from blue to white (darkens the glow effect).
I guess I'll just have to create object buffers and render some separate passes and composite....
thanks again,
Joe
Cartesius
02-20-2008, 06:30 PM
Long standing issue with C4D: Sky and Background kills alpha. Would a big Plane placed behind your objects, with either full white Luminance or 100% white Color combined with a comp tag work in your situation?
/Anders
georgedrakakis
02-20-2008, 07:12 PM
thanks for the info, too!
long time i was dealing with a procedural-roof-shader. (http://studiomoccoro.googlepages.com/roof_tiles_1.jpg/roof_tiles_1-full;init:.jpg)
i quit it, cause i thought that displacement and alpha don't get along together.
i've just opened the file and i saw a sky-object for background.
now it's time to set-up the rigdes :)
thanks again!
joeski4d
02-21-2008, 01:26 PM
Long standing issue with C4D: Sky and Background kills alpha. Would a big Plane placed behind your objects, with either full white Luminance or 100% white Color combined with a comp tag work in your situation?
/Anders
Thanks, yes I think just using some object buffers with the sky object should do the trick. Not a big deal, but it does add some extra steps... this would have been much quicker if it wasn't for the bug... now I know.
specs2
02-21-2008, 02:07 PM
i'm facing that problem at work all the time. we work around that, by rendering the object twice, once with sky and once without. then, you copy the alpha channel from the version without the sky to the version with the sky.
try, if this works for you.
chromecity
07-01-2008, 03:05 AM
I just ran into this for the first time tonight. Apparently, I hadn't used alpha & sky & background together before. What was weird about it in my case was that at first it was rendering just fine. Then for no known reason it just suddenly started to ignore the alpha (although the OpenGL viewport previews and material swatches still looked correct). In my case, the alpha was just to matte certain areas 100% out, so I was able to use a compositing tag on the sky to tell it to exclude the objects with those materials and since the sky effects weren't really noticeable on those particular objects anyway, that worked fine. Definitely had me perplexed for a while though.
williamsburroughs
07-01-2008, 05:05 AM
Replacing the black background in PS with white doesn't work because some of the black remains present in the transition from blue to white (darkens the glow effect).
Joe
Import the same image into Photoshop and apply the following:
Layer > Matting > Remove Black Matte
This should take away the fringe of Black in the Alpha Channel.
I usually apply this whenever importing 3D composite elements into Photoshop.
Hope this helps.
pasto
07-01-2008, 09:40 AM
What about exclusion (compositing tag) ?
Just exclude your plane object from the sky.
Navstar
07-02-2008, 07:26 PM
If you use After Effects, try the free Unmult plug-in from Red Giant Software.
edit: that works with images on black backgrounds only. You could run Invert RGB, then Unmult, then Invert RGB again.
CGTalk Moderation
07-02-2008, 07:26 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.