Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

drop shadow algorithm

75 views
Skip to first unread message

finecur

unread,
Jun 10, 2009, 3:02:55 PM6/10/09
to
Suppose I have a image and inside it there is a object. How can I draw
a drop shadow of the object in the image? I am looking for
computational algorithm.

Thanks,

ff

Hans-Bernhard Bröker

unread,
Jun 10, 2009, 3:55:41 PM6/10/09
to
finecur wrote:
> Suppose I have a image and inside it there is a object. How can I draw
> a drop shadow of the object in the image?

You can't. There is nowhere near enough information in a 2D image to
compute the shadow a 3D object would cast in a 3D environment.

Gernot Hoffmann

unread,
Jun 11, 2009, 12:26:38 PM6/11/09
to

Hans-Bernhard Bröker schrieb:

In Adobe graphic programs the technical term 'drop shadow'
means a fake shadow, merely a graphical effect (which is
certainly not welcome for the friends of Bauhaus):
http://en.wikipedia.org/wiki/Drop_shadow

Best regards --Gernot Hoffmann

Kenneth Sloan

unread,
Jun 20, 2009, 11:26:27 AM6/20/09
to

Impossible - and yet easy.

Once you realize that you will have to be satisfied with a wrong answer,
do that 2.5D people have done for a half-century, or more: find the
outline of the object, shift it slightly down and to the right, darken
anything within the bounds of this shifted polygon that is NOT within
the outline of the original object.

Modify as needed, depending on any information you may have extracted
from the image, such as the distance between the object and the
background, the location of the light source, etc.

--
Kenneth Sloan Kennet...@gmail.com
Computer and Information Sciences +1-205-932-2213
University of Alabama at Birmingham FAX +1-205-934-5473
Birmingham, AL 35294-1170 http://KennethRSloan.com/

0 new messages