PDA

View Full Version : Incandescence in shadow only?


zenonithus
07-29-2010, 04:50 PM
Hi,

I'm rendering the earth. basically using a map for the lights in the incandescence channel of my shader. however, I need it to display in the shadow areas only with a zero gradient to fully lit areas.

anyone know how to achieve this?

cheers

MasonDoran
07-29-2010, 04:52 PM
Surface Luminance node is your friend. Use this to control the color gain of your texture map.

zenonithus
07-29-2010, 05:21 PM
you know I've been starring at that node just now wondering what to do with it ;) thanks MasonDoran.

zenonithus
07-29-2010, 05:33 PM
by the way, dont suppose you know what outputs/inputs to connect?

zenonithus
07-29-2010, 05:58 PM
I've plugged the surface luminance out value into the colour gain R,G,B of the incandescence, though it seems to be doing the opposite, the incadescence only shows in the lit areas :(

zenonithus
07-29-2010, 07:47 PM
BUMP!! still cant get this working :( wasted a good few hours with the Surface Luminance node so guess that doesn't work.

any suggestions anyone???

MasonDoran
07-29-2010, 07:52 PM
it is the correct node, just requires some research

http://www.tokeru.com/t/bin/view/Maya/MayaLightingShading#Shading_via_surface_luminance_no

zenonithus
07-29-2010, 07:58 PM
you're right MD, got it working now :rolleyes: Just requires pluging the SL into a reverse node :cool:

MasonDoran
07-29-2010, 08:09 PM
just to verify....i just got working by following the link i just provided

animatedfox
07-29-2010, 08:11 PM
The reverse node isn't neccessary.
You can get two for one functionality by connecting the surface luminance outValue to the vCoord of a ramp (assuming the default V-type ramp).
You can get very fine control of just how you want you values to fall off and what colors they are.

***big note is that you do need to use the setValue node or the clamp node in the chain to keep your ramp from repeating as the luminance may go over 1***

Love this node!
~Ben

zenonithus
07-31-2010, 12:46 PM
MasonDoran: cheers, that link also has alot of other useful tips I can use ;)

animatedfox: Thanks for futhering this. Adjusting the values would be an ideal function as too much of the map is still visible in the light. Will look into this method also.

CGTalk Moderation
07-31-2010, 12:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.