SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Making an eyeball - fresnell shader?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 06-09-2007, 01:30 PM   #1
gubar
Registered User
 
Join Date: Mar 2007
Posts: 1,055
Thanks: 2
Thanked 59 Times in 56 Posts
Default Making an eyeball - fresnell shader?

Hi,

been working on an eyeball tutorial. Going well until I hit this section:


"The eye lens shader

This shader network is also a Phong E shader. The most important element to add to the basic shader is fresnel falloff for transparency and reflection attenuation. Fresnel effects describe the way that an object at a more glancing angle is more reflective than at a facing angle. In mathematics this is derived as the dot product of the normalized incident vector (the direction the camera is looking in) and the surface normal. In Maya this value can simply be obtained from the samplerInfo utility which has a parameter called "facing ratio". I pipe this facing ratio value into the U parameter of a U direction ramp. This enables me to remap the facing ratio values in a more user controllable way to define visually how the reflection and transparency fall off."

Anyone know how you actually do this? I have checked the help files and though it explains what fresnel is in principal, it doesn't explain how to actually apply it.

thanks,

gubar.
gubar is offline   Reply With Quote
Old 06-09-2007, 03:04 PM   #2
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

Yeah, creata smapler into node and a ramp, delete the place 2d node for the ramp, then mmb the facing ration to the ramp, then in the window conect the facing ration to the u value of the ramp. Then connect the ramp's out colour to the reflectivity of the material that your using (you can mmb the ramp in the hypoershade and drag it to the reflectivity value in the attribute editor (not the value but the actual text that says reflectivity)

Then use a white for high refelctivity and a black for none, adjut the ramp postionings and the values of the colours to suit the model.

To test it out you might want to really overcrank the values so you get a feel of what its doing

I use the sampler info node fore pretty much everything to do with specularity (which is faking the hotspots for reflections tbh) and reflectivness, theres a lot of it on my pirate model that I did, heres a link toi a larger picture, theres fresnell on the reflectivness/spec for the eyes, skin, hat.

http://features-temp.cgsociety.org/g...2785_large.jpg

linkey to it.
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 06-09-2007, 07:11 PM   #3
gubar
Registered User
 
Join Date: Mar 2007
Posts: 1,055
Thanks: 2
Thanked 59 Times in 56 Posts
Default

Thanks again,

that's the info I was looking for.

cheers,

gubar.
gubar is offline   Reply With Quote
Old 09-09-2007, 01:11 PM   #4
gubar
Registered User
 
Join Date: Mar 2007
Posts: 1,055
Thanks: 2
Thanked 59 Times in 56 Posts
Default

Hi,

still working on my eye. Here is my shading network for the outer eye sphere so far, with the fresnel effect in place on the eye. Any comment on the ramp in particular appreciated.

I am wondering though, if there is a way to fake an environment in maya to test render? Rather than modelling or downloading an environment, just so I can test my reflections.

cheers,

gubar.
Attached Thumbnails
Click image for larger version

Name:	test.jpg
Views:	240
Size:	104.8 KB
ID:	36152  
gubar is offline   Reply With Quote
Old 09-09-2007, 04:53 PM   #5
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

Cant really comment on the ramp, its just a ramp to me.

your best off playing with the settings yourself.

I would make a plane add a pic to it for some reflections
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 12-09-2007, 06:38 PM   #6
gubar
Registered User
 
Join Date: Mar 2007
Posts: 1,055
Thanks: 2
Thanked 59 Times in 56 Posts
Default

Ok, here's what I've got, though it's not having the desired effect. It seems to control the overall reflectivity, and to a small degree reflectivity away from the centre - but not in terms of pitching the reflectivity more towards the glancing, rather than facing, angle.

Have I set it up correctly?

thanks,

gubar.
Edit: Looking at my network I notice that, when I drag and drop the ramp to the reflectivity in the atribute editor, it attatches the alpha out to the reflectivity; if I open up the connections, I have the option of connecting the out colour to the reflected colour, but not the reflectivity itself.
Attached Thumbnails
Click image for larger version

Name:	info.jpg
Views:	216
Size:	67.2 KB
ID:	36222  

Last edited by gubar : 13-09-2007 at 06:10 AM.
gubar is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.