x


Lens Flares shines through (maya)-object geometry..

Hi,

ive made a simple project where a sun is rotating around a object (created in maya) 360 degrees. For this light ive activated lens flares. If i start the scene and orbit through the mousescript that the object is between camera and light-source, the lens flares shines through the object.

If i create a simple cube and position this one between light and camera, it works perfect and no lensflares are shown.

Does anybody know something about this "bug"?

Thanks for your time

more ▼

asked Apr 19 '10 at 11:50 AM

yosh gravatar image

yosh
901 73 81 94

Does the object have a collider?

Apr 19 '10 at 12:35 PM spinaljack
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

From http://unity3d.com/support/documentation/Components/class-Flare.html

Lens Flares are blocked by Colliders. A Collider in-between the Flare GameObject and the Camera will hide the Flare, even if the Collider does not have a Mesh Renderer.

more ▼

answered Apr 19 '10 at 12:50 PM

spinaljack gravatar image

spinaljack
9.1k 18 31 91

Yes, nice. Ive adden an meshcollider and now it works. Thanks for your fast answer.

Apr 19 '10 at 12:59 PM yosh

No problem :-)

Apr 19 '10 at 01:02 PM spinaljack
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1665
x797
x374

asked: Apr 19 '10 at 11:50 AM

Seen: 3154 times

Last Updated: Apr 19 '10 at 11:50 AM