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

Question Reflection Probes in URP projects reflection outside of its box?

Discussion in 'Universal Render Pipeline' started by arvzg, Sep 30, 2021.

  1. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    I'm having trouble understanding how reflection probes are supposed to work in URP.

    I set up a simple interior scene, and placed a reflection probe with a small Box size. What I expect is only objects inside the probe's bounding box should receive reflections - Isn't that right? That is the behaviour in HDRP, at least.

    Instead what's happening is the whole room receives the reflection and the size of the box doesn't seem to matter.

    See below - notice I am turning the probe on/off. With the current placement of the probe, I expect this probe to do absolutely nothing, as no part of its box intersects any mesh. and yet..

    2021-10-01_03-18-09.gif

    If I drag the probe outside of the room completely, then the room no longer receives reflections.

    This is using Unity 2021.2.0b13 with URP 12.
     
  2. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Do you have these ticked in the URP asset file?
    upload_2021-9-30_18-36-3.png
     
    arvzg likes this.
  3. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    I did not. Now I do, and it works! Thanks!

    I feel like there should be some kind of yellow warning box on the probe inspector if you got Box Projection turned on, but dont have it enabled in the URP Asset...
     
  4. transporter_gate_studios

    transporter_gate_studios

    Joined:
    Oct 17, 2016
    Posts:
    219
    My reflection probes always bake black, could this be why?
     
  5. transporter_gate_studios

    transporter_gate_studios

    Joined:
    Oct 17, 2016
    Posts:
    219
    And before you ask, yes I have the objects in the scene marked as static, it should at least get the skybox from the clear flags but no, its black. Yes, Ive set the clipping distance. i have 2 forward renderers if that makes a difference.
     
  6. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    @transporter_gate_studios I saw you reply to another one of my threads which was about HDRP - this thread is about URP, which render pipeline are you working on?
     
  7. transporter_gate_studios

    transporter_gate_studios

    Joined:
    Oct 17, 2016
    Posts:
    219