Author Topic: Mask for light material  (Read 1409 times)

2022-03-14, 18:01:06

jojorender

  • Active Users
  • **
  • Posts: 246
    • View Profile
I use a Corona sky w/ HDRi for lighting and a c4d-sky w/ light material -no emit light -tonemap shader sky image (Comp tag: only seen by cam, buffer 1). See attached. ** I need a mask for the c4d-sky image.
Double-checked all checkboxes…
I get the mask layer but no mask. What am I missing?

2022-03-18, 18:22:55
Reply #1

jojorender

  • Active Users
  • **
  • Posts: 246
    • View Profile
Nothing? Nobody?

2022-03-19, 10:23:20
Reply #2

burnin

  • Active Users
  • **
  • Posts: 1537
    • View Profile
much seems unclear... what do you want to achieve?
care to share a scene?

2022-03-20, 14:18:11
Reply #3

jojorender

  • Active Users
  • **
  • Posts: 246
    • View Profile
Basically the comp tag gets ignored on a sky object. Tried with corona sky and c4d sky.
When I put the same light mat and comp tag on a regular sphere I get a mask.
Is this a known bug? When I search the forum for “composition tag on sky object ignored” I get nothing.

2022-03-20, 19:32:06
Reply #4

burnin

  • Active Users
  • **
  • Posts: 1537
    • View Profile
I think it's by design... cuz well, sky isn't really an "object"

2022-03-20, 21:38:01
Reply #5

jojorender

  • Active Users
  • **
  • Posts: 246
    • View Profile
Lol, that’s pretty bad design then.
Not arguing here with you, but hover with your mouse pointer over corona sky or c4d sky… both are “objects” and nothing is real…

So, there is no way to mask out a sky object? Seems pretty basic and sky replacement is a daily thing in archviz/ photo.
I always used the prehistoric technique of an upscaled sphere object with tons of unnecessary polys and phong tag.
I’m looking for a better way.   

2022-03-21, 11:19:20
Reply #6

Nejc Kilar

  • Corona Team
  • Active Users
  • ****
  • Posts: 1251
    • View Profile
    • My personal website
Have you tried unchecking the Sky (in your case the Light material) from affecting the Alpha? In that case you might be able to use the Alpha channel to mask our your sky. Alternatively, you can also set up an ID mask where the sky will always turn out black - you  can then try using the black color to mask things out.
Nejc Kilar | chaos-corona.com
Educational Content Creator | contact us

2022-03-22, 23:09:55
Reply #7

jojorender

  • Active Users
  • **
  • Posts: 246
    • View Profile
Hi Nejc,
inverted alpha, that could work. Will give it a try. Thanks.