# ImportLightProbes
Unity version: 2020.3
This sample shows how to import externally-generated (e.g. in Blender) lightprobes in a scene in the Editor.
In its initial state, the "ImporterScene" scene has 8 light probes and no GameObjects contribute to the Global Illumination (i.e. light probes). 5 spheres were added to visualize the light probes.
`probes.txt` contains the light probe positions and [spherical harmonics](https://docs.unity3d.com/Documentation/Manual/LightProbes-TechnicalInformation.html) in a csv format. These coefficients were generated with the GameObjects under `Environment` set to "Contribute Global Illumination" and the `External Bake Light` enabled.
To trigger the import process first load the "ImporterScene" scene and then use the "Light Probes" menu in the editor.
- "Import light probes" imports light probe positions and SH coefficients.
- "... [n]" does step n of "Import light probes". For debugging.
- "Log light probe data" outputs to the console the current light probe data.
- "Reset light probes" reverts to the default light probe setup.
- "Clear baked data" clears the baked lighting data.
Switch between the "ImporterScene" and "EmptyScene" scenes to validate that the import worked.
Note that it's best to set the [Lightmapping settings](https://docs.unity3d.com/Manual/Lightmapping.html) to their lowest values to make the "dummy" light baking step faster.
## Caveats
- Don't import with an additive scene loaded. This is because Unity creates a "merged" `LightProbes` object in that case which can interfere with the light probe data's serialization to disk.
- Importing positions is straighforward through `LightProbeGroup.probePositions`. Serializing (i.e. saving to disk) the imported coefficients is not as direct and we need to make sure to save `LightmapSettings.lightProbes`.
- As this is not directly supported (at the moment) by Unity, please add some tests to validate the light probes are correctly imported and saved in your use case.
## Results
Initial state:
![Initial state](Documentation~/initial.png)
Positions imported and "dummy" bake done with light probe preview active:
![Positions imported](Documentation~/positions.png)
Final result with light probe preview active:
![Final result](Documentation~/coefficients.png)
没有合适的资源?快使用搜索试试~ 我知道了~
来自 Accelerate Solutions Games 团队的 Unity 代码示例_C#_代码_下载
共312个文件
asset:129个
meta:75个
png:22个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 130 浏览量
2022-06-23
17:04:10
上传
评论
收藏 2.9MB ZIP 举报
温馨提示
样品 资产管理/可锁定文件夹 统一版本:2020.3 可锁定的资产文件夹,可防止更改其内容。 资产管理/URPShaderAssetBundles 统一版本:2020.3 如何使用包含在通用渲染管道 (URP) 包中的着色器创建 AssetBundle。 图形/相机性能 统一版本:2020.3 性能基准项目,用于测量在 Unity 的内置渲染管道和通用渲染管道 (URP) 中使用多个相机的影响。 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
来自 Accelerate Solutions Games 团队的 Unity 代码示例_C#_代码_下载 (312个子文件)
ProjectSettings.asset 21KB
ProjectSettings.asset 21KB
ProjectSettings.asset 19KB
ProjectSettings.asset 19KB
ProjectSettings.asset 19KB
ProjectSettings.asset 19KB
InputManager.asset 10KB
InputManager.asset 10KB
InputManager.asset 10KB
InputManager.asset 10KB
QualitySettings.asset 6KB
QualitySettings.asset 6KB
InputManager.asset 6KB
InputManager.asset 6KB
QualitySettings.asset 4KB
QualitySettings.asset 4KB
SampleSceneProfile.asset 3KB
SampleSceneProfile.asset 3KB
GraphicsSettings.asset 3KB
GraphicsSettings.asset 3KB
GraphicsSettings.asset 3KB
GraphicsSettings.asset 2KB
GraphicsSettings.asset 2KB
GraphicsSettings.asset 2KB
Physics2DSettings.asset 2KB
Physics2DSettings.asset 2KB
Physics2DSettings.asset 2KB
Physics2DSettings.asset 2KB
Physics2DSettings.asset 2KB
Physics2DSettings.asset 2KB
ForwardRenderer.asset 2KB
ForwardRenderer.asset 2KB
ForwardRenderer.asset 2KB
UniversalRP-MediumQuality.asset 2KB
UniversalRP-HighQuality.asset 2KB
UniversalRP-MediumQuality.asset 2KB
UniversalRP-MediumQuality.asset 2KB
UniversalRP-HighQuality.asset 1KB
UniversalRP-LowQuality.asset 1KB
UniversalRP-LowQuality.asset 1KB
QualitySettings.asset 1KB
QualitySettings.asset 1KB
NavMeshAreas.asset 1KB
NavMeshAreas.asset 1KB
NavMeshAreas.asset 1KB
NavMeshAreas.asset 1KB
NavMeshAreas.asset 1KB
NavMeshAreas.asset 1KB
DynamicsManager.asset 1KB
DynamicsManager.asset 1KB
DynamicsManager.asset 1KB
DynamicsManager.asset 1KB
EditorSettings.asset 1KB
EditorSettings.asset 1KB
DynamicsManager.asset 1KB
DynamicsManager.asset 1KB
PackageManagerSettings.asset 1003B
PackageManagerSettings.asset 1003B
PackageManagerSettings.asset 1003B
PackageManagerSettings.asset 1003B
PackageManagerSettings.asset 1003B
PackageManagerSettings.asset 1003B
EditorSettings.asset 995B
EditorSettings.asset 995B
EditorSettings.asset 969B
EditorSettings.asset 969B
UnityConnectSettings.asset 901B
UnityConnectSettings.asset 901B
UnityConnectSettings.asset 901B
UnityConnectSettings.asset 853B
UnityConnectSettings.asset 853B
UnityConnectSettings.asset 853B
PresetManager.asset 797B
PresetManager.asset 797B
EditorBuildSettings.asset 700B
EditorBuildSettings.asset 700B
AudioManager.asset 416B
AudioManager.asset 416B
AudioManager.asset 413B
AudioManager.asset 413B
AudioManager.asset 413B
AudioManager.asset 413B
URPProjectSettings.asset 410B
URPProjectSettings.asset 410B
URPProjectSettings.asset 410B
TagManager.asset 378B
TagManager.asset 378B
TagManager.asset 378B
TagManager.asset 378B
TagManager.asset 378B
TagManager.asset 378B
EditorBuildSettings.asset 355B
VFXManager.asset 308B
VFXManager.asset 308B
VFXManager.asset 273B
VFXManager.asset 273B
VFXManager.asset 273B
VFXManager.asset 273B
EditorBuildSettings.asset 226B
TimeManager.asset 202B
共 312 条
- 1
- 2
- 3
- 4
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9149
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Spring Boot和MyBatis的社区问答系统.zip
- (源码)基于Spring Boot和WebSocket的人事管理系统.zip
- (源码)基于Spring Boot框架的云网页管理系统.zip
- (源码)基于Maude和深度强化学习的智能体验证系统.zip
- (源码)基于C语言的Papageno字符序列处理系统.zip
- (源码)基于Arduino的水质监测与控制系统.zip
- (源码)基于物联网的智能家居门锁系统.zip
- (源码)基于Python和FastAPI的Squint数据检索系统.zip
- (源码)基于Arduino的图片绘制系统.zip
- (源码)基于C++的ARMA53贪吃蛇游戏系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功