Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   Rendering - Creating a camera facing shader (https://simplymaya.com/forum/showthread.php?t=8499)

sporktine 19-10-2003 10:22 AM

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..

:banghead:

kbrown 19-10-2003 10:29 AM

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).

sporktine 19-10-2003 10:30 AM

durr
 
found it...

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

thx anyway

:rolleyes:

sporktine 19-10-2003 08:00 PM

wow, yours is a better solution, am checking it out. thanks!


All times are GMT. The time now is 03:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018