Unity Lighting - The Precompute Process 预计算过程(二)
The Precompute Process
预计算过程
In Unity, precomputed lighting is calculated in the background - either as an automatic process, or it is initiated manually. In either case, it is possible to continue working in the editor while these processes run behind-the-scenes.
在Unity中,预先计算的照明在后台计算 - 既可以作为自动处理,也可以手动启动。无论哪种情况,都可以在编辑器中继续工作,而这些过程在幕后运行。
When the precompute process is running, a blue progress bar will appear in the bottom right of the Editor. There are different stages which need to be completed depending on whether Baked GI or Precomputed Realtime GI is enabled. Information on the current process is shown on-top of the progress bar.
预计算过程正在运行时,编辑器右下方将出现一个蓝色进度条。根据是否启用了烘焙GI或预计算实时GI,需要完成不同的阶段。有关当前进程的信息显示在进度栏的顶部。
Progress bar showing the current state of Unity’s precompute.
预先计算StagesProgress栏显示Unity预先计算的当前状态。
In the example above, we can see that we are at task 5 of 11 which is, ‘Clustering’ and there are 108 jobs remaining before that task is complete and the precompute moves on to task 6. The various stages are listed below:
在上面的例子中,我们可以看到我们处于11的任务5中,即'集群',并且在任务完成之前剩余108个作业,并且预计算前进到任务6。下面列出了各个阶段:
| Precomputed Realtime GI | Baked GI | |||
|---|---|---|---|---|
| 01 - Create Geometry | 01 - Create Geometry | |||
| 02 - Layout Systems | 02 - Atlassing | |||
| 03 - Create Systems | 03 - Create Baked Systems | |||
| 04 - Create Atlas | 04 - Baked Resources | |||
| 05 - Clustering | 05 - Bake AO | |||
| 06 - Visibility | 06 - Export Baked Texture | |||
| 07 - Light Transport | 07 - Bake Visibility | |||
| 08 - Tetrahedralize Probes | 08 - Bake Direct | |||
| 09 - Create ProbeSet | 09 - Ambient and Emissive | |||
| 10 - Create Bake Systems | ||||
| Probes | 11 - Bake Runtime | |||
| 12 - Upsampling Visibility | ||||
| 01 - Ambient Probes | 13 - Bake Indirect | |||
| 02 - Baked/Realtime Ref. Probes | 14 - Final Gather | |||
| 15 - Bake ProbesSet | ||||
| 16 - Compositing |
Starting a Precompute
开始预计算
Only static geometry is considered by Unity’s precomputed lighting solutions. To begin the lighting precompute process we need at least one GameObject marked as ‘static’ in our scene. This can either be done individually, or by shift-selecting multiple GameObjects from the hierarchy panel.
Unity的预计算照明解决方案只考虑静态几何。要开始照明预计算过程,我们需要至少一个在我们的场景中标记为“静态”的游戏对象。这可以单独完成,也可以通过从层次结构面板中移动选择多个GameObjects来完成。
From the Inspector panel, the Static checkbox can be selected (Inspector>Static). This will set all of the GameObject’s ‘static options’, or ‘flags’, including navigation and batching, to be static, which may not be desirable. For Precomputed Realtime GI, only 'Lightmap Static' needs to be checked.
在Inspector面板中,可以选择静态复选框(Inspector> Static)。这会将GameObject的所有“静态选项”或“标志”(包括导航和批处理)设置为静态,这可能并不理想。对于预先计算好的实时GI,只需要检查“Lightmap Static”。
For more fine-grained control, individual static options can be set from the drop-down list accessible to the right of the Static checkbox in the Inspector panel. Additionally, objects can also be set to Static in the Object area of the lighting window.
要进行更细粒度的控制,可以从“检查器”面板中“静态”复选框右侧的可访问下拉列表中设置各个静态选项。此外,对象也可以在照明窗口的对象区域中设置为静态。
If your scene is set to Auto (Lighting>Scene>Auto), Unity’s lighting precompute will now begin automatically. Otherwise it will need to be started manually as described below.
如果您的场景设置为自动(照明>场景>自动),则Unity的照明预计算现在将自动开始。否则,需要按照以下说明手动启动。
Auto/Manual Precompute
自动/手动预计算
If ‘Auto’ is checked from the bottom of Unity’s Lighting panel (Lighting>Scene>Auto), then this precompute will begin automatically as a background process whenever changes are made to static geometry within your scene.
如果从Unity的“照明”面板的底部(光照>场景>自动)检查到“自动”,则每当对场景中的静态几何体进行更改时,此预计算将自动作为后台进程开始。
However, if Auto is not selected, you will need to manually start a precompute by clicking the ‘Build’ button next to it. This will begin the precompute in much the same way, while giving you control over when this process starts.
但是,如果未选中自动,则需要通过单击旁边的“生成”按钮手动启动预计算。这将以几乎相同的方式开始预计算,同时让您控制此过程何时开始。
Manually initiating a precompute will cause all aspects of your scene lighting to be evaluated and (re)computed. If you wish to selectively recalculate Reflection probes by themselves, this can be done via the drop-down menu next to the Build button (Lighting>Scene>Build).
手动启动预计算将导致评估和(重新)计算场景照明的各个方面。如果您希望有选择地单独重新计算反射探头,可以通过Build按钮旁边的下拉菜单(Lighting> Scene> Build)完成此操作。
GI Cache
In either Baked GI or Precomputed Realtime GI, Unity ‘caches’ (stores) data about your scene lighting in the ‘GI Cache’, and will try to reuse this data whenever possible to save time during precompute. The number and nature of the changes you have made to your scene will determine how much of this data can be reused, if at all.
无论是烘焙GI还是预计算实时GI,Unity都会在“GI缓存”中缓存(存储)有关场景照明的数据,并会尽可能重复使用此数据,以便在预计算时节省时间。您对场景进行的更改的数量和性质将决定可以重复使用这些数据的数量(如果有的话)。
This cache is stored outside of your Unity project and can be cleared using (Preference>GI Cache>Clear Cache). Clearing this means that all stages of the precompute will need to be recalculated from the beginning and this can therefore be time consuming. However in some cases, where perhaps you need to reduce disk usage, this may be helpful.
该缓存存储在Unity项目之外,可以使用(首选项> GI缓存>清除缓存)清除。清除它意味着预计算的所有阶段都需要从头开始重新计算,因此这可能非常耗时。但是,在某些情况下,您可能需要减少磁盘使用量,这可能会有所帮助。
<wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">
Unity Lighting - The Precompute Process 预计算过程(二)的更多相关文章
- Unity预计算光照的学习(速度优化,LightProb,LPPV)
1.前言 写这篇文章一方面是因为unity的微博最近出了关于预计算光照相关的翻译文章,另一方面一些美术朋友一直在抱怨烘培速度慢 所以抱着好奇的心态来学习一下unity5的PRGI预计算实时光照 2.基 ...
- Unity预计算全局光照的学习(速度优化,LightProbe,LPPV)
1.基本参数与使用 1.1 常规介绍 使用预计算光照需要在Window/Lighting面板下找到预计算光照选项,保持勾选预计算光照并保证场景中有一个光照静态的物体 此时在编辑器内构建后,预计算光照开 ...
- 基于预计算的全局光照(Global Illumination Based On Precomputation)
目录 基于图像的光照(Image Based Lighting,IBL) The Split Sum Approximation 过滤环境贴图 预计算BRDF积分 预计算辐射度传输(Precomput ...
- Unity Lighting - Choosing a Lighting Technique 选择照明技术(一)
Choosing a Lighting Technique 选择照明技术 https://unity3d.com/cn/learn/tutorials/topics/graphics/choosi ...
- Unity Lighting - Light Probes 光照探针(十)
Light Probes 光照探针 Only static objects are considered by Unity’s Baked or Precomputed Realtime GI s ...
- Unity Lighting - Lighting overview 照明概述
Lighting overview 照明概述 In order to calculate the shading of a 3D object, Unity needs to know the ...
- Unity Lighting - Emissive Materials 自发光材质(九)
Emissive Materials 自发光材质 Whilst Area Lights are not supported by Precomputed Realtime GI, similar ...
- Unity Lighting - Light Types 灯光类型(八)
Light Types 灯光类型 We have now covered some of the project settings which need to be considered befo ...
- 数据挖掘概念与技术15--为快速高维OLAP预计算壳片段
1. 论数据立方体预计算的多种策略的优弊 (1)计算完全立方体:需要耗费大量的存储空间和不切实际的计算时间. (2)计算冰山立方体:优于计算完全立方体,但在某种情况下,依然需要大量的存储空间和计算时间 ...
随机推荐
- EasyPoi导入Excel
EasyPoi的导出Excel功能和导入功能同样简单.我之前强调过,EasyPoi的原理本质就是Poi,正如MyBatis Plus的本质原理就是MyBatis. POI导入功能可以参考如下地址:ht ...
- iOS 数据库sqlite3.0操作--超简单--看我就够啦
iOS客户端数据存储的方式有很多,下面主要是介绍苹果自带的sqlite3.0的使用方法. 首先导入sqlite3.0的框架.然后导入头文件#import <sqlite3.h>就行了 下面 ...
- 如何用javasript对Gridview的项目进行汇总统计?
当我们在gridview显示统计信息时,都会想在gridview最后一行显示[小计]结果,但gridview的话好像比较难搞(至少我也不会呀 囧~),那么我就结合jquery写了一个解决方案,下面举个 ...
- 内网最小化安装CentOS后,想安装ISO文件中的包怎么办呢?
昨日公司测试人员需要升级公司服务器Python,发现公司服务器上缺失了各种各样的包.比如open-ssl,python-deve等 1.查看你的Centos版本 lsb_release -a 2.上传 ...
- 利用MyFlash闪回丢失数据(续)
last night,i've tested flashback by MyFlash tool,but failed,now let's do some other test with ...
- SSM+poi导入和导出
最原始数据 导入成功后 下载数据 下载后的数据显示 数据变成16条 点击导出可选择 导了两次 看数据变化 数据库字段在下面地址给出 首先贴出Dao层 List<User> findAll ...
- thinkphp5配置讲解
一.thinkphp配置类型有哪些? 1.在thinkphp中,有6种配置.即惯例配置,应用配置.扩展配置.模块配置.场景配置.动态配置. 2.惯例配置就是系统默认的配置. 3.应用配置就是我们自己开 ...
- 【Java】集合遍历--List和Map的多种遍历方式
1. List的两种遍历方式 package com.nova.test; import java.util.ArrayList; import java.util.Iterator; import ...
- hadoop生态搭建(3节点)-17.sqoop配置_单节点
# ==================================================================安装 sqoop tar -zxvf ~/sqoop-1.4.7 ...
- AS5600磁编码器开发记录
AS5600使用简介--(程序员版) -----------------本文由"智御电子"提供,同时提供范例教程,以便电子爱好者交流学习.---------------- 前言: ...