问题
简单的在地形上刷了不大的一片草后,点击构建光照,居然异常的慢,还有警告提示Light Map Size太大,请降低光照贴图分辨率或是减少草的数量,这就令人很疑惑了,因为Cast Shadow已经关闭了呀。
InstancedFoliageActor_0 The total lightmap size for this InstancedStaticMeshComponent was too big and it was automatically reduced. Consider reducing the component’s lightmap resolution or number of mesh instances in this component
InstancedFoliageActor_0 The total lightmap size for this InstancedStaticMeshComponent is large, consider reducing the component’s lightmap resolution or number of mesh instances in this component
错误解决办法
于是,打开了草的Static Mesh界面,将默认的Light Map Resolution从64降低到了8(保证是2的次幂),但还是同样的结果。
正确解决办法
在植被模式下,将Static Mesh Foliage配置中的Mobility修改为Movable, 因为草的数量过大,最好别Bake Light Map。