Seeking Unity 5 Lighting Assistance

Hi,

I’m in the process of upgrading our project from Unity 4.6 to Unity 5.1.0f2 (currently) and I am running into Lightmapping issues. This is sort of the last hurdle we need to overcome here to be confident in using Unity 5 moving forward. That being said, I’m still prepared to downgrade to Unity 4.6 if necessary.

I’m attaching my system specifications and a sample of my lighting settings for future reference.

I have a number of questions related to lighting in Unity 5, but my major issues at the moment are:

-the time it is taking to bake lightmaps (7-14 hours, unfinished, cancelled, on larger scenes)
-lighting/lightmapping errors
-artifacts on lightmaps in smaller scenes

What kinds of things can I do to improve my lightmapping bake time(s)? Here is what I have tried so far:

-Updated my materials from legacy shaders to the standard shader. (necessary or just rumored to help?)
-lowered my lighting specifications (not low enough?)
-turned off all lights but one (helpful?)
-changed directional mode to non-directional
-increased my GI cache to 100 GB
-converted light to baked only as opposed to realtime or mixed (helpful?)
-changed my skybox material to a procedural one (does this help? Will old skybox materials (diffuse) cause a problem?)

I have read a few things that help, but I am not sure if these are just rumors or have been substantiated. Can anyone comment as to their efficacy?

-remove standard Unity cubes from a scene (what about other primitives?)
-make all objects in the scene have a scale of 1 (not feasible in my current situation)
-lower the light parameters to very low for large objects (Unity’s scale is relative. What is considered a large object? High polycount? Scale in comparison to other objects? Scale in transforms?)

To give an idea about time:

-I have a scene with about 1100 objects that I cancelled after 14 hours
-I have a scene with about 30 objects that took about 30 minutes

Some errors I have scene on longer bakes:

-Clustering failed

I need to be able to bake a large scene in about 7-8 hours time. I feel like this is a reasonable request, although I don’t know if this is reasonable with Unity 5. In Unity 4.6 my bake times were about 3-4 hours with large scenes with about 1100 objects.

Suggestions? Comments?





read through this thread and found some interesting information

Any updates on PowerVR Raytracing solution? Any updates on improving speed of Enlighten?

I’ve done some more testing and while I think the results could be quite nice with Enlighten, the speed of the bake times, especially for outdoor scenes or slightly larger scenes makes it unusable as a solution at this time. I also just need a basic or “classic raytracing” solution such as Beast. I don’t need realtime GI at this time. Are there any alternatives to Enlighten that can be used? I saw in the thread link that I posted that Beast will not be coming back. Is it possible to bake lightmaps outside of Unity and import them into Unity for use, instead of Enlighten? Has anyone tried this? How did you bake the lightmaps?

Can anyone from Unity comment on some of these questions?

That’s a lot of questions, but I’ll cut straight to the point. In this case you simply have way too high indirect resolution (in screenshot it’s set to 1).

Value of around 0.001 should be way more appropriate based on the screenshots. Instead you can increase baked resolution after you get it to bake in some more appropriate time.

Thank you for the tip. It seems to have improved things, but overall it is not quite there.

Is there anything else that appears wrong to you from my settings? Anything else I can do to improve the speed of my bake?

Is it possible to bake lightmaps outside of Unity and import them into Unity for use, instead of Enlighten?


Check out the editor.log and compare how long precompute and bake take.
If precompute is still way longer than bake, select big objects and set Low or Very-Low quality parameters for them, that will decrease their indirect even more.

Instead you will be able to increase baked resolution.

Btw, how long does it take right now and what time are you aiming for?