Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: lyn95 on 2025-02-04, 05:52:28

Title: Alpha channel from mirror reflection
Post by: lyn95 on 2025-02-04, 05:52:28
Hi guys, does anyone know how to get alpha channel from mirror reflection? Or saving a render as a .png file and retaining the window's transparency in the mirror?

I read a post about a similar problem here:
https://forum.corona-renderer.com/index.php?topic=39199.0
but I still couldn't figure it out. Propagate Masks didn't work for me.

Here I have a sample scene of a window and a mirror. I will be saving this render as a .png file so I can insert my own background outside the window, but I am unable to do so with the mirror reflection. Can anyone help me? :) Thank you so much.
Title: Re: Alpha channel from mirror reflection
Post by: maru on 2025-02-04, 09:29:55
Yes, mask propagation should do the trick: https://support.chaos.com/hc/en-us/articles/4528327507729
If you cannot get it to work as expected, please post your results.
Title: Re: Alpha channel from mirror reflection
Post by: lyn95 on 2025-02-04, 11:15:24
Here's what I did. I changed the "Propagate Masks" to "Always" for the clear window glass material and the mirror material. But the alpha is still not showing in the mirror reflection. Am I doing something wrong? I tried "Through Reflection" and "Through Refraction" options as well but nothing changed either.
Title: Re: Alpha channel from mirror reflection
Post by: maru on 2025-02-04, 14:20:54
Turns out this doesn't work for alpha and unfortunately it's due to technical reasons. It works for CMasking_ elements though. You can use CMasking_Mask to get a black and white mask.
Title: Re: Alpha channel from mirror reflection
Post by: lyn95 on 2025-02-05, 02:52:17
Hi, I tried adding a CMasking_Map render element and going to Interactive Render to try it out, but it's showing just a black screen. Is there a step I missed?
Title: Re: Alpha channel from mirror reflection
Post by: maru on 2025-02-05, 08:40:51
Did you include any objects in the CMasking render element settings?
Title: Re: Alpha channel from mirror reflection
Post by: lyn95 on 2025-02-05, 09:41:22
I tried using CMasking_ID and it worked :) CMasking_Mask still shows a black screen though. Just curious, how do I "include objects in the CMasking render element settings"? Maybe I can get the CMasking_Mask to work that way.
Title: Re: Alpha channel from mirror reflection
Post by: maru on 2025-02-05, 10:04:59
Like this:
Title: Re: Alpha channel from mirror reflection
Post by: lyn95 on 2025-02-05, 10:23:20
Ah okay :) I tried including the glass and mirror only and the result turned out weird, so I selected everything in the scene and included them (don't know if that's the right way to do it?) and it worked! Thank you very much.
Title: Re: Alpha channel from mirror reflection
Post by: maru on 2025-02-05, 10:34:29
Yes, this should be the correct method in this case.
You can also click on the include button, select "exclude" and not any objects to the list. This can be sometimes more convenient than adding ALL scene objects to the include list.
Title: Re: Alpha channel from mirror reflection
Post by: lyn95 on 2025-02-05, 11:17:24
Thank you for the helpful tips! That would be very useful in larger scenes with lots of objects :)