PDA

View Full Version : Shadow map color??


Lorigosolo
02-25-2005, 09:10 PM
Hi all!!

Need some help guys, i was rendering some sprites for a 2D game using shadow map (black) and a spriteedger over a "floor" (floor color R:64 G:128 B:128). After some renders my "boss" told me that now we need the shadow to be R:255 G:0 B:255. Easy i just have to change the color of the shadow map on the "spotlight" that is casting it, piece of cake!! :rolleyes:

Offcourse that didnīt work :eek:

It seems that the shadow is blending with the "floor" color and giving me a weird color that i donīt want, i need it to be R:255 G:0 B:255. Any idea how can i achive that?? :confused:

Is there any chance that i could make the shadow loose its transparency?? Or make the floor unseen by the camera but still see the shadow :p ??

Thanks!!
Lorigosolo

Lorigosolo
02-26-2005, 11:56 AM
Never mind guys, I already figured this out.

The problem was that the "floor" or plane was blending with the shadow map giving me a color that i didnīt want. So to fix that i had to change the plane color to white but the issue was that i need the background to be teal (64 128 128), so to fix this new problem i used a ground fog with the teal color. Now i have the shadow color set to 255 0 255 and the background teal :D

Thanks Anyway!!
Lorigosolo