Chaos Corona Forum

Chaos Corona for Cinema 4D => [C4D] General Discussion => Topic started by: magmatik on 2017-03-27, 12:56:57

Title: about alpha masks for compositing
Post by: magmatik on 2017-03-27, 12:56:57
Hi everyone,
first of all I'd like to say that I love Corona and thanks to it I've totally let AR down in C4D (until then I didn't really try another render engine).
It's just madness with new Ryzen 1800X+ GTX1070 config !

That said, I'm facing a problem : I can't get an alpha mask on specific item whatever the tag I assign or not to it.
I always get a mask on all the items of my scene (wich is quite a problem with full frame L-shape background > the mask is fully white).
I assume that I'm probably missing something.
Please see the attached picture.

Could you please give a link that explain how it works or tell me here where is the trick?

Thank you so much in advance.
Title: Re: about alpha masks for compositing
Post by: CBAS VISUAL on 2017-03-27, 13:41:31
Same, i dont know how to exlude an object from alpha.
The corona tag should do this but it doesnt work.

R18, a6.3, win10
Title: Re: about alpha masks for compositing
Post by: magmatik on 2017-03-27, 14:11:22
R18, a6.3, win10 64 too
Title: Re: about alpha masks for compositing
Post by: synolog on 2017-03-27, 14:57:40
Hi, in corona multipass, under mask, under "multiple condition mixing" select "Intersection AND". Remember to select Object GBuff ID
Title: Re: about alpha masks for compositing
Post by: magmatik on 2017-03-27, 15:35:38
Hi thank you for the answer.
I did what you told. Still not working...
I really don't understand what's wrong.
Title: Re: about alpha masks for compositing
Post by: synolog on 2017-03-27, 15:53:36
You need only to select object Gbuff ID
Title: Re: about alpha masks for compositing
Post by: magmatik on 2017-03-27, 16:09:05
You're right I had forgotten this point but even by enabling this option, it doesn't work...
Really sorry for the trouble.
Title: Re: about alpha masks for compositing
Post by: synolog on 2017-03-27, 16:15:06
Could you send me your file?
Title: Re: about alpha masks for compositing
Post by: CBAS VISUAL on 2017-03-27, 17:42:50
Create a Corona tag on the object u dont want the alpha, uncheck visible in mask
Multipass, add a mask pass, Multiple conditions mixing -> Instersection(AND)

That's all.
Title: Re: about alpha masks for compositing
Post by: magmatik on 2017-03-28, 12:16:12
It still doesn't work as it should, even with your last advice... :S
Why isn't it as simple as in the basic C4D ?

synolog, have you had an eye on the file I sent you ?
Title: Re: about alpha masks for compositing
Post by: synolog on 2017-03-28, 13:06:13
Yes, i've sent you a reply in pm. You forgot to activate the multipass.
Title: Re: about alpha masks for compositing
Post by: magmatik on 2017-03-28, 19:17:40
@synolog: thank you for your answer

I'm quite sure multi-pass was activated during my tests.
I'm keeping trying to get proper alpha masks and I still can't get them.
I won't bother everyone more with my problem.

Could just someone (synolog ?) share a file with a proper multipass setup (with a basic scene like cube + sphere -> alpha only on cube or sphere) ?

Thanks in advance.
Title: Re: about alpha masks for compositing
Post by: synolog on 2017-03-28, 21:55:58
3 cubes, 3 masks
Title: Re: about alpha masks for compositing
Post by: magmatik on 2017-03-29, 10:26:47
Hi synolog, thank you very much.
I get alpha masks as they should be with your file.
Will keep it preciously as an example of what to do.
Title: Re: about alpha masks for compositing
Post by: basor on 2017-04-03, 11:52:56
Sorry for bringing up this topic again, but is it somehow possible to get the material IDs as direct alpha channels for post production in photoshop or do I have to save the masks individually and add the selection as a new alpha?
Also, when I select to save all the render channels at once it never saves all the masks, just one single one. Am I doing something wrong here or is this already known?

Thank you guys!
Title: Re: about alpha masks for compositing
Post by: synolog on 2017-04-04, 09:33:49
Hi basor, I use photoshop script "load into stack" to load a folder with beauty, alphas, etc.
Title: Re: about alpha masks for compositing
Post by: basor on 2017-04-14, 13:50:06
Hi synolog, thanks for your answer! Unfortunately this doesn't really help me. I will just get all the files directly into one photoshop file, but my problem is with the alpha channels. Isn't there a way to get them as an alpha channel directly out of corona, just like you have it with the standard renderer from cinema 4d? I think the color selector doesn't work that accurate to save the alpha channels individually from every mask layer.

I attached an image from photoshop, where you see want I mean
Title: Re: about alpha masks for compositing
Post by: synolog on 2017-04-14, 15:34:48
Hi synolog, thanks for your answer! Unfortunately this doesn't really help me. I will just get all the files directly into one photoshop file, but my problem is with the alpha channels. Isn't there a way to get them as an alpha channel directly out of corona, just like you have it with the standard renderer from cinema 4d? I think the color selector doesn't work that accurate to save the alpha channels individually from every mask layer.

I attached an image from photoshop, where you see want I mean

Hi, i've attached a psd file from C4D/Corona using save multipass image and standard c4d_render_viewport. Usefull?
Title: Re: about alpha masks for compositing
Post by: basor on 2017-04-19, 16:35:04
Hi synolog, thanks for your answer! I made some screenshots from a work in progress visualization I am working on. On the first image you see my scene, it had some different masks with it, one for each material. But when I load in one of the masks (image 2) and select by color and then change it to lights, so it just takes the white tones, it just doesnt select them perfectly (image 3). With the Cinema4D standard renderer you have the masks directly converted to alpha channels, so you can simply select the layer and it selects everything perfectly fine. So thats kind of my problem, I can't select the masks properly when I have more detailed scenes.. Is there anything I can do?


Or is it just a bug from photoshop, so it just didn't show the selection in the correct way? Thats what I'm thinking after selecting the lights and not the color white..
Title: Re: about alpha masks for compositing
Post by: iacdxb on 2017-08-22, 07:02:20
In save alpha channel is active and in Multi-pass Alpha also active.
I am getting alpha layer in white...!

any help...?

Thanks.

...