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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Baked lights doesn't affect on item in hand

Discussion in 'Editor & General Support' started by Traxyte, Aug 7, 2023.

  1. Traxyte

    Traxyte

    Joined:
    Oct 29, 2019
    Posts:
    4
    Hi. I got over 100 lanterns on my map, so I've decided to use baked light instead of realtime ones, but now I got different problem. Every item that player holds in his hand is super dark and doesn't react on environment lights (like these lanterns). I don't want any shadows on items, but just to see them brighter if there's baked light source nearby and correct color of that light. How to fix that? I was trying to use Light Probes... no idea how to do it and it wasn't working as well. I'm using Unity 2019.4.32f1

    Player with example item in his hand, away from the light source:



    Player near the light source:


    The item is just a basic Unity cube stretched. I know it is possible to fix, because old games such as Quake 2 had baked lights of environment, but holded weapons were reacting on these light sources... And no it's not black material or wrong UV, cube is fully white with default Standard (Specular setup) material :(
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,191
    Speaking of Quake, about a year ago I made a Quake-style prototype that has baked light which affects the player (clearly visible on the shotgun at about 0:30):


    If I remember correctly it's baked GI + ShadowMask that makes this work:
    upload_2023-8-7_17-39-19.png
     
  3. Traxyte

    Traxyte

    Joined:
    Oct 29, 2019
    Posts:
    4
    Still nothing :/, but now I've noticed that items arebrighter if players looking up, and completely dark if player is looking at the ground. And no matter if you're close to the light source, or far away in a totally dark forest it works same. Light on your gun is exactly what I want to achieve. Maybe you got specific type of material on it?