Yes there is - clip your shadow geometry against the ground plane before it gets flattened. You can do this with the discard keyword in your shadow pixel shader.

Jeff

On Tue, Sep 28, 2010 at 9:25 PM, leigh.mcrae@cogeco.ca <leigh.mcrae@cogeco.ca> wrote:
 Hi,

I have hooked up planar shadows for my Android Tank game using a matrix
to project all geometry onto the ground. The game has the luxury of
having  a 2D battle field.  The problem is that I am using instanced
rocks that are randomly rotated and pushed into ground.  So now I get a
reverse shadow projected from underneath.  Is there any way to get rid
of this?

Leigh

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
GDAlgorithms-list mailing list
GDAlgorithms-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list



--
Jeff Russell
Engineer, 8monkey Labs
www.8monkeylabs.com