Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Culling group not using static occlusion

Discussion in 'Scripting' started by Dev_UHG, Mar 25, 2023.

  1. Dev_UHG

    Dev_UHG

    Joined:
    Jun 5, 2017
    Posts:
    21
    hi there,
    i made a small implementation deactivating yellow spheres when they are outside of 40m radius. This is using Culling group and they are static. So I hoped that occluded spheres are also deactived but this is not the case.
    According to documentation static occlusion is taken into account. Any Idee how to solve this?

    here is a video showing the problem: Sphere 2 need s to be deactived since it is occluded:
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,954
    I believe that the scene Camera will generally also affect occlusion, so you can't "watch" your occludees in the scene because then they'll always be seen by the scene Camera, at least last I checked.
     
  3. Dev_UHG

    Dev_UHG

    Joined:
    Jun 5, 2017
    Posts:
    21
    Thanks! I will check that