x


Lights only sometimes working

I am creating a light in my scene using a script activated by a button press. This is working fine (creating the light) but only seems to render once. If I stop playback and then start it again and repeat the same action (without changing my script) the light no longer appears to render (although it is created).

Now if I PAUSE my game after the script has created my light and adjust any of it's attributes in the inspector the light suddenly renders in the game window and affects the plane below it as it should be doing all along.

Interestingly if I delete my plane and create a new one it starts works again (but only once, next time I run the game the light does not render)

What's going on here? Is it because I'm using the free version?

more ▼

asked Jun 01 '10 at 10:09 PM

John A C gravatar image

John A C
37 6 6 8

Can you post the script causing this issue? Without it anyone trying to help will just be taking a stab in the dark.

Jun 02 '10 at 01:08 AM Murcho
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Have you checked the render settings? Number of per-pixel lights to render. I had this problem in a scene with lights turning on and off because my per-pixel lights was too low.

more ▼

answered Nov 11 '10 at 01:59 PM

Despiracy gravatar image

Despiracy
17 1

(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:

x1667
x427
x427
x266
x254

asked: Jun 01 '10 at 10:09 PM

Seen: 691 times

Last Updated: Jun 01 '10 at 10:09 PM