Professional Documents
Culture Documents
COVID-19 Support:
We’re providing all users three months of complimentary access to Unity Learn Premium, from
March 19 to June 20, 2020.
Projects
Courses
Tutorials
Learn Live
Topics
Premium
Configuring Lightmaps
Tutorial
Beginner
15 Mins
Overview
Tutorial Materials
Details
1
Your progress
Where am I?
1.
Configuring Lightmaps
2.
Getting to Know Lightmap Settings
3.
Enlighten Settings
4.
Progressive Settings
5.
Setting up for Baking
6.
Baking the Lightmap
Summary
Lightmapping is the process of pre-calculating the brightness of surfaces in the Scene. It stores the
information it calculates in a chart or lightmap for later use. Lightmaps allow you to add global
illumination, shadows, and ambient lighting at a relatively low computational cost. In this tutorial,
we’ll get to know the lightmapping settings.
Recommended Unity versions
2018.1
Topics we'll cover
Project Management
Lighting & Visual Fidelity
Industry
AEC
Automotive
Film
Games
Language
English
Tutorial
Configuring Lightmaps
1
1.Configuring Lightmaps
Lightmapping is the process of pre-calculating the brightness of surfaces in the Scene. It stores the
information it calculates in a chart or lightmap for later use. Lightmaps allow you to add global
illumination, shadows, and ambient lighting at a relatively low computational cost.
The Unity Engine uses the Progressive Lightmapper system, which bakes lightmaps for your scene
based on how your scene is set up. It takes into account all the meshes, materials, textures, and
lights within the scene as it does its pass. When a lightmap is generated, GameObjects
automatically use them as they are an integral part of the Unity rendering engine.
3.Enlighten Settings
For now, we’re only concerned about the Lightmap Settings in the Light Setting Window.
• Lightmapper: Use this to specify which internal lighting calculation to use when
calculating the lightmaps in a scene. The options are Progressive and Enlighten.
• Indirect Resolution: This option is only available when Realtime Global Illumination is
enabled. Use this to specify the number of texels per unit to use for the indirect lighting
calculation. The higher the number, the higher the quality, but this also increases the bake
time. This setting refers to both Height and Width of the Lightmap.
• Lightmap Resolution: Use this to specify the number of texels per unit to use for
lightmaps. The higher the number, the higher the quality, but this also increases the bake
time. This setting refers to both Height and Width of the lightmap.
• Lightmap Padding: Use this to specify the separation between the different shapes in the
baked lightmap.
• Lightmap Size: The size of the full lightmap texture.
• Compress Lightmaps: Toggle this to compress your lightmap. Compressed lightmaps use
less disk space, but the compression process can introduce unwanted visual artifacting into
the texture.
• Ambient Occlusion: Toggle this to adjust the additional settings of the ambient occlusion in
your lightmap (Figure 02). The additional settings are: Max Distance, which controls how
far the lighting system will cast rays. Indirect Contribution controls the brightness of the
indirect light as seen in the final lightmap. Finally, Direct Contribution controls the
brightness of the direct light.
4.Progressive Settings
Now that we’ve covered the settings for the Enlighten mode, let’s take a look at the Progressive
mode.
• In the Light Settings window, change the Lightmapper option to Progressive. (Figure 03)
Figure 03: Progressive Lightmap Settings
Progressive mode settings differ a bit from Enlighten mode. We’ll cover those differences here.
• Prioritize View: Enable this to cause the Lightmapper to apply changes to the texels that are
currently visible in the Scene View before applying changes to the out-of-view texels.
• Direct Samples: This controls the number of samples shot from each texel. It ultimately
controls the number of samples that Progressive Lightmapper uses for direct lighting
calculations.
• Indirect Samples: This controls the number of samples shot from each texel. It ultimately
controls the number of the samples that Progressive Lightmapper uses for indirect lighting
calculations.
• Bounces: This controls the number of indirect bounces to do when tracing paths. Usually for
most scenes a value of 2 is enough.
Configuring Lightmaps
General Tutorial Discussion
0
1
1. Configuring Lightmaps
0
0
2. Getting to Know Lightmap Settings
0
0
3. Enlighten Settings
0
0
4. Progressive Settings
0
0
5. Setting up for Baking
0
0
6. Baking the Lightmap
0
0
Copyright © 2020 Unity Technologies
Legal
Privacy Policy
Cookies
Language:
English
简体中文
한국어
日本語
Русский
Español
Français
Deutsch
Português