SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / Drawing a fresnel falloff / ramp?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 10-04-2008, 01:35 PM   #1
JNN
Registered User
 
Join Date: Apr 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Drawing a fresnel falloff / ramp?

If anyone has used 3ds Max, you know that a fresnel falloff can be drawn by playing with bezier points on an actual 0-1 curve.

In maya I have been piping a spot info node (facing ratio) into a ramp...and the ramp then dictates the fresnel falloff. My question is - is there a way in maya to make this curve with beziers rather than with a ramp more like a falloff in max? I like to make my own fresnel falloffs and it makes more sense to me to be able to actually see the curve in profile and weight it with beziers rather than using a ramp...

-John
JNN is offline   Reply With Quote
Old 14-04-2008, 02:09 AM   #2
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default

why dont you use the fresnel shader?

dumb question i know..
__________________
everything starts and ends in the right place at the right time.
Falott is offline   Reply With Quote
Old 16-04-2008, 01:04 AM   #3
JNN
Registered User
 
Join Date: Apr 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Because when art directing the fresnel on, say, car paint - one needs to be able to have complete control over the incidence angle falloff. Although the default fresnel is a "mathematical" fresnel, our research shows that many car paints have a curve that is MUCH steeper and more weighted. By drawing a curve in profile it is much easier to get that photoreal look and tweak it to match reference.

I found a script that will tie the frensel to points in the graph editor to draw it there...but unfortunately it isn't supported by our renderer of choice

-John
JNN is offline   Reply With Quote
Old 16-04-2008, 04:55 AM   #4
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default

I understand. this makes sense ofc.

I thought about a workaround. if it is only for visualization purpose to get a feeling for the curve you could try this ->


open Hypergraph - crate a hightField from the maya general utilities. take a simple ramp texture make it black and white and map the texture into the heightField´s Displacement channel. increase the heightField´s Resolution untill you get a smooth curve. I also set the ramp Interpolation to smooth, but you can play with the settings. you should pretty fast end up with something like this. see pics.

now you can tweak the ramp till your heart´s content. the hightField in viewport shows a direct representation of your b/w rampTexture. it´s no bezier curve I know, but it helps to get a better feeling of the ramp texture.
Attached Thumbnails
Click image for larger version

Name:	heightfield.jpg
Views:	715
Size:	212.0 KB
ID:	38786  
__________________
everything starts and ends in the right place at the right time.
Falott is offline   Reply With Quote
Old 16-04-2008, 06:08 AM   #5
JNN
Registered User
 
Join Date: Apr 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Great idea! Now I can "see" my curve! Thanks for your input!
JNN is offline   Reply With Quote
Old 16-04-2008, 06:10 AM   #6
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default

you´re welcome!
__________________
everything starts and ends in the right place at the right time.
Falott 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.