x


Lighmaps - can I turn lights off completely in a lighmapped scene?

If I use lightmaps, that means I just can't turn off the lights in a scene completely (Doom 3 style), because if I remove all lights the scene stays baked illuminated. Is this understading right and if not, how would I achieve that effect?

more ▼

asked Oct 24 '10 at 06:02 PM

purpleduck gravatar image

purpleduck
61 11 11 17

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Your understanding is right. Only non-lightmapped objects would be affected by switching off the lights. What you could probably do is keep 2 lightmaps: One with lights, and a dark one (obviously, that will still be lit somehow because without any lights including global illumination / self-illumination, everything would just be black). Then, switch between the two as needed.

You might even be able to blend the two lightmaps into each other. But that will probably require some pretty advanced shader programming.

more ▼

answered Oct 24 '10 at 06:19 PM

jashan gravatar image

jashan
10.1k 25 41 116

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

x207
x86

asked: Oct 24 '10 at 06:02 PM

Seen: 1491 times

Last Updated: Oct 24 '10 at 06:02 PM