Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Alan on 2015-09-03, 19:55:38

Title: Compose with CShading_SourceColor
Post by: Alan on 2015-09-03, 19:55:38
Hello guys,

There is some way to compose the beauty with the elements, but using the CShading_sourcecolor? If I use the CESSENTIAL passes, I can't manipulate the shadows, and etc. What is the best way to do this?

Thanks
Title: Re: Compose with CShading_SourceColor
Post by: Ondra on 2015-09-03, 22:16:13
if you do source color * raw lighting, you will get cessential for that BRDF component
Title: Re: Compose with CShading_SourceColor
Post by: Alan on 2015-09-13, 23:59:19
Thanks Ondra, it's working!

I got the beauty passe doing this:

source color * raw lighting + reflection + refraction + emission + translucency

It's okay by here, the only problem is that the raw lighting is giving me the indirect light together, and not only the light, because this I'm not able to grading only the indirect light if I want.
Title: Re: Compose with CShading_SourceColor
Post by: Ondra on 2015-09-14, 00:11:03
you can revert the formula

lighting = source_color * raw
raw = lighting / source_color

i.e. raw_indirect = lighting_indirect / source

where lighting_indirect is (CESSENTIAL indirect pass
Title: Re: Compose with CShading_SourceColor
Post by: Alan on 2015-09-16, 21:08:41
Thanks Ondra!!