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

Some questions about standard shader properties

Discussion in 'Shaders' started by Nanako, May 4, 2015.

  1. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    This is from the unreal wiki, so it may not apply here




    So what exactly is the metallic slider supposed to do in unity? As far as i can tell, all it does is turn the material black.



    I don' get that. Why is that useful? That looks like glossy rubber, not metal. Metals are supposed to be silvery/grey and reflective


    I also have this other source code for a shader, "Standard (specular setup)" I don't quite understand what it is, the specularity actually seems to work a lot better on the normal Standard shader (with metallic set at 0)

    But one thing i particularly dont understand is that the specular colour seems to be inverted




    I don't understand this at all.

    I think i need a reintroduction to specularity, and what exactly it is nowadays. Plus this metallic thing, and unity's implementation of PBR in general, since it seems to be different to unreal's https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/PhysicallyBased/index.html
     
  2. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,628
    I'm very new to this myself, but what it looks like to me is you have to bake lighting with a skybox in order to get metals to show properly ... whether using the standard shader or the standard specular shader.
     
  3. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    well that is helpful, my metallic dog now reflects the sky with amazing detail.

    Which i guess is neat, but i wasn't really looking for amazing reflections, i just wanted it to look metallic and shiny. does this stuff even work in realtime?
     
  4. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,628
    Beats me. I'm just a monkey pushing buttons.

    I think the idea is that metals will reflect the sky or whatever static objects are in reflection probes. But I haven't really gotten into that yet.
     
  5. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    Well he's only reflecting the skybox, and not the ground he's standing on. Which looks very annoying and strange:



    I don't actually want a metal dog, i just want to learn how this lighting system works. Would i have better luck in another subforum?
     
  6. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,628
    (shrug) I'd think this is the right forum. Maybe you could ping a @name and get a response from "one who knows." Even if it is just a redirect to a helpful webpage.
     
  7. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    oh i figured it out! i had to place a reflection probe and bake it. That seems to do the trick
     
    hopeful likes this.
  8. Denis-Valjean

    Denis-Valjean

    Joined:
    Mar 25, 2015
    Posts:
    39
    Same issue is happening to me. Set metallic to 1 turns everything black. Its not necessary to place a reflection probe as I saw in other videos. Just slide the metalic. If I create a brand new scene it works ok.
     
  9. Denis-Valjean

    Denis-Valjean

    Joined:
    Mar 25, 2015
    Posts:
    39
    Found the issue: for some reason my reflection source, under Lighting properties was setting to custom. Returned to skybox and now it looks metallic.