First up on the chopping block is satin.
Googled examples
Satin is almost metallic in appearance but not in a way that reflects the environment in detail, it reflects blurred light sources instead and it's seemingly view dependent. I want red satin, so my first task is to make a highly reflective red shader that reflects highlights only.
I get my mia_material, give it a dark red diffuse color. Crank up the reflectivity, but I'll also have to crank up the BRDF values because these cap off the minimum and maximum reflectivity, slide the values up so the material will be highly reflective no matter what the viewing angle. Also, under the reflectivity section, check on “Highlights only” because I don't want the entire environment to be reflected only the bright areas.
Now, for this to look like a red metallic surface, there needs to be red in its reflection color, but because of the nature of satin, the brightness of that color needs to change across the surface depending how its facing the viewer. So now we need two more nodes. A ramp texture to provide those colors and the samplerInfo node to control the conditions under which the colors change.
Shift+MMB drag the samplerInfo node onto the ramp, and in the Connection Editor connect the facingRatio of the samplerInfo into the U and V coord of the ramp
That's done, then I MMB dragged and dropped the ramp onto the reflection color of the mia_material. Now this surface has a reflection color of blue for the points facing the camera, and as it bends away from the camera the reflection color fades to green and finally red.
Now to tweak that ramp. The more black a color has in it, the less reflective it'll make the surface appear.
Unlike the two darker reds in the ramp, the brightest red isn't at full saturation, I find that overkills the highlights, though full saturation might look gravy-cakes to someone else. With its new red ramp, it now looks like this
Almost done, at this point, the highlights are too sharp, to give them the smooth satin look, I'm going to blur the reflections to about 0.4 and …done!
Actually you can take it a step further and do this to the color channel as well, this image is from another test. Personally, I think it looks better without the ramp in the diffuse.
Note: I am using a linear workflow here and for the sake of avoiding clutter and confusion of gamma nodes, I used a default mia_material_x.
The same method can be used to simulate a velvet shader and various other effects, like toon shading, electron microscope images etc. You just have to get a bit creative with where you plug the ramp!
Googled velvet examples
what settings are you using on the 2nd fractal node? (for the bump slot)
ReplyDeletealso - since lighting seems to have a big impact on the appearance of these materials - are you lighting with IBL or a area light or what?
ReplyDeleteI'm adding a screen grab of the fractal settings to post. And as far as lighting goes, there is a photographic exposure lens shader on the camera and there are two area lights with quadratic falloff and set to use the MR light shape.
ReplyDeleteits just looks amazing! i will test the sampler info node!
ReplyDeletecan you post your satin shader?
ReplyDeletecan't seem to match your scene
=(
Hey n8skow, what part is giving you trouble?
ReplyDeletehi, i am trying to reproduce your material, but it seems that in maya 2010 the samplerinfo node just doesn't do anything when i plug it into ramp texture, did you come across this problem ?
ReplyDeleteI don't see any of my ramp colors in the reflection. Also, where do you control reflection blurring?
ReplyDeleteAlexei, I'm in the dark on that one because I'm using 2009 and I never even touched 2010.
ReplyDeleteN8skow, if the ramp is plugged into the reflection "color" slot then I can't see why it wouldn't show, so double check and make sure you didn't plug it into the "reflectivity" slot instead. Sometimes it's the little things that drive ya mad. And blurring is controlled by the "glossiness" attribute.
I'm suspecting an issue with my lighting and/or gamma - blowing the color saturation out...
ReplyDeleteIs it possible to contact you by email and share my pics/scene?
gen,
ReplyDeletegreat tut, i have recreated and it works perfectly, can i post on mymentalray materials section credits due ofcourse
cheers
matthew999
N8skow Sure, the address is at the top of the page.
ReplyDeleteMatt Yeah, you can post it up if you like, just send me a link so I can satisfy my curiosity on how your shader turned out :)
thanks gen,
ReplyDeleteyour materials where created in maya2009sp1a and can be found here
http://www.mymentalray.com/materials.html
love the blog, you are added to my list of favourite rss feeds
cheers
matt
Nice, might try and convert this to vray. Thanks Gen
ReplyDeleteMatt, those look real nice!
ReplyDeleteKiernan, thank you, happy shading and stuff :D
omg this is so amazing, thank u so much, im not even using the shader, just the technique opened my eyes.
ReplyDeleteU ROCK.
Thanks for your enthusiasm! lol :D
ReplyDeleteHow would you go about creating a material for a semi transparent curtain?
ReplyDeleteThat brings to mind "sheer curtains", if that's the case then I think a slightly transparent, thin walled (instead of solid) mia_mat with a bit of translucency should be a good start.
ReplyDeleteI have tried so many different variables trying to make a realistic curtain for the past 2 weeks. It always looks so wrong. I have seen so many renders that have absolute perfect looking curtains and then when I try replicating them, it turns out horrible. Yes, i only use the mia_mat. Kept playing around with the transparent and transl. attributes, but to no avail.
ReplyDeleteYou can drop me an email and let me see what you're talking about.
ReplyDeleteHi Gen, Stumbled upon this as I was trying to develop a shader for a Disco-era silk shirt. I love the affect overall but I'm seeing some "blowing out" like radioactive sunflares on my model based on what I can only assume is my sample info lighter ramp color. Any thoughts on that, or other details I should provide?
ReplyDeleteCan you send me a link to an image? What's your lighting setup like?
ReplyDeleteThank you very much for this lovely tutorial my friend! This seriously helped me a lot! Thank you once again and keep up the good work!
ReplyDeleteGeorge
Hi Gen im trying to create a realistic velvet look and i'm using mental ray. I seem to be having trouble recreating it and I'm not getting that furriness to it. I'm not sure if its to do with the light setup or if its the shader. If you could help that would be awesome.
ReplyDeleteThanks Jess :)
Hey Jess,
ReplyDeleteYou could send me an example scene so I could check it out. The email address is on the about/contact page.
Hi! How do you get the fractale2 to show up in the bump slot for the velvet material? Mine is greyed out. I could follow just about every step in the tutorial, but couldn't figure out how to get the bump to work. :(
ReplyDelete~ KL
Check if the attribute is locked. That's the only thing that I can think of off the top of at the moment.
ReplyDeleteThanks and I have a neat present: How Many Houses Has Hometown Renovated contractor for home renovation near me
ReplyDelete