当前位置:网站首页>Unity occlusion culling
Unity occlusion culling
2022-06-11 04:21:00 【Sea moon】
Set the static objects in the scene as static occlusion Static Occluder And static obstructions Static Occludee.

But they have to be terrain or Mesh Renderer, Opaque , Don't move .
After setting the static occluder and the static occluded , Make sure that the camera has the occlusion removal function turned on , You can bake the occluded data .
window - Rendering - Occlusion culling , Open the occlusion culling panel

Object tab related settings
Screne Filter You can select the object type to edit , After selecting an object, you can adjust its static identification .
1. If you don't create an occluded area , Occlusion culling is applied to the entire scene by default .
2. Whenever the camera is outside the occluded area , Occlusion culling will not be applied . It is important to have a camera where the occluded area covers , But if the occlusion area is too large , It will lead to more baking expenses .
3. Occlusion Areas Applied to moving objects to be occluded .
Bake tab related settings

Smallest Occluder
The size of the minimum shelter : The smallest size that can block other objects , Anything smaller than this size will be obscured
Smallest Hole
This value represents the minimum gap between the geometry that the camera should see .
Backface Threshold
Unity Occlusion using data size optimization , Reduce unnecessary details by testing the back . The default value is 100 It is powerful. , Back faces are not removed from the dataset . The value is 5 Data will be actively reduced depending on the location with the visible back . The idea is usually , Effective camera positions usually do not see many backgrounds - for example , View below the terrain , Or views in solid objects that you should not be able to reach . Below the threshold 100 Under the circumstances ,Unity These areas will be completely removed from the dataset , This reduces the size of occluded data .
View the culled effect
After baking , Select the visualization tab , Then go to the scene , choice Visualize, You can see the effect of being eliminated
Whether to bake the occlusion elimination effect of terrain
Only the scene objects are baked , No baked terrain
This leads to redundancy drawcall
The following figure , The house is shaded by the terrain , But it hasn't been eliminated , So there is 4331 Of drawcall

After baking , The house was knocked out ,drawcall Down to 1419

Baking is a scheme that trades space for time
If the terrain is large , Baking occlusion culling data takes a long time , And the baking data will be relatively large
This may increase the memory footprint of the game


边栏推荐
- Guanghetong officially released the sc126 series of intelligent modules to promote more intelligent connection
- PHP正则用例
- Guanghetong "carbon" seeking green sharing 5g/lte module solution for two rounds of travel
- 未來已來,5G-Advanced時代開啟
- 详解 | 晶振的构造及工作原理
- 图像检测相关模型数据格式
- AI helps release legal potential energy! Release of iterms contract intelligent review system
- 未来已来,5G-Advanced时代开启
- Data type conversion and conditional control statements
- Esp32 porting lvgl
猜你喜欢

Esp32 development -lvgl uses internal and external fonts

JVM(1):介绍、结构、运行和生命周期

Guanghetong LTE Cat4 module l716 is upgraded to provide affordable and universal wireless applications for the IOT industry

详解 | 晶振的构造及工作原理

Sslstrip Ultimate - location hijacking
![[激光器原理与应用-2]:国内激光器重点品牌](/img/55/a87169bb75429f323159e3b8627cc6.jpg)
[激光器原理与应用-2]:国内激光器重点品牌

Fundamentals of embedded audio processing

It's 2022. When will the "module freedom" be realized?

JVM(4):类的主动使用与被动使用、运行时数据区域内部结构、JVM线程说明、PC寄存器

零时科技 | Discover 闪电贷攻击事件分析
随机推荐
Feature selection algorithm based on bare bones particleswarm optimization
Guanghetong officially released the sc126 series of intelligent modules to promote more intelligent connection
Market prospect analysis and Research Report of seed laser in 2022
Rational use of thread pool and thread variables
2021 5g aiot annual innovation achievements! release!
Guanghetong officially released the annual theme of 2022 5g Huanxin: Five Forces co drive · Jizhi future
零时科技 | Discover 闪电贷攻击事件分析
JVM(1):介绍、结构、运行和生命周期
ESP series module burning firmware
MySQL stored procedure
SQL optimization
Vulkan official example interpretation raytracing
SQL injection correlation analysis
【服务器数据恢复】同友存储raid5崩溃的数据恢复案例
Embedded basic interface-i2s
[laser principle and application-2]: key domestic laser brands
未來已來,5G-Advanced時代開啟
2022-06-10:薯队长从北向南穿过一片红薯地(南北长M,东西宽N),红薯地被划分为1x1的方格, 他可以从北边的任何一个格子出发,到达南边的任何一个格子, 但每一步只能走到东南、正南、西南方向的
Eth Transfer
Vulkan-官方示例解读-Shadows(光栅化)