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

Occlusion Portal work differently now?

Discussion in 'General Graphics' started by benjamin_thegoodevil, Jun 25, 2021.

  1. benjamin_thegoodevil

    benjamin_thegoodevil

    Joined:
    Aug 5, 2020
    Posts:
    19
    Hello everybody,

    We have been using occlusion portals in our project for some time. Recently we noticed that the portals are no longer working properly or that something has changed.

    The documentation describes portals as doors that can be opened or closed. Accordingly, it can be assumed that objects behind a portal will no longer be rendered when it is closed. At least so far we thought that this is the functionality of the portals.

    In some tests I have now found that only objects that are located within the portal are affected. This means that an object behind a portal is still being rendered even though the portal is closed. Is this behaviour intentional?

    In addition, the camera only appears to collide with the volume of the portal if the camera is located within the volume. Is this behavior also wanted that way? The collision also looks kind of wrong.

    (Examples included as attachments)

    Please note that the cubes in my screenshots are correctly marked as "Occludee static" and that the Occlusion Portal is not marked as "Occluder static" or "Occludee static". This test was made in a new & clean project with the version 2020.3.12f1.

    Greetings,
    Ben

    occ_01.PNG occ_02.PNG occ_03.PNG occ_04.PNG