2024-04-18, 08:41:03
Home
Help
Search
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Chaos Corona Forum
Chaos Corona for 3ds Max
[Max] I need help!
Need to render a mask that is behind glass
Print
Pages: [
1
]
2
All
Author
Topic: Need to render a mask that is behind glass (Read 10156 times)
2018-07-27, 18:17:28
RobH2
Active Users
Posts: 14
Need to render a mask that is behind glass
I have an object behind glass. I need to render a mask of it. The transparent material obscures the mask and if I render the mask with the glass turned off, the mask is not in the correct location due to refraction.
How can it pull a mask from something behind glass while leaving the glass enabled?
Logged
2018-07-27, 18:45:03
Reply #1
Frood
Active Users
Posts: 1919
Re: Need to render a mask that is behind glass
Currently you can't. Simply that. Vote for
"Refraction/Reflection working with masking render elements (CMasking_Mask,CTexmap, etc...)"
here:
https://forum.corona-renderer.com/index.php?topic=96.0
if you need it desperately.
Good Luck
Logged
Never underestimate the power of a well placed level one spell.
2018-07-27, 18:58:07
Reply #2
RobH2
Active Users
Posts: 14
Re: Need to render a mask that is behind glass
Good enough. I'll vote.
Well, we all think that everything we need is "desperate" don't we...lol...? I'll render the mask in VRay I guess. I think it can do it.
Thanks for the fast response.
Logged
2018-07-27, 23:38:43
Reply #3
iancamarillo
Active Users
Posts: 281
Re: Need to render a mask that is behind glass
or hide the glass and re render only masks. I dreaded this workflow but surprisingly was very fast for an animation I did
Logged
2018-07-31, 18:59:15
Reply #4
Frood
Active Users
Posts: 1919
Re: Need to render a mask that is behind glass
You don't get a refractive mask doing so. Depending on the (glass) object you only get some approximation but usually just a wrong mask.
Good Luck
Logged
Never underestimate the power of a well placed level one spell.
2018-07-31, 19:16:11
Reply #5
iancamarillo
Active Users
Posts: 281
Re: Need to render a mask that is behind glass
yes sorry, I misread the initial post
Logged
2018-07-31, 20:18:15
Reply #6
pokoy
Active Users
Posts: 1861
Re: Need to render a mask that is behind glass
Smartass alert here but can't you disable all lights, set the glass reflection to zero, set the object that you need a mask of to self illumination 1/white and render that? Not a direct solution but maybe a viable workaround.
Logged
2018-07-31, 20:48:05
Reply #7
Frood
Active Users
Posts: 1919
Re: Need to render a mask that is behind glass
Interesting hack! Now we have shadowcatcher workaround for opacity masks and self illu for refraction - and a horrible workflow :) But for that one mask quickly needed, why not.
Good Luck
Logged
Never underestimate the power of a well placed level one spell.
2018-07-31, 21:06:22
Reply #8
pokoy
Active Users
Posts: 1861
Re: Need to render a mask that is behind glass
Yeah it's not very elegant but will probably work, I've used this setup on a few occasions. Forgot to specify that you'd probably need to use a LightMtl because you need to make the object not emit any light.
If you need the mask for reflections too you need to keep reflections enabled for the glass material.
Logged
2018-07-31, 21:59:32
Reply #9
iancamarillo
Active Users
Posts: 281
Re: Need to render a mask that is behind glass
nice!
Logged
2018-09-19, 19:28:10
Reply #10
actrask
Active Users
Posts: 142
Re: Need to render a mask that is behind glass
I just had to do a similar trick that pokoy used. Put a Rayswitcher on the object behind the glass and have only the 'refract override' set to a self illuminated RG or B color. This will stop the self-illum from kicking out any GI. Put a flat black material on everything except the glass and refracted object. I'd save a scene state before doing this.
Aside from all that, is it really that hard to implement this or is it just not a high priority?
«
Last Edit: 2018-09-19, 20:02:20 by actrask
»
Logged
http://actrask.com
2019-07-13, 15:56:48
Reply #11
julienbe
Active Users
Posts: 6
Re: Need to render a mask that is behind glass
Same problem for me here.
I'm working on a commercial with a fish in an aquarium. It is practically impossible to use the render elements for post-production because of the refraction of the aquarium glass.
JULIEN
Logged
2019-07-15, 19:02:49
Reply #12
actrask
Active Users
Posts: 142
Re: Need to render a mask that is behind glass
What if you set the aquarium glass object to "not visible to camera"?
Logged
http://actrask.com
2019-07-26, 11:07:00
Reply #13
bluesarchitecture
Active Users
Posts: 5
Re: Need to render a mask that is behind glass
i found this...
dont know if it helps.
https://coronarenderer.freshdesk.com/support/solutions/articles/5000529357-how-to-make-an-object-invisible-in-masks-render-elements-
Logged
Noiselevel
Behance
2019-07-26, 16:45:45
Reply #14
actrask
Active Users
Posts: 142
Re: Need to render a mask that is behind glass
Wow, I never knew about that. Thank you!
Logged
http://actrask.com
Print
Pages: [
1
]
2
All
Chaos Corona Forum
Chaos Corona for 3ds Max
[Max] I need help!
Need to render a mask that is behind glass