x


Using all scene objects to generate lightmap, but only applying lightmap to certain objects

I have a forest scene where I want to compute a lightmap for the ground which catches all the shadows from the trees, but I don't want to apply a lightmap to the trees themselves since I've used some texture from my trees with baked in shadow detail already. Is there a way to calculate a lightmap for the ground using the trees but have the trees not lightmapped?

I tried deleting all the lightmaps from the scene except the one for the ground to no avail. Is there a way to turn off lightmapping on a per object basis after the lightmap is baked?

more ▼

asked May 21 '12 at 03:33 AM

flarb gravatar image

flarb
16 5 5 5

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

3 answers: sort voted first

uncheck "static" from all the trees once baking is done. not sure whether it works. give a try.

more ▼

answered Aug 07 '12 at 11:46 AM

sathya gravatar image

sathya
11 1 3

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

What if I turn off "receives shadows" in the mesh renderer. Does the lightmapper look at those settings when computing the lightmaps?

more ▼

answered Jun 24 '12 at 01:18 AM

quitebuttery gravatar image

quitebuttery
0

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

Do this: renderer.lightmapIndex = 255; for the objects that you don't want to be affected by lightmaps.

more ▼

answered May 22 '12 at 07:16 PM

Paulius Liekis gravatar image

Paulius Liekis
7.3k 16 24 45

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

x328
x207
x140

asked: May 21 '12 at 03:33 AM

Seen: 652 times

Last Updated: Aug 07 '12 at 11:46 AM