Search Unity

  1. Click here to receive a gift with your purchase of Unity Pro or Unity Enterprise.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Fur Shader

Discussion in 'Made With Unity' started by Jonathan Czeck, Apr 13, 2007.

  1. DaveA

    DaveA

    Joined:
    Apr 15, 2009
    Posts:
    280
    3.0 please!?
     
  2. kris

    kris

    Joined:
    May 21, 2010
    Posts:
    3
    right. bump.
     
  3. Statement

    Statement

    Joined:
    Oct 18, 2010
    Posts:
    18
    I edited the original unity package to work in unity 3. Grab it at the unify wiki. I couldn't upload it directly to the forums for some reason.
    http://www.unifycommunity.com/wiki/images/5/5f/Fur_110_unity3.zip

    So, try it out if you want. Let people know if there is any obvious errors.
     
  4. Pixero

    Pixero

    Joined:
    Dec 10, 2009
    Posts:
    130
    Thanks!
     
  5. rounity

    rounity

    Joined:
    Oct 6, 2010
    Posts:
    8
    I love this !!!!!!!! ... it looks great and i can even put it on a skinned mesh :). I don't know how hard this would be. I don't know a lot about shader creation. But can this shader be made to take a separate gray scale image to control the "depth" of the fur.... as in ... black.... no fur and white... max fur ... and still use the diffuse "color" image for style of fur ?.

    I can imagine that combination being used for all sorts of short hair.. facial and head etc.. as well as controlling the depth of fur on a model where it would make sense to shorten it or make it longer.

    OMG Cat people :O or even actual cats :O
     
    Last edited: Oct 21, 2010
  6. arbbot

    arbbot

    Joined:
    May 2, 2010
    Posts:
    74
    Thanks so much for this l.jarvensivu. I have been learning a little bit about Shader writing but is difficult to get the old Unity 2.6 Shaders to work in Unity3. You version works great. I was disappointed to see that Maya Fur didn't work on Unity but this Shader you updated is a life saver.

    Here's a screenshot of my Maya Teddy Bear (from the Maya tutorials) in Unity3.

    Unity3 Fur Shader on Maya TeddyBear

    I'm also curious about what are the requirements of the Shader for the textures being used. It seems that the black portions of the shader are not processed in the fur "depth" but the color ones are. Is that the case? Would it be possible to use a black texture to produce a black fur?

    Cheers!
    -arbbot
     

    Attached Files:

  7. colombo

    colombo

    Joined:
    Oct 5, 2010
    Posts:
    3
    I'm trying to use this shader in a character.
    When I put my texture in the fur material and aply in the character, it dosn't looks like that works.
    In unity 2.6, using the previous shaders, works perfectly.
    BUT, using your image in the exemple, works too.
    There is a preset for the image?
    here some image to explain better what I say

     
  8. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,356
    Your texture needs to have an alpha channel, or else it will look like a bunch of fading shells (which is how the fur is actually rendered). Uniform noise is probably a good start.
     
  9. colombo

    colombo

    Joined:
    Oct 5, 2010
    Posts:
    3
    I did my texture just as your texture are. In Fact I tried to put my texture inside your PSD file, and then use this PSD file.
    So this very strange thing happen:



    As you can see, in some parts the fur works, in others, don't.

    Looks like that i'm doing a very silly mistake, but I really don't know what's the problem. As I said, in unity 2.6 works fine.

    Thanks very much for the answer

    wating for the help.
     
  10. michael bricout

    michael bricout

    Joined:
    Aug 26, 2010
    Posts:
    59
  11. Sparty

    Sparty

    Joined:
    Aug 26, 2010
    Posts:
    82
    Boy this texture cool! I was wondering if it would possible for the fur object to receive shadows? It currently doesn't seem to.
    Thanks,
    Eric
     
  12. michael bricout

    michael bricout

    Joined:
    Aug 26, 2010
    Posts:
    59
    Can we imagine to see the fur object falling down with gravity like this one :



    Is there an update for UNITY 3 ?

    Thanks
     
  13. the_gnoblin

    the_gnoblin

    Joined:
    Jan 10, 2009
    Posts:
    722
  14. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,435
    I wonder if the fur shader might work with the new cloth physics? Probably not, but might be worth a try.
     
  15. niosop2

    niosop2

    Joined:
    Jul 23, 2009
    Posts:
    1,059
    There's no reason it wouldn't that I can think of.
     
  16. michael bricout

    michael bricout

    Joined:
    Aug 26, 2010
    Posts:
    59
    I have dowlaod the last version for fur shader but it doesn't work under UNTIY 3.

    Someone can run it with UNTIY 3 ?

    Thanks for your help !
     
  17. BNW[jasonvdm]

    BNW[jasonvdm]

    Joined:
    May 8, 2010
    Posts:
    168
    Yip Check out the grass we made with it in SpeedFIX
     
  18. markis

    markis

    Joined:
    Oct 11, 2010
    Posts:
    51
    is here bigfoot?
     
  19. the_gnoblin

    the_gnoblin

    Joined:
    Jan 10, 2009
    Posts:
    722
    > have dowlaod the last version for fur shader but it doesn't work under UNTIY 3.

    it works with unity3, there's a separate package for it on the wiki
     
  20. michael bricout

    michael bricout

    Joined:
    Aug 26, 2010
    Posts:
    59
    Hi gnoblin,

    Could you post the link to downlaod the FUR PACKAGE for UNITY 3 ?

    I'm lost ...

    Many thanks
     
  21. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,435
  22. michael bricout

    michael bricout

    Joined:
    Aug 26, 2010
    Posts:
    59
  23. Westmark

    Westmark

    Joined:
    Nov 1, 2009
    Posts:
    187
    Well it's really awesome but it could really use some shadows :)
     
  24. MikeG

    MikeG

    Joined:
    Dec 16, 2008
    Posts:
    8
    Here's a heads up for some Mac users and updated fur shader: On some machines, when you unzip the package, it unzips as a folder instead of a ".unitypackage" file. Download Stuffit Expander which will unzip it correctly. Then, import the package in Unity 3.
    Love this shader, btw.
     
  25. siliwangi

    siliwangi

    Joined:
    Sep 25, 2009
    Posts:
    298
    doesn't work anymore on 3.2, too many error, any fix?
     
  26. cemC

    cemC

    Joined:
    Dec 23, 2010
    Posts:
    214
    Good work
     
  27. kondrup

    kondrup

    Joined:
    Apr 23, 2009
    Posts:
    205
  28. kinl

    kinl

    Joined:
    Jun 1, 2008
    Posts:
    355
    Super impressed with this shader, so heres a picture of a Cat :) (I reduced it to 6 layers)

    I'm no shader coder and I'm sure this is really easy but is it possible for it to be unlit taking the shading from the baked texture?
     

    Attached Files:

  29. JetSoap

    JetSoap

    Joined:
    Dec 29, 2010
    Posts:
    107
    Holy Crap! I Should Totally Do That! Looking Nice!

    Thanks for the idea man!
     
  30. kinl

    kinl

    Joined:
    Jun 1, 2008
    Posts:
    355
    Cool and thanks...
     
  31. kinl

    kinl

    Joined:
    Jun 1, 2008
    Posts:
    355
    Does anyone have any guides for making this shader unlit?
     
  32. nikko

    nikko

    Joined:
    Mar 20, 2009
    Posts:
    436
    oups
     
  33. rmele09

    rmele09

    Joined:
    Nov 8, 2010
    Posts:
    607
    awesome!
     
  34. crisalid

    crisalid

    Joined:
    Apr 30, 2011
    Posts:
    1
    hello!
    please tell me - is there any way to produce fur on iphone and android with Unity3d?
    I tried the shader from this topic - it works great on desktop, but fails on iphone. Is there any workaround?
     
  35. kinl

    kinl

    Joined:
    Jun 1, 2008
    Posts:
    355
    No I don't think it will work on the iPhone.
     
  36. kinl

    kinl

    Joined:
    Jun 1, 2008
    Posts:
    355
    I'm having a problem with the Fur on a boned mesh... basically I get these black flickering spots on the Fur when it animates, without the Fur shader it renders as expected, I suspect its something to do with the lighting, originally I thought it may be only on highly deformed pollys, but this is not the case as the end of the tail also flickers and that is only deformed by one bone.

    Does anyone have any ideas?

    Actually what I think will fix my issue is having the Fur unlit like I mentioned previously but I don't know how to do this so any help would be great.

    thanks

    kinl
     

    Attached Files:

  37. Jessy

    Jessy

    Joined:
    Jun 7, 2007
    Posts:
    7,327
    Do you have "Skin Normals" checked?
     
  38. kinl

    kinl

    Joined:
    Jun 1, 2008
    Posts:
    355
    Interestingly my Skinned Mesh Renderer doesn't have that option? and I can't seem to find how to get it? I'm up to date with 3.30f4 too.
     
  39. Jessy

    Jessy

    Joined:
    Jun 7, 2007
    Posts:
    7,327
    Looks like they took it out, and the documentation hasn't been updated. The scripting reference has, though.
     
  40. kinl

    kinl

    Joined:
    Jun 1, 2008
    Posts:
    355
    Oh ok... Sounds like it could have helped, any ideas on making the shader unlit? or would that even help?
     
  41. kinl

    kinl

    Joined:
    Jun 1, 2008
    Posts:
    355
    Bumpy bump... Anyone got ideas for an unlit version? I'll buy you a beer*

    *must be local to me ;)
     
  42. sjoerdN

    sjoerdN

    Joined:
    Nov 12, 2010
    Posts:
    6
    Another bump, also interested in an unlit version, if that would make it work with lightmaps. Using it for short grass which looks alright but needs shadows. Don't know anything about shaders..
     
  43. artician

    artician

    Joined:
    Nov 27, 2009
    Posts:
    337
    This is great. I've been doing fur-shaders the hard way (by hand, if you can imagine that). I'd like to see if this would work for my project. If it does, may I use it?

    Thanks! Nice work!
     
  44. SpookyCat

    SpookyCat

    Joined:
    Jan 25, 2010
    Posts:
    3,247
    I am ust playing around with this fab shader and it works very nicely. but I dont seem to be getting any lighting or shadows on the obect. I have tried changing the light direction values but they seem to have no effect at all, have I done something wrong? Looking above others have lighting working :(
     
  45. Gundark

    Gundark

    Joined:
    Feb 27, 2011
    Posts:
    45
    Could someone add separate alpha cannel to this shader? The existing one use the main diffuse texture for alpha ( not very usefull ).
     
  46. xCyborg

    xCyborg

    Joined:
    Oct 4, 2010
    Posts:
    580
    Awesome!
     
  47. forest_linshs

    forest_linshs

    Joined:
    Jan 6, 2010
    Posts:
    39
    It's not work on iOS and Android. What a pity!
    Is there any awesome fur shader for iOS?
     
  48. shiyal73

    shiyal73

    Joined:
    Sep 14, 2010
    Posts:
    3
    i am using unity3.5 and it gives lots of error when importing this shader, any suggestion ?
     
  49. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,726
    Try reading the thread. The answer isn't in this thread but in the wiki.
     
  50. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    I test the FUR SHADER download from wiki,BUT ,the BLACK SPOT in the texture do not make fur, can fixed it? the black color maybe treat as alpha,so can not make fur.
     
unityunity