Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

[Official] Specular vs Metallic workflow

Discussion in 'Unity 5 Pre-order Beta' started by bibbinator, Oct 17, 2014.

?

Do you prefer a Specular or Metallic workflow?

  1. I have no idea what either of these mean

    116 vote(s)
    20.5%
  2. Either one is fine

    75 vote(s)
    13.3%
  3. Specular

    108 vote(s)
    19.1%
  4. Metallic

    266 vote(s)
    47.1%
  1. p87

    p87

    Joined:
    Jun 6, 2013
    Posts:
    318
    it says right in the release notes, there were changes to the standard shader. So if you authored textures before, they are going to look different now.

    at this point it looks very close to Marmoset Toolbag 2. Which IMO is a good thing.

    I have not tried the Metal/Rough workflow yet, so I cant speak for how that one looks. But spec/gloss still works fine I think they just changed it.

    it may be an issue with substances? did you try baking them? substances have been a constant source of pain during the unity 5 beta, i would just bake them out for now..
     
    Last edited: Nov 15, 2014
  2. OneShotGG

    OneShotGG

    Joined:
    Nov 16, 2012
    Posts:
    225
    Can someone clarify this for me? I use SD4 and substance painter so I am a bit confused.

    Metallic goes into the R channel
    roughness goes into the alpha
    roughness has to be inverted from what it is in SD4 as well?

    Also, please get rid of the term smoothness, nobody uses that word. Its either roughness or glossiness. There is no reason to use the word smoothness.

    Honestly I would prefer to not have to pack roughness and metallic together...
     
  3. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    The tooltip on the Metallic input says: Metallic (R) and Smoothness (A), while the tooltip of the Specular input in spec/gloss shader says: Specular (RGB) and Smoothness (A), which means either that:
    1. Metallic workflow uses glossiness instead of roughness, which is confusing
    2. Metallic workflow has an error in the tooltip, which is confusing

    Honestly I would prefer Unity to not support metallic workflow (as it's the limiting workflow of the two), so they could focus on keeping the spec/gloss shader as close as possible to Marmoset Toolbag. I've fiddled a bit with both Quixel Suite and Substance Painter, and I don't see any point in the metallic workflow at all. Both these tools allow you to modify materials 4 maps at a time, and I don't see how it's easier to set your metallic property to white and base-color to yellow for gold, than it is to set diffuse to black and specular to yellow. You have the same number of 4 maps that you need to set for both metal/rough and spec/gloss. And unless you're a total noob that heard the word PBR an hour ago and have no basic understanding about the values that go into each maps, metallness workflow is not in any way easier to use. It's also as easy to screw up the values in metallness workflow as it is in spec/gloss.
     
  4. PhobicGunner

    PhobicGunner

    Joined:
    Jun 28, 2011
    Posts:
    1,813
    If they've done their metallic shader the way I would expect (just transforms inputs into specular color and uses spec color internally) then they don't need to drop metallic to "focus on specular" at all (they just work on specular, and the metallic bit doesn't need to change at all).
     
  5. Waz

    Waz

    Joined:
    May 1, 2010
    Posts:
    287
    A channel combiner/splitter/packer would be a useful feature/tool (anything on the Asset Store?).

    As would picking layers/groups from Photoshop files...

    And making FilterForge presets directly in the Editor....

    and.... I'll shut up now.
     
    foq1978 and Devil_Inside like this.
  6. Cynicat

    Cynicat

    Joined:
    Jun 12, 2013
    Posts:
    290
    I really hope they add real roughness not just smoothness. i hate gloss. i'm a CGI guy so roughness is where all the numbers in my head are. also i would like to see more control over the textures once added. like a levels control for roughness. most programs use roughness differently. also the metallic version needs a specular offset. once thats added you will be able to get the same range of values that spec can. currently it doesn't support wet surfaces which sucks. also can we get distance based gloss/roughness at some point. rather than the basic reflection blur. it should be sharper at contact points as roughness is a cone.

    bitching aside. great work guys! also i'm looking forward to the reflection cards that my friend found in the docs. =3
    absolutely loving what i've used of unity 5(been using a friends computer to play with things).
     
  7. OneShotGG

    OneShotGG

    Joined:
    Nov 16, 2012
    Posts:
    225
    Ok so here is a problem that is showing up. I am having to adjust my roughness in photoshop just for unity which is unacceptable. Also my Toolbag shots look nothing like my unity shots (aren't they supposed to be very close?)

    First here is the roughness map in Toolbag 2

    Now here is the same roughness in Unity (specularity is messed up)



    Here is the roughness map after it has been adjusted in photoshop (character look less greasy).


    PBR is supposed to be more "scientific". I should not have to adjust roughness maps to make the specular look right in unity.

    What gives?
     
  8. PhobicGunner

    PhobicGunner

    Joined:
    Jun 28, 2011
    Posts:
    1,813
    Something about roughness in b13 is screwed up, it looks totally wrong. I'm seeing it on my end as well - I've got the sci-fi helmet from the Quixel site. I can plug into Lux and Skyshop both and it looks perfect in either one, but when I import it into b13 it looks way too shiny.
     
    Last edited: Nov 21, 2014
  9. Andy-Touch

    Andy-Touch

    A Moon Shaped Bool Unity Legend

    Joined:
    May 5, 2014
    Posts:
    1,485
    If you all file bug reports, with examples, it would really help our developers to tweak it and make it better! :)
     
  10. PhobicGunner

    PhobicGunner

    Joined:
    Jun 28, 2011
    Posts:
    1,813
    Bug filed. Case #649997

    The example is a Test scene which has the sci fi helmet example from the Quixel website. As mentioned, it looks great when imported into a 4.x project with Lux or Skyshop, but looks totally wrong in Unity (I did try inverting roughness/smoothness by the way, it didn't help)
     
    Last edited: Nov 21, 2014
  11. wetcircuit

    wetcircuit

    Joined:
    Jul 17, 2012
    Posts:
    1,409
    Ahh, I am suppose to use a rough/gloss map in the alpha of my spec map? ok... Is this discussed somewhere? It wasn't mentioned in the video tutorial about the standard shader...

    (d'oh, nevermind. I wondered where that gloss slider went... *note to self: read the little hint windows)
     
  12. the_motionblur

    the_motionblur

    Joined:
    Mar 4, 2008
    Posts:
    1,774
    You know that everybody with the link is able to access your whole bug- and asset store log history, right?
     
    Last edited: Nov 21, 2014
  13. PhobicGunner

    PhobicGunner

    Joined:
    Jun 28, 2011
    Posts:
    1,813
    Huh, didn't realize it included asset store history too.
    Guess I'll just include the case number and leave out the link.
     
  14. p87

    p87

    Joined:
    Jun 6, 2013
    Posts:
    318
    in addition to that article, the artifacts that sometimes pop up in metallic workflow are mentioned here as well:
    http://www.marmoset.co/toolbag/learn/pbr-conversion

    both the author of quixel's smart material library, and Mr. Joe Earthquake Wilson at marmoset say these artifacts can be an issue with the metallic workflow...

     
    Last edited: Nov 22, 2014
    Devil_Inside likes this.
  15. goat

    goat

    Joined:
    Aug 24, 2009
    Posts:
    5,182
    Is this still going on? Make a layer over which either of specular / metallic you choose that lets you choose common real everyday things in your house and outside to create shaders with. It's not like the variable for a specular / metallic workflow can't be exposed underneath that layer. Unity is supposed to be about democratizing game / app development to those that don't have degrees in physics or mathematics. Sometimes the speed of light is so slow.
     
  16. niosop2

    niosop2

    Joined:
    Jul 23, 2009
    Posts:
    1,059
    Not really feasible in the core product. Not like you could have a "chair" preset. A chair is made up of multiple different materials. You could maybe have a wood preset, but it would have no way of matching up w/ your unwrap. Something like this is best left to your content creation tool, several of which have presets like you're asking for. Check out Substance Designer, Substance Painter, or Quixel's DDO. All of those have presets you can use to get realistic values onto a map that Unity will accept.
     
    Deleted User likes this.
  17. oofnsih

    oofnsih

    Joined:
    Mar 16, 2013
    Posts:
    1
    I'm pretty new to PBR. I personally like the metallic/roughness model better... it's just easier to set up. I wish it was actually Metal/Roughness instead of Metal/Smoothness though to match how it's done in Substance designer. Easy enough to just invert the alpha in Substance, but it's an extra step that makes it a tad more difficult to preview what I'm going to get while designing a material.
    It's great to have both types of workflows though... it seems as though spec/gloss might give better control and possibly a little better quality for certain types of things.
     
    Cynicat likes this.
  18. Cynicat

    Cynicat

    Joined:
    Jun 12, 2013
    Posts:
    290
    theres no quality difference between metallic/rough as long as it has a specular offset. only thing would be certain extreme unrealistic materials. metallic rough also follows the laws of physics more as all materials can be broken into conductive/non-conductive. the mix area between is for when you have things like dirt on metal. for more reflective non-metal surfaces you can use the specular offset.
     
  19. vanessamcford

    vanessamcford

    Joined:
    Dec 1, 2014
    Posts:
    1
  20. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    Moderator note: Unstickying this thread, because I think we arrived at a conclusion, i.e. both Metallic and Specular workflows are going to live together in Unity in perfect harmony :)
     
    shkar-noori likes this.
  21. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    Sorry for bringing this up again, but I've just read the changelog to Substance Designer 4.6, and there was a thing that caught my attention, and maybe Wes can comment on it in this thread.
    * [3D View] Add specular level channel for dielectrics in metal/rough PBR shader
    I haven't had the chance to check out what that means yet. Does this mean you'll be able to assign specular values other than 0.04 to dielectrics using a separate map? If that's the case, isn't it easier and more efficient to just use spec/gloss workflow?
     
  22. Deleted User

    Deleted User

    Guest

    Hi,

    Yes. This option allows you to control the F0 for dielectrics in for the metal/rough workflow. It is the same as the Specular channel that UE4 uses. It is mapped 0.0 - 1.0 where 0.0 = 0 and 1.0 = 0.08. This means that 0.5 (default) corresponds to 0.04 or 4% F0 for common dielectrics.

    We have opened specularLevel as a texture sampler on the PBR metal/rough shader. You can utilize a texture to control this channel.

    Cheers,

    wes
     
    Last edited by a moderator: Dec 10, 2014
    Deleted User and Devil_Inside like this.
  23. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    Thanks for a quick reply and it's good to hear you're giving more control over this values!
    Is 0.8 a typo? Or is there something I'm missing?
     
  24. Deleted User

    Deleted User

    Guest

    Oh, sorry. It was a typo. I fixed my post. It should be 0.08. Sorry about that.

    Cheers,

    Wes
     
    Devil_Inside likes this.
  25. Axiomatic

    Axiomatic

    Joined:
    Feb 7, 2014
    Posts:
    30
    In the latest release is the metalness shader behaving properly yet?
     
  26. Silly_Rollo

    Silly_Rollo

    Joined:
    Dec 21, 2012
    Posts:
    501
    I don't think the specular shader is. All my textures are super glittery in the b17 version of the specular setup shader but were fine in b15 and before.
     
  27. ReJ

    ReJ

    Unity Technologies

    Joined:
    Nov 1, 2008
    Posts:
    378
    At some point (b16) we changed our Specular to be physically correct - 3.14 times stronger than Diffuse. That is how it works in Marmoset Toolbag2 for instance.
     
  28. Axiomatic

    Axiomatic

    Joined:
    Feb 7, 2014
    Posts:
    30
    So I should be seeing roughly the same rendering in Marmoset Toolbag2 and in engine in Unity 5 for the metalness workflow?

    I'm currently using Quixel DDO, things look great in previewer and then look wrong in Unity. I'm starting to belive that Quixels Unity 5 Metalness preset is either generating the maps wrong or at least sending the wrong data to the different channels (rgba).
     
  29. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    1. If you're using DDO, why do you use the matalness workflow?
    2. IMHO Unity needs to stick as close as possible to Marmoset Toolbag2, as that's the more or less industry's standard. If every authoring tool has fine exporters to Marmoset, then we're all set, and it's that authoring tool's job to have the Marmoset calibration as close as possible to Marmoset.
     
    Axiomatic likes this.
  30. Axiomatic

    Axiomatic

    Joined:
    Feb 7, 2014
    Posts:
    30
    I'll try switching to specular and see how things go.
     
  31. Deleted User

    Deleted User

    Guest

    Hi,
    We have released "The Comprehensive PBR Guide," which covers the theory of PBR as well as practical guidelines for application. It is divided into 2 volumes.

    Volume One: The theory of physically-based shading and rendering

    Volume Two: Practical guidelines and workflows for creating PBR textures. *Coming Soon.

    Download the Free guide from our site
    http://www.allegorithmic.com/pbr-guide

    Discuss PBR theory and workflows in our official support forums.
    http://forum.allegorithmic.com/index.php/board,27.0.html

    Cheers,
    Wes

     
    Last edited by a moderator: Jan 8, 2015
    foq1978, r618, jashan and 3 others like this.
  32. artzfx

    artzfx

    Joined:
    Apr 28, 2008
    Posts:
    572
  33. Deleted User

    Deleted User

    Guest

    Oh, yes. I had a typo when copy/paste. Thanks for the heads up! I updated the post.

    Cheers,

    Wes
     
  34. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    @wesm It seems like the Unity shader is constantly changing. Are you goings going to be updating the Unity exporter in Substance Painter to match the up to date shader?
     
  35. Deleted User

    Deleted User

    Guest

    Hi,
    Yes, we are watching the changes closely. We will make sure that it matches for the public release of U5. We are working on keeping up with shader changes. I think we will not make any adjustments to SP's export until the U5 shaders are finalized.

    Cheers,

    Wes
     
  36. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    @wesm Thanks, that's good to hear!
     
  37. Thomas-Pasieka

    Thomas-Pasieka

    Joined:
    Sep 19, 2005
    Posts:
    2,174
    Nice PDF @wesm ! Very well written. Good to see somebody like Allegorithmic trying to make sense of all of it ;)
     
    Roni92 likes this.
  38. Axiomatic

    Axiomatic

    Joined:
    Feb 7, 2014
    Posts:
    30
    Thanks Wes. It's because of support like this, both your involvement on these forums as well as the resources you guys put out, that motivated me a few weeks ago to switch to Allegorithmic products entirely.

    I haven't looked back.

    Quixel's products, especially their megascans, were neat. But their notion of customer service is terrible. Diverting all customer support to a Polycount forum that they sometimes read and sometimes respond to based on the thread is complete nonsense in the 21st century.

    Any way, thanks again!




     
    p87 and Thomas-Pasieka like this.
  39. foq1978

    foq1978

    Joined:
    Aug 5, 2009
    Posts:
    41
    At this point, is there any chance of keeping both 'flavours' (Specular and metallic) on the final release? Or are you going to discard one of them anyway?

    Thanks
     
  40. jashan

    jashan

    Joined:
    Mar 9, 2007
    Posts:
    3,307
    As they have both now, why would they want to discard one of them?
     
  41. foq1978

    foq1978

    Joined:
    Aug 5, 2009
    Posts:
    41
    That's what I think, Jashan. But maybe they are decided to keep just a single one... To keep things as simple as possible.

    Edit: Unity will keep both, as stated before in this very thread. Sorry for asking.
     
    Last edited: Jan 11, 2015
  42. p87

    p87

    Joined:
    Jun 6, 2013
    Posts:
    318
    I thought I was the only one.. Agreed, quixel is a joke.

    Buy yes, it's great to see more pbr reference charts from unity and this paper from allegorithmic is interesting as well. Thanks!
     
  43. NirielNabokov

    NirielNabokov

    Joined:
    Dec 22, 2014
    Posts:
    9
    I clearly favor specular one.

    If we are going for a physical model, then let's do it properly and use actual physics. The refractive index is a complex number, each RGB channel has its own complex refractive index, so must be represented by two real numbers. That means RGB diffuse and RGB specular. Not RGB-something-unclear.

    There are useful materials that are between perfect dielectric and perfect conductor (gemstones, I need those), and the metallic workflow does manage them well; for these you need the specular model. Otherwise it's all guess-work again.
     
    Devil_Inside likes this.