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. Dismiss Notice

Occlusion Culling (Doors)

Discussion in 'Editor & General Support' started by michaelalterio, Feb 18, 2014.

  1. michaelalterio

    michaelalterio

    Joined:
    Jul 4, 2013
    Posts:
    25
    I am using occlusion culling in my game and have defined occlusion areas for each of my rooms. I have doors in my rooms with an attached script that opens the door when the player gets near the door. If I tag the door as occluder and occludee static and open the door, the next room isn't visible until the player walks in the next room. However, if I don't tag the door as anything and the player looks at the door, the next room becomes visible in the occluder window.

    How can I make the room not visible when looking at the door, but when I open the door the next room is visible?
     
  2. Atakanos

    Atakanos

    Joined:
    Jul 3, 2019
    Posts:
    5
    You can deactive the door and bake for occlusion culling, than activate the door.