Sun Flare by Layers?

Hi,

I have a big scene here, with multiple camera on various layers, and a Sun light, which has a flare effect to it.

This flare is only visible to one of the cameras (the first one to be rendered), and that camera can only see a few objects in the scene.

But the problem is, the Sun Flare is being culled by ALL colliders in the scene, including the ones that aren’t supposed to be visible to the Flare Layer camera.

Well, at least I THINK that’s the problem, I can’t be sure, but it sure looks like that’s what’s happening. Sometimes the sun disappears even though there was nothing actually in front of it (nothing visible to that camera, that is), so I think the problem is that objects in other layers are culling the flare, even though they’re not supposed to.

Can anyone help with this? Unity’s docs don’t go into much depth about flare effects and what culls them.

As always, Thanks in advance!

Cheers

I have the same problem and… sadly I think that any collider anywhere regardless of settings and layers will block the flare.

I would be really happy to be proven wrong on this one.

There’s a critical property of flares that isn’t in the outdated docs. Ignore Layers. Are you guys not using this?

If you put an object on the TransparentFX layer, then it won’t block flares.

–Eric

Unless you take TransparentFX out of Ignore Layers.

Putting the colliders in TransparentFX seems to work fine, cheers!

But I really can’t seem to find where the ignore layers is for some reason. From your wording, I assumed it would be on the flare asset, but I really don’t see it.

I think this is the problem:

I had tried flares on Lights, instead of using Flare components, but found that useless, just like the directional checkbox. What’s that good for? Outdoor scenes with no occluding objects?

Now that I tried playing with Ignore Layers extensively, though, it seems pretty broken. You guys getting nonsensical, unpredictable results?

678768--24380--$Screen shot 2011-09-03 at 11.18.12 PM.png

Thanks! I completely overlooked this Sun Flare component actually, I thought flares had to be tied to a light object all the time. This is really useful, and it did fix the culling problem! :slight_smile:

Thanks again!

Cheers