|
|
I tried rendering PNG images with transparency so that I can use them as
a sprites in the game but I encountered the problem with shadows. Let's
say my rendered figure looks like this (this is not the actual model I'm
using):
http://www.fuxoft.cz/tmp/pig.png
That's great, I can use this as a sprite, but because in the game the
sprite will be always moving on the flat ground, I'd also like the
sprite to contain the shadow that it casts on the ground (preferably as
alpha channel, so that the game background will be partly seen through
it). But if I add some sort of ground, I get this:
http://www.fuxoft.cz/tmp/pig2.png
There are shadows but of course there's no longer any transparency, just
white ground. And when I try to make the ground see-thru, the shadows
disappear too... Can I somehow render the shadows but retain the
background transparency???
Please note that this cannot be solved with "no_image" directive. I want
to render object X (the figure) and the shadow that object X casts on
object Y (the ground), but not object Y itself.
Thanks
Post a reply to this message
|
|