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

Reflection probe override for material preview.

Discussion in 'Unity 5 Pre-order Beta' started by Marc-Saubion, Nov 28, 2014.

  1. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    643
    Hi.

    I'm currently working on a night scene so my skybox is pitch black. The problem is the materials preview is using it for reflection and the result isn't good since it isn't representative of any practical use.

    Here is an obvious example of chrome in the scene and in preview.

    unity 5 mat.jpg

    Is it possible to override the skybox and use a reflection probe of my choice in the inspector?

    If not, this is a feature we'll need in the final release.
     
  2. p87

    p87

    Joined:
    Jun 6, 2013
    Posts:
    318
    Metallic surfaces are supposed to have dark albedo. If you're using specular workflow look up a physically correct value for chrome. I think you could probably use black albedo for chrome.

    Although I'm not sure that will solve your issue, the specular shader can look very weird if the values are wrong.
     
    Last edited: Nov 28, 2014
  3. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    643
    It won't because it has nothing to do with material values. Materials look all right in the scene because they have reflection probes to use. This is the same material on both the sphere and the preview.

    In the preview they use the skybox and since mine is dark, there is nothing to reflect: that's why it won't look the way it should.

    That's why I request a way to use a proper environment.
     
  4. p87

    p87

    Joined:
    Jun 6, 2013
    Posts:
    318
    yes, it seems the material inspector could use some additional options.

    perhaps as a workaround, try something brighter than pure black? Pure black would be pretty rare in nature, unless you are like 200 feet down in a cave or something.

     
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,658
    Please submit a bug report for this, I think this is a valid request.
     
    Marc-Saubion likes this.
  6. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    643
    It's done ;): http://fogbugz.unity3d.com/default.asp?651984_klc0vlkef4arbjpj

    It wouldn't be enough because what make the difference between shiny metals is almost all in the reflections, so you'd always need a decent neutral scene to set up and recognise materials like coper alloys.