Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    28
    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:
    38,520
    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:
    28
    Thanks! I will check that