POV-Ray : Newsgroups : povray.general : Invisible object that accepts shadows? Server Time
8 Aug 2024 22:16:11 EDT (-0400)
  Invisible object that accepts shadows? (Message 3 to 12 of 12)  
<<< Previous 2 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: Invisible object that accepts shadows?
Date: 26 Oct 2000 04:34:26
Message: <39f7ec92@news.povray.org>
Jerry Stratton <new### [at] hoboescom> wrote:
: Is there any way to use "no_image" with an object but still have it 
: *accept* (not cast) shadows? Or is there some other way for an object to 
: basically be invisible except for the shadows cast on it?

  There's no logical interpretation to this.
  A shadow is a modification in the illumination of the surface. A shadow
causes a dimmer lighting in some part of the surface.
  However, if the surface is invisible, it doesn't have lighting at all.
How can you modify an inexistent lighting?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Josh English
Subject: Re: Invisible object that accepts shadows?
Date: 26 Oct 2000 11:21:45
Message: <39F84C07.FBCD12E4@spiritone.com>
I think you can pull this off by making your object and giving it a bounding
box around the lightsource.
You have to tell POV-Ray not to ignore bounded-by.

Josh

Jerry Stratton wrote:

> Is there any way to use "no_image" with an object but still have it
> *accept* (not cast) shadows? Or is there some other way for an object to
> basically be invisible except for the shadows cast on it?
>
> Basically I want to be able to have the background color show through,
> but have 'drop shadows' from objects, for use on web pages and in
> documents.
>
> Jerry
> http://www.hoboes.com/jerry/

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Chris Huff
Subject: Re: Invisible object that accepts shadows?
Date: 26 Oct 2000 17:05:59
Message: <chrishuff-477539.16085626102000@news.povray.org>
In article <39F84C07.FBCD12E4@spiritone.com>, Josh English 
<eng### [at] spiritonecom> wrote:

> I think you can pull this off by making your object and giving it a 
> bounding box around the lightsource.

That will make it *cast* shadows, but it still won't "accept" shadows, 
whatever that would mean...there has to be something visible for the 
shadows to appear on.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Pabs
Subject: Re: Invisible object that accepts shadows?
Date: 26 Oct 2000 22:18:48
Message: <39F8E5BB.635DE760@hotmail.com>
Jerry Stratton wrote:

> Is there any way to use "no_image" with an object but still have it
> *accept* (not cast) shadows? Or is there some other way for an object to
> basically be invisible except for the shadows cast on it?
> Basically I want to be able to have the background color show through,
> but have 'drop shadows' from objects, for use on web pages and in
> documents.

Do you mean that if a particular intersection point on the object is in
shadow (another object between it and any light source) then that
intersection point __is__ counted as an intersection point but if it is not
in shadow it isn't?
Interesting idea!
--
Bye
Pabs


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Invisible object that accepts shadows?
Date: 27 Oct 2000 10:19:59
Message: <39F98DC4.4E4A04B9@my-dejanews.com>
With this definition, he could do CSG with the object and a cone/prism
representing the light source.

Pabs wrote:

> Jerry Stratton wrote:
>
> > Is there any way to use "no_image" with an object but still have it
> > *accept* (not cast) shadows? Or is there some other way for an object to
> > basically be invisible except for the shadows cast on it?
> > Basically I want to be able to have the background color show through,
> > but have 'drop shadows' from objects, for use on web pages and in
> > documents.
>
> Do you mean that if a particular intersection point on the object is in
> shadow (another object between it and any light source) then that
> intersection point __is__ counted as an intersection point but if it is not
> in shadow it isn't?
> Interesting idea!
> --
> Bye
> Pabs


Post a reply to this message

From: Josh English
Subject: Re: Invisible object that accepts shadows?
Date: 27 Oct 2000 11:59:33
Message: <39F9A664.C3B66DC8@spiritone.com>
ah. That will teach me to read a bit more....

Josh

Chris Huff wrote:

> In article <39F84C07.FBCD12E4@spiritone.com>, Josh English
> <eng### [at] spiritonecom> wrote:
>
> > I think you can pull this off by making your object and giving it a
> > bounding box around the lightsource.
>
> That will make it *cast* shadows, but it still won't "accept" shadows,
> whatever that would mean...there has to be something visible for the
> shadows to appear on.
>
> --
> Christopher James Huff
> Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
> TAG: chr### [at] tagpovrayorg, http://tag.povray.org/
>
> <><

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Jerry
Subject: Re: Invisible object that accepts shadows?
Date: 27 Oct 2000 12:47:22
Message: <jerry-E55A31.09472227102000@news.povray.org>
In article <39F8E5BB.635DE760@hotmail.com>, Pabs <pab### [at] hotmailcom> 
wrote:
>Jerry Stratton wrote:
>> Is there any way to use "no_image" with an object but still have it
>> *accept* (not cast) shadows? Or is there some other way for an object to
>> basically be invisible except for the shadows cast on it?
>> Basically I want to be able to have the background color show through,
>> but have 'drop shadows' from objects, for use on web pages and in
>> documents.
>
>Do you mean that if a particular intersection point on the object is in
>shadow (another object between it and any light source) then that
>intersection point __is__ counted as an intersection point but if it is not
>in shadow it isn't?

