MAYA7.0制作人体皮肤材质的英文教程
...as for me, i've been wrestling with this since -95. like many others, i've been extremely frustrated by it, mainly cause until about -00 very few knew much about it, and no one could answer my questions. so -99 i found my own home-made method, a pragmatic approach that sidesteps simulation. (when we have the software and the power to do nice simulating, of course we should, but until then this kind of 'kludgy' approach might serve ok.)
my terminology is astronomy-based, because it's clearer and more concise:
dayside = where light hits
nightside = where light doesn't reach
terminator = the transitional zone between night and day
disclaimer: i mention maya a few times, because that's what i use, but very similar effects can be achieved in any other high-end 3d software.
pardon the crappy geometry, but i had to rapidly make big changes to the original face due to unforeseen copyright issues - sorry.
faking translucency
starting from the beginning - as we all know, if you use a plain lambert and put a skin-colored texture in the color channel, you end up with something like this: the "copper zombie". we see it in many beginner's work, and still today in game graphics, since they often use quite simple shading.
the skin is a horrible dead greenish-gray in the shadows, and a metallic orange in the highlights - a bit like a corpse touched up with copper-tinted makeup.
so we need to make the nightside warmer, and the dayside cooler. also, from observing real skin, we can see that the terminator needs to be even warmer than the nightside. (warmer in this case means more orange/red, and cooler means more blue.)
my first efforts used the ambient or incandescency channels to create some global warming - making the whole head redder. i sometimes even tried making the color channel and spec channels bluish. but this is of limited usefulness - when you get the terminator as warm as it must be, the nightside is too red, and the dayside too bright.
so leave the ambient like this, maximum saturation but a fairly low value. it's ok, better than the corpse, but still not very realistic.
here's where it gets fun. take a cartoon-shader - doesn't matter which one, as long as it can give you simple control over which color ends up where, and you can get rid of the sharp edges between the colors. (we're not going to use any outline function, just the flat-shading function... except not flat.)
the shader i use here takes its color info from a ramp (in maya, just switch the interpolation to 'linear' or'smooth' instead of 'none'). the original cartoon shader i use came from tom kluysken's 'maya queen' site, and has been attributed to duncan brinsmead and michelle borghi - it's still here (in tutorials).
here's the network in maya for the translucency-fake (cartoon-shader):
the ramp hooks into the incandescent channel of a transparent lambert. now layer that on top of your first skin-colored lambert.
(layering shaders in maya is very simple - one shader is just 'stacked' on top of another.)
now tweak the colors of the ramp, to be bluish on the dayside, reddish on the terminator, and reddish or black on the nightside.
in maya you can go below zero on the value. making the hue blue and the value any sort of minus, will 'suck' blue out of that part, and in effect create a very dark and strong orange - this is what i did here, in the terminator. the only problem is, when you need to go back to edit it later the color-editor will not display the correct hsv anymore, so you'll either have to remember, guess or write it down somewhere...
note - you can just as well put that cartoon-shader based 'translucency fake' in the incandescency channel of the base lambert shader - it doesn't have to be layered... i just do it to have a bit of 'modularity' - i can use the same layer in many other layered shaders, and when i tweak one of them they all get tweaked.
here's how to add another level of subtlety to the shader: do what i mentioned above, put the translucency fake not in a layer but in the base lambert itself. then copy that lambert and layer that on top - maya-note: move the translucency fake out of the incandescence to the ambient channel - this ensures none of the effect is seen in the transparent areas (but you'll have to increase the intensity of it). (sorry, i'm not sure if there's a way to achieve this in any other software.)
then tweak this second cartoon-shader-ramp so it seems right for a 'bonier' part of the head, like the skull/forehead (like decrease the width and redness of the terminator).
then simply make this second lambert transparent over the 'fleshier' bits, using a low-res and blurry grayscale texture map.
highlights
both shaders here are transparent phonge, but they could also be blinn, it doesn't matter that much. the important thing is to map whatever parameters the shader has for the highlight so that it changes with regards to the angle of the light that hits the surface. in maya you can use ramps to control this change. the basis for this shader was emmanuel campin's backlight shader (pixho.com)
lets look at the most important of the two, the glancing highlight. it must become brighter and bluer and wider as the light becomes more and more glancing, finally flaring out into a long thin line in opposing light. since i have another layer to handle the flatter angles, i make this glancing layer fade out to complete darkness before it hits 'noon'.
(in fact both layers are always slightly bluish - any specularity on skin must be somewhat blue to counteract the default tendency towards yellow. this can be applied to other organic materials as well, like for instance greenery - in this case the highlight would be red/magenta.)
any bumpmap should be placed first on these specular layers, and should always be of higher value than one you may put on the base-layer. this increases the illusion of translucency.
and that's it - a higher res (just tweaked with auto-levels in photoshop).
the lighting: 8 spotlights - 2 fairly tight clusters of 4 each - and a very weak ambient light below and to the back.
the ear could certainly do with a lot more incandescent red in some selected spots, especially in this particular lighting (faking translucency) - hard work but if the image or scene is important it might be worth going the extra mile to add it.
of course you could just use mentalray, finalrender, vray, prman or brazil, none of which i have...
以上就是maya7.0制作人体皮肤材质的英文教程,操作很简单的,大家学会了吗?希望这篇教程能对大家有所帮助!