Hair Farm Forums
http://www.cyberradiance.com/hairfarm/forum/

Feather shading and the Hair Direction on Poly modifier
http://www.cyberradiance.com/hairfarm/forum/viewtopic.php?f=13&t=667
Page 1 of 1

Author:  cem [ Fri Jan 08, 2010 5:35 pm ]
Post subject:  Feather shading and the Hair Direction on Poly modifier

Perhaps the best way of modeling a feather would be to model it properly with actual strands. However, if you are going to have tens of thousands of them on a character, it might be a good idea to use a transparent texture on a flat plane to represent each feather instead of modeling them all with great detail. As Anish showed us in the forum, we can use this technique to cover a character with feathers using the new improved HairTo Instances modifier.

What I want to show you here is another new tool, which is very handy for feather shading, among other things. I'm talking about the new Hair Direction on Poly modifier. This modifier changes surface normals based on the chosen UVW channel, so that you can use hair materials on regular polygonal objects and get expected results. As a result the polygonal surface looks like it is made up of parallel hair strands. Turns out this is perfect for shading feathers!

Here is an example. I exaggerated the speculars a little bit so that you can clearly see the difference. These two materials are using the same parameters and the light is coming from the same direction. As you can see, one of them looks like a plane with a texture on it, while the other one properly captures anisotropic speculars on feathers.

Attachment:
feather.jpg


This is the actual object without any texture:

Attachment:
plane.jpg


The difference is much more apparent in the following video. This video shows the change in shading with changing light direction. The light is simply rotating around the feather.

Attachment:
feather.flv [ 1.3 MiB | Viewed 18404 times ]

Author:  Infinite [ Fri Jan 08, 2010 6:24 pm ]
Post subject:  Re: Feather shading and the Hair Direction on Poly modifier

Nice one Cem, this looks ace. Anishmations was doing something with feathers on a previous thread some where? Would be great to see the 2 techniques combined! :)

Author:  anishmations [ Sat Jan 09, 2010 6:45 am ]
Post subject:  Re: Feather shading and the Hair Direction on Poly modifier

Thats wonderful Cem. Great to see you are extending the feather creation part further!! I don think any hair plugin would do this or beat this ever now!!
Let me see if I can make something out of this now ..
Thanks again!

Author:  anishmations [ Sat Jan 09, 2010 7:33 am ]
Post subject:  Re: Feather shading and the Hair Direction on Poly modifier

Dear Cem,
Can u please post a screen shot of the simlpe hair material used for this feather ? I tried it, but am not quite getting it :(
Thanks!

Author:  cem [ Sat Jan 09, 2010 11:40 am ]
Post subject:  Re: Feather shading and the Hair Direction on Poly modifier

Here is the modifier stack I used:

Attachment:
modlist.gif


All modifiers except for "Hair Direction on Poly" and "Unwrap UVW" are just for modeling the plane, to give it the shape shown in my first post.

Hair Direction on Poly is using UVW channel 2 (channel 1 is reserved for the feather texture) and it sets hair directions based on the V direction of that UVW channel. Here are all the settings:

Attachment:
hdironpoly.gif


The trick here is in setting the V direction of UVW Channel 2 correctly. I used the Unwrap UVW modifier for this task. All it is doing is to align the V direction with the direction of the feather barb (branches).

Attachment:
uvwunwrap.gif


Another trick here is that the feather plane is made up of 3 separate parts, the rachis (the spine column of the feather) is a separate element. The only reason why I did this is to make sure that the V direction on the barb surface would not be smoothed out with the V direction on the rachis. This is not so crucial though. Also you might want to assign a separate material for the rachis, which I didn't do.

After you do all this, you can assign a hair material and use it just like the standard material of 3ds Max.

Author:  pluMmet [ Sat Jan 09, 2010 3:08 pm ]
Post subject:  Re: Feather shading and the Hair Direction on Poly modifier

Really fantastic :!:

Author:  anishmations [ Sat Jan 09, 2010 7:46 pm ]
Post subject:  Re: Feather shading and the Hair Direction on Poly modifier

Brilliant! thaanks!

Author:  pitiwazou [ Sun Jan 10, 2010 6:58 pm ]
Post subject:  Re: Feather shading and the Hair Direction on Poly modifier

Very good !!

Author:  Alexander_Tomchuk [ Fri Jan 15, 2010 3:15 pm ]
Post subject:  Re: Feather shading and the Hair Direction on Poly modifier

That's awesome, I would love to see the whole bird with this, should be nice :ok:

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/