I think that's what I mean. In any case, Mark's idea of making a plane 
with diffuse 1000 and the same color as the background worked for me 
(although as Mark said, if I'd wanted transparency it wouldn't have; 
fortunately, I didn't).

You can see an example of why I wanted it at 
http://www.hoboes.com/html/RPG/The%20Game/The%20Game00.jpg

or go to

http://www.hoboes.com/html/RPG/The%20Game/

and click on the PDF link or either of the two HTML links.

The pencil casts a shadow on the paper, and the shadow abruptly 
disappears when the paper ends because there is no object to "accept" a 
shadow outside of the paper. I don't want another object there... but I 
do want the pencil to cast a shadow (and the dice also, theoretically, 
but their shadows are hidden by themselves).

A plane of diffuse 1000, ambient the same as the paper seems to work 
great (it was after midnight when I got around to trying it last night, 
and I didn't want to upload without paying more attention to the image).

(Notice that there's also what appears to be a stray shadow in the scene 
coming off of "telepathic". I have no idea where that's coming from. 
There's only one light source in the scene. But where it might be 
considered a stray mark on the paper, when I put the plane in, the 
shadow hits the plane as well so I'm going to have to fix it.)

Jerry
-- 
http://www.hoboes.com/jerry/
"Give a man a fish and you feed him for a day. Teach him to fish, and you've
depleted the lake."--It Isn't Murder If They're Yankees
(http://www.hoboes.com/jerry/Murder/)


Post a reply to this message

From: Gilles Tran
Subject: Re: Invisible object that accepts shadows?
Date: 27 Oct 2000 13:11:35
Message: <39F9B730.4A5963B@inapg.inra.fr>
Jerry wrote:

> You can see an example of why I wanted it at
> http://www.hoboes.com/html/RPG/The%20Game/The%20Game00.jpg

Forgive me if I'm missing something obvious here, but why not just use a white,
empty background behind the paper ???
G.


Post a reply to this message

From: Jerry
Subject: Re: Invisible object that accepts shadows?
Date: 27 Oct 2000 13:43:32
Message: <jerry-CD3194.10433327102000@news.povray.org>
In article <39F### [at] inapginrafr>, Gilles Tran 
<tra### [at] inapginrafr> wrote:

>Jerry wrote:
>
>> You can see an example of why I wanted it at
>> http://www.hoboes.com/html/RPG/The%20Game/The%20Game00.jpg
>
>Forgive me if I'm missing something obvious here, but why not just use 
>a white, empty background behind the paper ???

In the image that you're seeing, it is a white, empty background. The 
problem is that if you look at the shadow cast by the pencil, it 
disappears at the edge of the paper, as if the paper were floating in 
air. I don't want that to happen, but I also don't want an object 
visible in the scene--basically, I want the pencil to cast a shadow on 
the document that I'm placing this image in, whether that document is a 
web page or the printed page. I want the pencil to cast a shadow in that 
empty white area so that the pencil's shadow doesn't look odd when I 
actually use this image in my documents.

Jerry
-- 
http://www.hoboes.com/jerry/
"Give a man a fish and you feed him for a day. Teach him to fish, and you've
depleted the lake."--It Isn't Murder If They're Yankees
(http://www.hoboes.com/jerry/Murder/)


Post a reply to this message

From: Gilles Tran
Subject: Re: Invisible object that accepts shadows?
Date: 27 Oct 2000 14:24:18
Message: <39F9C83D.28CB4A7F@inapg.inra.fr>
Jerry wrote:

> In the image that you're seeing, it is a white, empty background.

OK, sorry for being dumb. I had understood that the picture shown was what you
wanted, which didn't make much sense...
The white plane with ambient 0 and high diffuse is the simplest solution for
this problem, then.

Just for the fun, you could also fake it with a height_field in the shape of the
shadow : render an orthographic top  view of the scene with a background plane
with all the shadows, then extract the shadow parts of the image and turn them
into thin height fields with a water level just above zero. Then remove the
plane object and replace it with the height fields...

G.


Post a reply to this message

<<< Previous 2 Messages Goto Initial 10 Messages

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