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

shadows don't connect to the base of the objects casting them?

Discussion in 'Editor & General Support' started by addicus, Dec 8, 2015.

  1. addicus

    addicus

    Joined:
    Apr 6, 2014
    Posts:
    25
    Hello!

    Hoping to get some help with this. Maybe this is something super simple but I cant seem to find it. Does anyone know why the shadows in these screenshots / my scene aren't matching up to the base of the object? They seem to be perpetually offset no matter how I adjust the light, shadow, and lightmapping settings.

    I'm just messing around in a simple scene with cubes and a plane to get the hang of lightmapping and ran across this issue. The first two images are unbaked and the last image is with soft shadows baked.

    Thanks!

    CubeEdge1.jpg CubeEdge2.jpg CubeEdge3.jpg
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Try tweaking the Bias value on the light.
    To high values give you seperation, but to low will produce massive shadow artefacts.
     
    guyal likes this.
  3. addicus

    addicus

    Joined:
    Apr 6, 2014
    Posts:
    25
    Thanks for the quick response! I can see the Bias value when the light is set to Realtime or Mixed but not in Baked. I tried setting it in Realtime and switching back to Baked but it doesn't seem to retain the Bias value. For what I'm planning to apply this testing to I'll have all of my lights set to Baked so this still remains a problem.

    In case its relevant I'm in Forward - Linear rendering.
     
  4. addicus

    addicus

    Joined:
    Apr 6, 2014
    Posts:
    25
    Oh and this is on 5.1.1p3 on Win 8.1
     
  5. addicus

    addicus

    Joined:
    Apr 6, 2014
    Posts:
    25
    Any thoughts since Bias value is not available w a light in baked mode?
     
  6. addicus

    addicus

    Joined:
    Apr 6, 2014
    Posts:
    25
    Is not having Bias value available if a light is set to baked true for everyone else? Or is this a bug on my end?
     
  7. SentreStage

    SentreStage

    Joined:
    Aug 8, 2011
    Posts:
    25
    Perhaps you could try increasing the texel count for your lightmaps, maybe this would solve your issue?
     
  8. Prodigga

    Prodigga

    Joined:
    Apr 13, 2011
    Posts:
    1,121
    Peter pan
     
  9. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,171
    I wouldn't worry about minor things like this, everything is just an approximation of reality, no one is going to notice an issue like this. They'll be more concerned with how fun your game is.