Difference between revisions of "Troubleshooting"
(→I get an “Out of memory” error) |
|||
Line 33: | Line 33: | ||
=== I get an “Out of memory” error === | === I get an “Out of memory” error === | ||
This means rendering needed more video memory from your GPU than it has. | This means rendering needed more video memory from your GPU than it has. | ||
− | + | ||
+ | First, try closing any other graphics-intensive programs (browsers too). | ||
+ | |||
+ | If the problem persists, the most likely reason is that the resolution you selected is unreasonably high for the given scene. Resolution is defined by [[Manual#Texels_per_unit|Texels per Unit]] (this section also has a list of reference values) or set explicitly in [[Manual#Bakery_Lightmap_Group_Selector|Lightmap Groups]]. Reducing it will help. You can always selectively use high resolution for important objects via [https://docs.unity3d.com/Manual/class-MeshRenderer.html Scale in Lightmap]. | ||
If the error happens during GI phase, try setting [[Manual#GI_VRAM_optimization|GI VRAM optimization]] to Force On in advanced settings. | If the error happens during GI phase, try setting [[Manual#GI_VRAM_optimization|GI VRAM optimization]] to Force On in advanced settings. | ||
Line 41: | Line 44: | ||
If you have a very high amount of painted trees on your terrain, try disabling the [[Manual#Export_terrain_trees|Export terrain trees]] option. | If you have a very high amount of painted trees on your terrain, try disabling the [[Manual#Export_terrain_trees|Export terrain trees]] option. | ||
<hr> | <hr> | ||
+ | |||
=== After importing Bakery I get errors containing “obsolete” and “UnityUpgradable” === | === After importing Bakery I get errors containing “obsolete” and “UnityUpgradable” === | ||
Before importing Bakery, make sure you don't have any compilation errors in your project. | Before importing Bakery, make sure you don't have any compilation errors in your project. |
Revision as of 08:22, 3 June 2019
This is a list of common problems, their symptoms and solutions.
Contents
- 1 Shadowmasks are not baked
- 2 Shadowmasks are baked, but Unity renders real-time shadows instead
- 3 Using a version control system I copied the scene to another PC and it doesn't look right
- 4 Baking same asset in one scene breaks its UVs in another scene
- 5 Denoiser throws error 505
- 6 I get an “Out of memory” error
- 7 After importing Bakery I get errors containing “obsolete” and “UnityUpgradable”
- 8 I get a "Can't load" error
Shadowmasks are not baked
Check following things:
- Bakery's Render Mode is set to Shadowmask.
- Masked lights have both Unity and Bakery light components on them.
- Masked Bakery light components have "Baked contribution" set to "Indirect and shadowmask".
Shadowmasks are baked, but Unity renders real-time shadows instead
You're in Distance Shadowmask mode, it's expected. Read more about the difference:
https://docs.unity3d.com/Manual/LightMode-Mixed-Shadowmask.html
https://docs.unity3d.com/Manual/LightMode-Mixed-DistanceShadowmask.html
- To switch between two modes, you can use "Distance Shadowmask" checkbox in Bakery main window.
- If you're on 5.6, go to Window->Lighting->Mixed Lighting->Lighting Mode to switch the mode.
Using a version control system I copied the scene to another PC and it doesn't look right
Make sure you followed version control guidelines.
Baking same asset in one scene breaks its UVs in another scene
The reason here is UV padding adjustment. It modifies the UVs in the asset, so spacing between UV charts is optimal, meaning they never leak over each other and there is no much wasted space. Unity has a manual Pack Margin option on model assets, but it’s limited since it applies the same exact value for all meshes inside the model, while each mesh can get drastically different size in the final lightmap based on its surface area. Therefore Bakery overrides it with automatically calculated per-mesh (instead of per-model) padding. However, because “optimal” varies depending on baking resolution, it can be problematic to reuse the same asset in isolated scenes with different lightmap size. There are multiple ways to solve it:
- Generate your own optimal UVs. UV padding adjustment only applies to models with auto-generated UV layout (aka “Generate Lightmap UVs” checkbox) and never touches custom data.
- Use UV padding: increase only checkbox and first bake the lowest resolution scene, and then the rest.
- Just disable UV padding adjustment.
- Use two different models for different lightmap resolutions, so each will get the most efficient set of UVs.
- Bake both scenes together.
Denoiser throws error 505
I get an “Out of memory” error
This means rendering needed more video memory from your GPU than it has.
First, try closing any other graphics-intensive programs (browsers too).
If the problem persists, the most likely reason is that the resolution you selected is unreasonably high for the given scene. Resolution is defined by Texels per Unit (this section also has a list of reference values) or set explicitly in Lightmap Groups. Reducing it will help. You can always selectively use high resolution for important objects via Scale in Lightmap.
If the error happens during GI phase, try setting GI VRAM optimization to Force On in advanced settings.
If you have terrains in your scene, make sure Terrain optimization is enabled.
If you have a very high amount of painted trees on your terrain, try disabling the Export terrain trees option.
After importing Bakery I get errors containing “obsolete” and “UnityUpgradable”
Before importing Bakery, make sure you don't have any compilation errors in your project.
Restart Unity, reimport the package. Click “I made a backup, go ahead” if Unity asks.
See this page for more details.
I get a "Can't load" error
If Bakery says it can't load something, make sure you have enough free disk space on the drive used for temporary data.