- Home /
The question is answered, right answer was accepted
Terrain won't keep lightmap.
I am having an extremely annoying problem. I have a 512*512 terrain with it's lightmap resolution set to 4048. It takes a long time to lightmap and it comes out nice. I save the scene and play to check it out. As soon as the game starts the lightmap for the terrain disappears. Only the terrain though. The lightmap on everything else including the trees on the terrain is fine. It is very annoying and I have tried everything. Thank you for your time.
Answer by Baldinoboy · Dec 13, 2012 at 09:10 PM
Found out what the problem was. When I clicked play the lightmap index for the terrain went to -1. Don't know why but I put the correct lightmap number and now it works.
Even I had the same problem once, i did the same to rectify, but why in the hell the light-map index of a terrain(Particularly) going wrong as the game starts.
Very strange. Haven't had this problem again. Just had something to do with that scene.
How do you know what "index number" to set your lightmap to? Is it the same everytime, or do you just start guessing?