x


Light mapping problems

Hello guys !

Light mapping is giving me troubles :(

I tried to follow this : http://docs.unity3d.com/Documentation/Manual/Lightmapping.html but it's not really working... I have declared static some structures (walls, floors ...) and created 7 lights (5 points, 1 directional, 1 spot). I have chosen the Generate Lightmap UVs option for my structures too.

Then I finally baked my scene and ... everything but the non static objects are black ! The scene is completely dark.

After several tests, I gave up and tried with a scene with 2-3 cubes only. The result is better than completely dark, but not quite what I expected : alt text

I'm missing something huge (I hope), but I can't understand why ...

EDIT : up ! After a bake of my big scene with the new version 3.5.5f2, I have a different result (?). Is there something corrected in this version ?

pb_lightmapping.jpg (346.0 kB)
more ▼

asked Aug 07 '12 at 11:48 PM

KiraSensei gravatar image

KiraSensei
672 12 24 34

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

1 answer: sort voted first

http://unity3d.com/unity/whats-new/unity-3.5.5 nothing about lightmaps

i don't see any troubles on your scene. just bad-configured lightmapping. the best-looking baked lightmap will create tons of textures and will calculate a lot. decreasing quality settings decreases these.

so just spend some time tweaking lightmapper settings.

ask if stuck with something

alt text

1.png (189.2 kB)
more ▼

answered Aug 08 '12 at 08:54 PM

ScroodgeM gravatar image

ScroodgeM
7.6k 2 6

mmmmh, could it be that it works correctly only with directionnal lights for the free version of Unity ?

Aug 08 '12 at 09:46 PM KiraSensei

i really don't think so. in free version usually features or works, or doesn't works.

Aug 08 '12 at 09:51 PM ScroodgeM

Ok, so I may need your help :D. I had it work with a directional light, but I have the weard result (like in my screenshot) with spot and point lights. I don't understand what parameter could do that ...

Aug 08 '12 at 09:55 PM KiraSensei

first, try in all light's properties set shadow type = hard shadows

Aug 08 '12 at 10:05 PM ScroodgeM

There is no change. I saw that in the inspector, when I select hard shadows in shadow type I have two warnings with a point or spot light : "Only directional lights have shadows in forward rendering" and "Realtime shadows require unity pro". With the directional light, I only have the second warning. I don't quite understand the first one ...

Aug 08 '12 at 10:28 PM KiraSensei
(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
x7

asked: Aug 07 '12 at 11:48 PM

Seen: 1012 times

Last Updated: Aug 09 '12 at 08:29 PM