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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

[BUG]Wrong Directional Light specular direction in Directional lightmap mode

Discussion in 'Unity 5 Pre-order Beta' started by Reanimate_L, Nov 12, 2014.

  1. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,782
    Hi UT Team,

    Just found out in beta12 that the Specular direction from directional light in the Directional ligthmap mode is incorrect. It using the light position not the rotation/direction of the directional light.

    And sorry if this is already a know issues, guess i missed the post.



     
  2. robert

    robert

    Unity Technologies

    Joined:
    Dec 21, 2008
    Posts:
    265
    Hey, the directional lightmaps are using the directional light direction, as they should.

    I'm thinking there might be another issue, which in your scene makes it look wrong.

    1. Are you sure the normalmap is imported correctly as a normalmap and not as a plain texture?
    2. What happens if you move the light without rotating it? Does the outcome change?
     
  3. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,782
    1. Yep
    2. It even give me a weirder issues.
    This is how it should

    And this is after baked


    Directional light are marked as baked light btw
    and i remember directional lightmap are correct before
     
  4. robert

    robert

    Unity Technologies

    Joined:
    Dec 21, 2008
    Posts:
    265
    Strange. Could you send me that scene, please? (e.g. attach to a bug report and post case nr here?)
     
  5. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,782
    on it, oh btw the bug only occured at "OnDemand" Mode it seems
     
  6. robert

    robert

    Unity Technologies

    Joined:
    Dec 21, 2008
    Posts:
    265
    Ah! Ok. In that case it should be good in beta 13, which should drop any day.

    No need to send me the scene then. Just please let me know if it's still not working correctly in beta 13.
     
  7. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,782
    Oh great, alright then. i was still creating the the bug report actually :p