Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Reflection probes does not affect geometry when not looking at probe volume

Discussion in 'High Definition Render Pipeline' started by olavrv, Dec 20, 2019.

  1. olavrv

    olavrv

    Joined:
    May 26, 2015
    Posts:
    516
    This is a great optimization, but unfortunately when a probe is moved - the "look-at" target is where the probe used to be, and not where it is currently located. Seems like lookat target for probes is static on startup/awake.

    Example:

    You add a reflection probe to cover the interior of the car. Everything works fine, until the car starts moving and the camera looks in a different direction than where the car was originally positioned - then the probe no longer affects the geometry inside the car.

    Edit: A temp fix is to switch active scene back and forth, this updates the lookat target for probes.
     
    Last edited: Dec 20, 2019
  2. customphase

    customphase

    Joined:
    Aug 19, 2012
    Posts:
    247
    Yeah. For some reason the probes bounds are only set once when probe is registered and never updated after that. We could fix that in our project since we heavily modify HDRP source to begin with, but other than that youre only choice is to disable and then re-enable the probe every frame, this way it forces the bounds to update.
     
    olavrv likes this.