Hi All,
When using a standard cutout shader/material, it won’t let emission through the “holes” so that anything behind the cutout surface remains unlit when baked.
This has worked with 4.6 and I’m struggling to get it working again after upgrading to Unity 5.
Please see the examples and the attached scene archive below.
Using an emissive surface, the sphere receives no light/shadow, while its cutout “cage” is pretty hardly lit:
Same setup, with a spotlight instead of the emissive surface (light is being let through the grill as expected):
Does anybody know how to get this working?
My real (complex) scene works with emission almost exclusively and I’d like to keep it that way.
Thank you.
2227781–148393–cutoutbake.zip (1.36 MB)
Objects can should be marked as transparent for GI. In some cases it works fine without it, but in some, as this one, it doesn’t.
So just follow these simple steps to make it work:
- Create new Lightmap parameter using Create in project browser
- Mark it as transparent
- Assign to cube (cage) object
- Rebake
Dear QA Overlord,
Thank you for taking the time to help me!
Well, I know about the method you’re using, but doesn’t that mean that I loose the shadows of the cage on the sphere?
Your screenshot also suggests you do lose the grill shadows.
Is there a way to get it working complete with shadows?
Thank you.
Hi! Emission will not work well in this case, as it is designed to emit low resolution indirect lighting. Unless you model the cage as geometry and use extremely high resolution, I don’t think you can make this work. Emission is not suited for this case, you should use a bunch of realtime lights to approximate an area light and use realtime shadows or a cookie to add the cage markings
Hi KEngelstoft,
Thanks for your reply!
Well, that’s exactly what I’m doing. Faking it with baked lights (doesn’t look very nice).
I didn’t do this in Unity 4.6 and it had very nice shadows. In fact, in my real scene, it’s not two objects, but one. A segment of a road and the same mesh has this grill and also tubes running under the grill. Looked really nice with the grill shadows on the tubes in 4.6. Unless I mix things up, but I don’t think I do.
Thank you.