Page 1 of 6 123 ... LastLast
Results 1 to 20 of 109
  1. #1
    Member MikeFarny's Avatar
    Join Date
    Dec 2011
    Location
    I'm a Utahrd
    Posts
    154

    Anisotropic shading in Cycles

    I submitted a patch to the ML, but I wanted to give you all a heads-up that there was something available for the brave until Brecht can review the patch. Here is anisotropic shading in action for Cycles. More info at the blog.




  2. #2
    Member xabotage's Avatar
    Join Date
    Jul 2010
    Location
    USA
    Posts
    254
    For those confused (e.g. myself), read this: link

    Looks spectacular. Yet another facet of shading about which I was unaware. Was this implemented in BI? And, if so, how were the tangents calculated then? UV based tangents seem a little contrived. But then again, I'm no shader programmer.

    [Edit] Went home, thought about it, and realized UV based tangents is duh. It's just too bad about seams.
    Last edited by xabotage; 22-Mar-12 at 11:59.



  3. #3
    Member MikeFarny's Avatar
    Join Date
    Dec 2011
    Location
    I'm a Utahrd
    Posts
    154
    Originally Posted by xabotage View Post
    For those confused (e.g. myself), read this: link

    Looks spectacular. Yet another facet of shading about which I was unaware. Was this implemented in BI? And, if so, how were the tangents calculated then? UV based tangents seem a little contrived. But then again, I'm no shader programmer.
    I don't know if BI really implemented an anisotropic model, but by checking the "tangent shading" option it seems to do something similar. I have no idea how the tangents are calculated for that case.

    I can tell you that UV-based tangents are not only common, they are essentially the de-facto standard. Automatically generating tangents is problematic in that the artist cannot control them very easily, and they cannot hide the seams/sinks as intuitively. With UV-based tangents, it is abundantly clear what the tangent direction will be.



  4. #4
    I think combined with the interactive viewport for adjustment the UV method will work just great.
    Paul's Law: You can't fall off the floor.



  5. #5
    Member
    Join Date
    Aug 2010
    Location
    Adelaide, South Australia
    Posts
    2,678
    Awesome work Mike! Have you thought about starting up another Chipin, seeing as it has ended? Maybe just a paypal donation address?



  6. #6
    You did it! Amazing! The guy who not only talk the talk.



  7. #7
    Member MikeFarny's Avatar
    Join Date
    Dec 2011
    Location
    I'm a Utahrd
    Posts
    154
    Originally Posted by doublebishop View Post
    Awesome work Mike! Have you thought about starting up another Chipin, seeing as it has ended? Maybe just a paypal donation address?
    The existing one was open-ended, but the paypal donation button still works on the blog as far as I know. Honestly, I got more donations than I expected, so I'm not going to harass people for more money. I feel like I'm still catching up (morally speaking) in submitting patches to justify the donations I've already got.



  8. #8
    Member MikeFarny's Avatar
    Join Date
    Dec 2011
    Location
    I'm a Utahrd
    Posts
    154
    Originally Posted by storm_st View Post
    You did it! Amazing! The guy who not only talk the talk.
    Heh, it wasn't too bad. I just had to figure out how to generate another corner attribute on the mesh (the tangents), and then get the SVM nodes to actually trigger a read of them and stuff them into the shading data. The other tricky part was that I had to find all the tangents around a vertex that share UVs, and average them all for those corners, or else there was still a slight faceting to it.

    The first reply on the ML is funny...he went and used the smart UV project method for the UVs, and it created a bunch of discontinuous islands of UVs. That jacked his shading at the island borders of course. As I said in the post, it's UV layout based. Buyer beware.
    Last edited by MikeFarny; 22-Mar-12 at 02:20. Reason: grammar



  9. #9
    Member
    Join Date
    Aug 2010
    Location
    Adelaide, South Australia
    Posts
    2,678
    Any plans on what you will be working on next Mike?



  10. #10
    Mike, is it possible to specify which UV set to use? This would be handy because laying out UV's for tangent direction is not necessarily how you want to lay them out for textures. Also, as cekuhnen asked in the Cycles thread, is it possible to bend the tangent direction additionally on top of the UV's to get radial effects etc.?
    Paul's Law: You can't fall off the floor.



  11. #11
    i didnt even know that you can use textures to tell teh render the direction. amazing.

    how does a texture look for anisotropic shading?



  12. #12
    From the other thread: http://xsi.jankin.com/anisotropic_patterns/
    But I've also seen it done with black and white textures.
    Paul's Law: You can't fall off the floor.



  13. #13
    Member
    Join Date
    Mar 2012
    Location
    Italy
    Posts
    2,060
    Yeah, as far as I remember, in Maxwell Render you can use b/w textures for anisotropic shaders, for example with a black and white radial map you could achieve the "metal spinning" look.

    http://www.youtube.com/watch?v=ky3Ph07IjAU



  14. #14
    its important that the renderer supports black/white textures. its very easy to paint them.



  15. #15
    Member
    Join Date
    Aug 2008
    Posts
    2,367
    Thanks for the work on this Mike, after reading the mailing list I really like where your head is at in terms of how things should work on the artist's side.



  16. #16
    thanks for the hard work MikeFarny!

    Originally Posted by marcoG_ita View Post
    Yeah, as far as I remember, in Maxwell Render you can use b/w textures for anisotropic shaders, for example with a black and white radial map you could achieve the "metal spinning" look.

    http://www.youtube.com/watch?v=ky3Ph07IjAU
    that looks gorgeous, as far as i can tell this would not be possible (or rather hard to achieve) by just laying out the uv's? could the anisotropic bsdf be extended to input a texture into it for the shaded directions? then we could just make a custom brush and texture a model in texture paint mode with the shaded directions? that would be realy awesome!



  17. #17
    Thanks again for this wonderful contribution, Mike! I'm swamped with work these last days and couldn't follow the mailing list, and what a nice surprise I found when looking today! I hope I find time soon to try your patch.

    Thank you!
    Competition is great and fun for things like sports and games. For more serious matters cooperation might be a better approach.

    It is time - ecogood.org



  18. #18
    Member MikeFarny's Avatar
    Join Date
    Dec 2011
    Location
    I'm a Utahrd
    Posts
    154
    Originally Posted by gexwing View Post
    thanks for the hard work MikeFarny!



    that looks gorgeous, as far as i can tell this would not be possible (or rather hard to achieve) by just laying out the uv's? could the anisotropic bsdf be extended to input a texture into it for the shaded directions? then we could just make a custom brush and texture a model in texture paint mode with the shaded directions? that would be realy awesome!
    I think it's possible to allow shaded directions to be determined by a map, but currently it will deliberately ask for the tangents to be calculated on the mesh. I'll have to think about it, because that would certainly be pretty slick.



  19. #19
    Member MikeFarny's Avatar
    Join Date
    Dec 2011
    Location
    I'm a Utahrd
    Posts
    154
    Originally Posted by (jay) View Post
    Thanks for the work on this Mike, after reading the mailing list I really like where your head is at in terms of how things should work on the artist's side.
    Well, I would hope I have an eye for what the artist gets to deal with, because I am surrounded by them at Tippett Studio, and they're constantly reminding me of the implications on the workflow side of the tools I write.



  20. #20
    Member MikeFarny's Avatar
    Join Date
    Dec 2011
    Location
    I'm a Utahrd
    Posts
    154
    Originally Posted by Hoverkraft View Post
    Mike, is it possible to specify which UV set to use? This would be handy because laying out UV's for tangent direction is not necessarily how you want to lay them out for textures. Also, as cekuhnen asked in the Cycles thread, is it possible to bend the tangent direction additionally on top of the UV's to get radial effects etc.?
    Currently there's no control for setting which UV layer to use. That's a broader change where you would need to be able to select the UVs for all image maps as well, and I haven't the foggiest idea of how to make the UI do that for me. Maybe DingTo would know how to get that specified in a node?



Page 1 of 6 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •