SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / Rendering - Creating a camera facing shader
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 19-10-2003, 10:22 AM   #1
sporktine
Subscriber
 
sporktine's Avatar
 
Join Date: May 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rendering - Creating a camera facing shader

I'm trying to create a nice planet with good atmosphere. I've made three concentric spheres, the smallest a planet skin, the next two slightly bigger than the last and i intend them to have camera facing shaders, so that the atmosphere is thickest around teh edges. I had managed this once in 4.0 but forgot how I did it. I'm in 5 now and a bit fuzzy on the use of render nodes for this. Any ideas?

Thanks..

sporktine is offline   Reply With Quote
Old 19-10-2003, 10:29 AM   #2
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

You could use the Sampler Info node for this. Use it's facing ratio to control a Ramp's V coordinate and then the Ramp's color to control the shader's Transparency. Can't check right now but you may need to add a Set Range node between the Sampler Info and the Ramp to scale the facing ratio to 0 - 1 (it's -1 to 1 by default if i remember correct).
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 19-10-2003, 10:30 AM   #3
sporktine
Subscriber
 
sporktine's Avatar
 
Join Date: May 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default durr

found it...

Map Transparency to a Sampler Info node, using Facing Ration connected to Transparency-RGB.

thx anyway

sporktine is offline   Reply With Quote
Old 19-10-2003, 08:00 PM   #4
sporktine
Subscriber
 
sporktine's Avatar
 
Join Date: May 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

wow, yours is a better solution, am checking it out. thanks!
sporktine 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.