Occlusion Culling Tutorial – Unity3D

Occlusion Culling Tutorial – Unity3D

You can use occlusion culling to hide unnecessary object for camera. You don’t need the object behind the camera. So, hide it!

!!(This property is free only for Unity3D 5.0 or newer versions.)!!

At first, create a terrain and a cube. Edit the static choices as seen on picture below.

Screen Shot 2015-04-09 at 00.47.49

After that, duplicate the cube and create a world with cubes like this.

Screen Shot 2015-04-09 at 00.41.54
Place the camera anywhere in this world for testing and add a mouse look control script to camera. Open Occlusion Culling window(Window>Occlusion Culling). Click Bake section and click Bake button. The world will be scanned automatically. You can see data size of scanned objects at below.

Screen Shot 2015-04-09 at 00.48.02


Click Visualization and press play.

Screen Shot 2015-04-09 at 00.46.51 Screen Shot 2015-04-09 at 00.47.00


As you see, your camera angle sees 6 cubes in scene window and camera preview shows these 6 cubes. Other cubes are not deleted, they are hidden and you can see them when you change camera direction.



©Coffee Break Codes – Occlusion Culling Tutorial – Unity3D

Leave a comment

Your e-mail address will not be published. Required fields are marked *

5 thoughts on “Occlusion Culling Tutorial – Unity3D

  • gamefly free trial

    Yesterday, while I was at work, my cousin stole my iPad and tested to see if it can survive a thirty foot
    drop, just so she can be a youtube sensation. My iPad is now broken and she has
    83 views. I know this is totally off topic but I had
    to share it with someone!

  • gamefly free trial

    I am not sure where you’re getting your info, but great topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for wonderful information I was looking for this
    info for my mission.

  • gamefly

    hello!,I love your writing so much! share we keep
    in touch extra approximately your post on AOL? I require an expert on this space to solve
    my problem. Maybe that is you! Looking forward to look you.

  • mojang minecraft download

    Thanks on your marvelous posting! I really enjoyed reading it, you’re a
    great author.I will ensure that I bookmark your blog and may come
    back later on. I want to encourage you to ultimately
    continue your great job, have a nice morning!