POV-Ray : Newsgroups : povray.newusers : Rendering ONLY the shadow falling on the object (not the object itself) : Rendering ONLY the shadow falling on the object (not the object itself) Server Time
4 Nov 2024 21:22:41 EST (-0500)
  Rendering ONLY the shadow falling on the object (not the object itself)  
From: Frantisek Fuka
Date: 22 Nov 2002 17:01:49
Message: <3ddea94d@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.