PDA

View Full Version : only shadow,but coloured


lions
02-08-2003, 12:25 PM
Hi,I want to create a few spot lights linked to several objets that only cast shadows on them.That's easy,color to black,intensity by default and shadow color value to -1.
But that provides BLACK shadows.....and I need BLUE shadows!!!
Since shadow value is negative,there's no way to colour my shadow.......Any way to do it?
thanks

stunndman
02-08-2003, 06:48 PM
so you want a light to cast colored shadows without any other direct illumination? - why would you try to assign a negative shadow color then ?

mattwood
02-08-2003, 07:01 PM
Look for mwShadowLight.mel at www.highend3d.com

luminis
02-08-2003, 10:47 PM
I made a quick test and I think this works:

Duplicate each of the spotlights you want to do this with (make sure one is on top of the other in the same place, same rotation, etc). For each duplicate pair, one of them set it to cast shadows and set its shadow color to blue. To the other one, set it to NOT cast shadows and set its intensity to the negative of the oher one, so if the shadow one has intensity of 1, set the other one to intensity of -1. The second one will take away whatever light the first one is sending, but should not affect the shadow.

Hope this helps.

luminis
02-08-2003, 10:54 PM
Oh, i just tried your approach, and tweaking a few things I found an easier way of doing this than my previous solution.

Spotlight intensity to default and black in color. Set the shadow to -1, like you said (still I don't know exactly why or how it works but it does), but... additional to the Value being -1, set the Hue to 60 and Saturation to 1. This will give a fully saturated yellow color, except that it will have a -1 value. (why yellow, because it is the exact opposite of blue in hue - again don't ask me why or how it works, but it does).

This should now create a blue shadow only.

padhia
10-14-2005, 06:48 PM
I have tried the methods you guys were talking about, and also tried the mwShadowLight set up. none of it seems to work too well with final gather? or am i missing something?

CGTalk Moderation
10-14-2005, 06:48 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.