LOD Group 不同 Lod 使用不同 LightMap

本文详细介绍了在Unity中使用LOD(Level of Detail)特性与烘焙光照时需要注意的关键细节。主要内容包括:确保实时全局光照关闭以正确烘焙LOD模型;最高细节级别的模型将正常烘焙直接与间接光照;较低细节级别的模型仅烘焙直接光照,并依赖光探针来采样间接光照。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

LOD for baked lightmaps

https://docs.unity3d.com/560/Documentation/Manual/LODForBakedGI.html

https://docs.unity3d.com/Manual/LODForBakedGI.html


LOD for baked lightmaps

There are a number of details you must be aware of when baking light on models which use theLOD (level of detail) feature.

Baked indirect light on LOD models only works correctly when Realtime Global Illumination is switched off. IfRealtime Global Illumination is switched on, the lower LOD models from the LOD group will not be lit correctly.

Realtime Global Illumination must be switched off, for correct lighting of LOD models.Realtime Global Illumination must be switched off, for correct lighting of LOD models.

When you are using Unity’s LOD system in a scene with baked lighting, the highest level-of-detail model out of the LOD group is lit as if it was a regular static model, using lightmaps for the direct and indirect lighting.

For all the lower level-of-detail models in the group, only the direct lighting is baked, and the LOD system relies onlight probes to sample indirect lighting.

This means if you want your lower level-of-detail models to look correct with baked light, youmust position light probes around them to capture the indirect lighting during the bake.

If you do not use light probes, your lower LOD models will have direct light only, and will look incorrect:

The LOD 1 and LOD 2 models here are lit incorrectly because light probes have not been placed around the model in the scene. They only show direct lighting.The LOD 1 and LOD 2 models here are lit incorrectly because light probes have not been placed around the model in the scene. They only show direct lighting.

To set up LOD models correctly for baked lighting, mark the LOD objects as Static for lightmapping:

Place light probes around the LOD objects using the light probes component.

Light probes placed around a LOD model.Light probes placed around a LOD model.

After baking the light, your lower level-of-detail models show correctly show the indirect and bounced light, matching the highest level-of-detail model:

You should also be aware that only the highest level-of-detail model will affect the lighting on the surrounding geometry (for example, shadows or bounced light on surrounding buildings). In most cases this should not be a problem since your lower level-of-detail models should closely resemble the highest level-of-detail model.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值