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

Making dark rooms using HDRP

Discussion in 'High Definition Render Pipeline' started by Jegg1, Oct 15, 2020.

  1. Jegg1

    Jegg1

    Joined:
    Apr 15, 2019
    Posts:
    10
    Is there any way to make only one room dark? Environment is making this room bright but I want to make it completely dark without changing everything else.
     

    Attached Files:

    RogueCode likes this.
  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,116
  3. pierred_unity

    pierred_unity

    Unity Technologies

    Joined:
    May 25, 2018
    Posts:
    431
    Hey, the room is being lit by the sky, hence it is very bright.

    To darken it, you need to change the local light contribution by
    1. Baking the lighting, either with lightmaps and/or light probes. You need to mark the render mesher to contribute to GI, and then bake the light using the Windows > Lighting tool.
    2. Place one or more reflection probes to correctly reflect the interior of the dark room, rather than the sky. By default, HDRP always reflects the sky.


    Using a local volume, for instance with Indirect Lighting Controller component can help, however this will impact the indirect lighting in the entire world, from the camera perspective, and this might not be wanted obviously, as you don't want the exterior to become darker, but only the interior.
     
  4. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    By impacting the entire world you mean like looking into the room via a doorway from outside? Or that volumes are limited to simple geometry so they would invariably span some of the outside?
     
  5. RogueCode

    RogueCode

    Joined:
    Apr 3, 2013
    Posts:
    230
    Hey, I'm a little confused about how this will help. Let's say this is a small cave, nothing inside is reflective. How will adding reflection probes effect the walls? My assumption was that it wouldn't, and I tried it and can't see it making any difference (but maybe I did something wrong).
     
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,001
    If you have no reflection probe, the default reflection probe is used, which is usually a reflection probe of the sky.

    So the interior reflects the sky, which is much brighter than the interior would be, making its appearance brighter than it should be.

    Also make sure your meshes are marked as static.

    All surfaces and materials bounce light around. In games, for a variety of reasons, we have split the way the light bounces around in diffuse and reflective ways, but all materials have both of those properties.
     
    RogueCode likes this.