Time for action – occluding tanks
We will add occlusion culling to the Tank Battle game, because it is the only one with anything large enough to block objects from view:
- So, open up the Tank Battle game now. If you completed the challenges and added the extra debris and obstacles, this section will be particularly effective for you.
- Open the Occlusion window by going to Unity's toolbar and navigate to Window | Occlusion Culling. This window is your primary point of access for modifying the various settings associated with occlusion in your game.
- Switch to the Bake page and we can take a look at the options associated with occlusion culling.
- Technique: This setting will determine what method to use when setting up occlusion culling.
PVS Only: This setting will only calculate the static objects of your scene to have occlusion culling applied. This option is the least intensive for the processor but is only good if there are very few moving objects in the scene.
PVS and dynamic objects...
- Technique: This setting will determine what method to use when setting up occlusion culling.