Author Topic: Prevent Black Appearance Not Working Properly on Rectangular Lights  (Read 2633 times)

2017-05-22, 20:25:28

apjasko

  • Active Users
  • **
  • Posts: 92
    • View Profile
I'm not sure if I'm the only one who has this issue, but I can't seem to preserve the direct appearance of rectangular lights. The prevent black apparent just doesn't seem to work in these instances. Is this normal for rect lights?

2017-05-22, 20:48:04
Reply #1

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5540
    • View Profile
All seems working normally here. The one thing I can think of that you might be experiencing is when Directionality is zero, the non-illuminated side of the light will still show as black (and Prevent black appearance is greyed out). You can either add the slightest amount of directionality, or use Emit on both sides, in that instance.

Can you share screengrabs of the scene set up, light settings etc?
Tom Grimes | chaos-corona.com
Product Manager | contact us

2017-05-22, 22:04:53
Reply #2

apjasko

  • Active Users
  • **
  • Posts: 92
    • View Profile
I attached a screenshot with my light selected.

The light is shining through on the pop-jets as I'd like them to, and when I set the directionality to 0, or a low enough number that cone of light hits the physical camera, it's visible. The check box doesn't seem to work on the rectangular light. I've had this issue in the past with rect lights and I was able to get by with disc lights instead.

2017-05-23, 15:30:21
Reply #3

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5540
    • View Profile
So this is in a case where the CoronaLight is not directly visible, but only seen through Refraction?

There might be a bug here, would be up to the developers to say for sure. Attaching a simple test scene. If the Light is viewed through the box with Refraction (even with IOR of 1.0), then it does not show up even with Prevent Black Appearance. Check the "Thin (no refraction)" and the Light does show up. A white self illuminated plane at the same location always shows up.

So it looks like "Prevent black appearance" may not work as expected through Refraction.

For your scene set up, where the light itself isn't really casting light into the scene but only intended to show up in the water jets via refraction (if I am understanding the image correctly!), would replacing it with a plane with a Self Illumination material work? Alternatively, if there is some purpose for it being a light other than to add white into the refraction of the water (volumetrics maybe?), you could use both a Light and a Plane together to achieve both effects.

Tom Grimes | chaos-corona.com
Product Manager | contact us

2017-05-25, 16:04:35
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12810
  • Marcin
    • View Profile
Yes, the "prevent" option will not work in refractions, and probably reflections either. This is currently a limitation, and it should be fixed in the upcoming releases, as it is often requested.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us