Search Unity

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:
    515
    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:
    246
    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.