Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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:
    234
    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:
    162
    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.