- Home /
Shadows are not being cast on terrain using lightmapping
Hello guys,
I would like some advice from you. I have simple scene - one mesh, one point light and small flat terrain. Mesh is set to be lightmapping static, so is terrain. But whatever I do - there are no shadows on terrain. I am really hopeless right now and I don't know what to do to get the shadows working with terrain.
When I replace the terrain with cube, everything works fine.
Thanks in advance!
EDIT:
So on first picture, you can see the setup of terrain. If I set size down to 250x250, then you get result as on picture 2. Please note, that in the first case one terrain "tile" is larger than lamp post.
Ondrej
Have you setup the terrain correctly? Could you post a pic of the settings you have? It would be helpful to have more information, as I have grown very used to the beast lightmapping system in Unity so I think I might have encountered the same problem previously.
Answer by holsoft · Dec 31, 2014 at 06:16 PM
I have found out, that the problem was with the size of terrain and maximal resolution of lightmap, which is 4096x4096. Am I right if I say that the only way to achieve lightmapping is to scale down the terrain and split it to multiple smaller parts? (the real size of terrain is 2km x 2km and I use 1 unity unit as 1 meter).
No, it should work without scaling down the terrain. Just make sure of things like the type of lightmap you are doing, the atlas index, static, etc.
Your answer
Follow this Question
Related Questions
Lightmapping shows lighter areas cast by tree shadows 1 Answer
Lightmapping strange behaviour 2 Answers
Baked shadows too dark 1 Answer
Beast lightmapping- terrain ignores light 0 Answers
Unity Custom CutOut Shader 1 Answer