Ti Error while Lightmapping

Hello everyone.

I’ve recently been trying to lightmap a scene which consists of a terrain and a lot of standard unity assets (trees, bushes, etc). However, I’ve been receiving these errors in the console everytime the baking completes.

ti
Assert in file: …..\Editor\Src\LightmapperBeastRetrieve.cpp at line: 66

I’ve tested smaller scenes using the same terrain and just standard objects like cubes and spheres, and it works perfectly. However, when I try the same method in my larger scene, I always get this error, and it seems to delete some textures and such of objects that are being affected. No shadows are baked and no lightmap textures are created under the Lightmapping → Maps section of the lightmapping tool.

Any ideas what would be causing this? I couldn’t find any information about it on the web or UnityAnswers.

Thanks.

I found the problem through some digging on Unity Answers. Here’s the topic if anyone is interested.

Apparently, the problem occurs when you have a scene file not saved in your scene directory. I didn’t notice that my scene that wouldn’t work was in the main directory, and beast doesn’t seem to find those files if they’re not in the scene file.

Scene file should be in assets folder. Beast makes a folder relative to your scene file and puts the lightmaps in there. So if your scene file is outside the assets folder, then the lighmaps are outside the assets folder and unity can’t access them.

So it’s not really a bug. I filed it a while ago, they know about it. The solution is to somehow make it clearer that you need to have the scene file inside assets folder instead of giving us that mysterious error message.