Object shadows

I’m working on a augmented reality application for mobile devices and I need to cast the shadows of an object. I need that the shadows stands “on air” I mean, there isn’t any plane or somethig like that where the shadow is projected. Anyone knows how can I do that?

Thanks

Plane with alpha.

It doesn’t work, if a make the plane invisible with the alpha, the shadow is not displayed.

Alpha blended materials can’t use shadows as they don’t write into the depth buffer. Not sure how to do this actually, but I know it has been asked before. Try some searches on here and Google for a shader/set-up that can do this.

I spent many hours searching on google but I didn’t find anything that works :frowning:

Seek and you shall find :wink:

http://www.unifycommunity.com/wiki/index.php?title=TransparentShadowReceiver

That should do the trick.

That doesn’t work on mobile devices but thanks anyway