Compression
您应该升级到
This section contains compression settings for the Landscape Layer Map, thus applicable for the Landscape Terrain object. Compression for the Terrain Global object is performed automatically.本节包含 Landscape Layer Map 的压缩设置,因此适用于 Landscape Terrain 对象。 Terrain Global 对象的压缩是自动执行的。
Compression serves to reduce the size of the *.lmap file, which may also speed up asynchronous streaming of tiles. In some cases, compression ratio may exceed 100:1.压缩用于减小 *.lmap 文件的大小,这也可以加快图块的异步流传输。在某些情况下,压缩比可能超过100:1 。
Enabling compression in this section implies that all Landscape Layer Map objects in the generated terrain will be compressed.在本节中启用压缩意味着将压缩生成的地形中的所有 Landscape Layer Map 对象。
To enable or disable compression for an individual layer (or layers), you can use the parameters of the selected Landscape Layer Map.要为单个层(或多个层)启用或禁用压缩,您可以使用所选 Landscape Layer Map 的参数。
Parameters参数#
By default, compression is disabled. The following compression options are available:默认情况下,压缩被禁用。可以使用以下压缩选项:
- Lossless — ensures absence of quality deterioration and decompresses graphic data to its original state.无损— 确保没有质量下降并将图形数据解压缩到其原始状态。
- Lossy — provides a higher compression ratio but some information may be lost.有损— 提供更高的压缩比,但可能会丢失一些信息。
Custom — compression rules can be customized according to your requirements. The following options are available in this mode:自定义— 可以根据您的要求自定义压缩规则。此模式下提供以下选项:
Supported compression methods:支持的压缩方法:
- Our Method — recommended. UNIGINE compression method optimized for compressing 2D and 3D textures. It provides better results than LZ4 and Zlib without quality reduction.Our Method — 推荐。 UNIGINE 压缩方法针对压缩 2D 和 3D 纹理进行了优化。它提供了比 LZ4 和 Zlib 更好的结果而不降低质量。
- Zlib — for high compression ratio (can provide up to 2 times higher compression ratio, but takes up to 20 times longer).Zlib — 用于高压缩比(可以提供高达 2 倍的压缩比,但需要最多 20 倍的时间)。
- LZ4 — temporary option, planned to be removed in the upcoming releases.LZ4 — 临时选项,计划在即将发布的版本中删除。
In addition, you can enable lossy compression for individual components of Landscape Layer Maps:此外,您可以为 Landscape Layer Maps 的各个组件启用有损压缩:
- Height Opacity dataHeight Opacity 数据
- Albedo dataAlbedo 数据
- Mask dataMask 数据
Height data is always compressed using loseless compression.高度数据始终使用无损压缩进行压缩。