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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Reflection probes broken when using custom cubemaps?

Discussion in 'High Definition Render Pipeline' started by rzubek, Sep 5, 2022.

  1. rzubek

    rzubek

    Joined:
    Aug 21, 2014
    Posts:
    72
    I'm trying to add a reflection probe that uses a custom cubemap. Using a new HDRP project and Unity 2022.1.15, when I add a custom reflection probe to the scene, all mirrored surfaces turn black:

    upload_2022-9-5_15-42-52.png

    You can see the cubemap texture is set, but it's not being used.

    In comparison, if I switch to realtime, reflections show up:

    upload_2022-9-5_15-43-29.png


    This seems like a regression but I'm not sure when it would've been introduced.

    Does anyone have custom reflection probes that work?
     
  2. SebLazyWizard

    SebLazyWizard

    Joined:
    Jun 15, 2018
    Posts:
    224
    Is your cubemap in HDR format? How is it being created?
    It might be just too dark to begin with.
    Keep in mind that the usual sun intensity is about 120k+ lux, so you need to take that into account when generating your HDR cubemap, or simply lower the directional light intensity (a lot) until you see the reflections appear again.
     
  3. rzubek

    rzubek

    Joined:
    Aug 21, 2014
    Posts:
    72
    Thanks for following up! I tried two things:
    1. Legacy cubemap (Create > Legacy > Cubemap) using a sample texture, and
    2. Variety of EXR cubemaps from Unity's own Unity HDRI Pack

    All of them create the same pitch black reflection probe.

    I also tried changing the .exr file's f-stops to bump exposure up, but that didn't do anything. Dropping directional light intensity didn't help either.

    I'm not sure what else I could try? The reflection probe texture selector only accepts cubemap textures, and not skybox materials, so I don't think I have a lot of control over brightness.
     
  4. Win3xploder

    Win3xploder

    Joined:
    Dec 5, 2014
    Posts:
    159
    I think the reflection probe also has an intensity multiplier, maybe try that first as well.
     
  5. rzubek

    rzubek

    Joined:
    Aug 21, 2014
    Posts:
    72
    Oh wow, yes, that was exactly the problem!

    Here's the magical setting for anyone who's searching for this solution in the future:

    upload_2022-9-6_11-14-36.png

    upload_2022-9-6_11-14-50.png


    Thank you both @SebLazyWizard and @Win3xploder!
     
    Berandas7 likes this.