POV-Ray : Newsgroups : povray.general : light reflection in mirrors Server Time
6 Nov 2024 20:21:04 EST (-0500)
  light reflection in mirrors (Message 1 to 9 of 9)  
From: marabou
Subject: light reflection in mirrors
Date: 10 Jul 2002 13:29:56
Message: <3d2c6f14@news.povray.org>
does anybody know a link where i can find how to reflect  light in a mirror?
thanks in advance.


Post a reply to this message

From: TinCanMan
Subject: Re: light reflection in mirrors
Date: 10 Jul 2002 13:41:53
Message: <3d2c71e1$1@news.povray.org>
"marabou" <not### [at] availablenet> wrote in message
news:3d2c6f14@news.povray.org...
>
> does anybody know a link where i can find how to reflect  light in a
mirror?
> thanks in advance.
>
>

Don't have a link in specific but the only *true* way to do this in POV is
with photons so have a look at them.  There are ways to fake it, but they
are very limited.

-tgq


Post a reply to this message

From: Christopher James Huff
Subject: Re: light reflection in mirrors
Date: 10 Jul 2002 13:49:58
Message: <chrishuff-FA6212.12470010072002@netplex.aussie.org>
In article <3d2c6f14@news.povray.org>, marabou <not### [at] availablenet> 
wrote:

> does anybody know a link where i can find how to reflect  light in a mirror?

Look up "photon mapping" in the POV-Ray 3.5 manual.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: Warp
Subject: Re: light reflection in mirrors
Date: 10 Jul 2002 13:56:40
Message: <3d2c7557@news.povray.org>
marabou <not### [at] availablenet> wrote:
> does anybody know a link where i can find how to reflect  light in a mirror?

  Take a flashlight, or any other light and a mirror. Aim the light
towards the mirror.

  Or did you mean in POV-Ray?-)
  In that case, see the section about photon mapping in the documentation.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Slime
Subject: Re: light reflection in mirrors
Date: 10 Jul 2002 17:06:19
Message: <3d2ca1cb@news.povray.org>
While many people are mentioning photons as the solution, there is one other
possibility that I've come up with. However, this will work *only* for flat
mirrors. Use photons in any other case.

It's pretty simple, really. Find the place where the light source would be
reflected inside the mirror. For instance, if your mirror was flat along the
Y-Z plane, and your light source was at <3,4,5>, the reflected light source
would be at <-3,4,5>. This is the place where the light would appear to be
if you looked "through" the mirror.

Then, actually place a light source in that position, and set it to be
projected_through the mirror! Set its color to the color of the other light
source, but a little darker, probably.

The one issue with this is that if there are objects between the real light
source and the mirror, the reflected light won't carry those shadows with
it. (The shadows won't affect anything after the light "bounces" off the
mirror.) There are probably ways around this, but that's something you can
work out yourself if you choose to use this method.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Peter Popov
Subject: Re: light reflection in mirrors
Date: 10 Jul 2002 18:01:30
Message: <kdbpiu83toeqvfhdllgf4csc7m38pbp68a@4ax.com>
On Wed, 10 Jul 2002 17:04:43 -0400, "Slime" <slm### [at] slimelandcom> wrote:

>It's pretty simple, really. Find the place where the light source would be
>reflected inside the mirror. For instance, if your mirror was flat along the
>Y-Z plane, and your light source was at <3,4,5>, the reflected light source
>would be at <-3,4,5>. This is the place where the light would appear to be
>if you looked "through" the mirror.

Virtual Light Sources... I contacted the Team with that idea quite
some time ago (back in 1996 I think) - I wasn't lurking around this
server yet, and I think the server itself wasn't up yet. No answer
then. Later, when I posted to c.g.r.r. I got a reply that Radiance had
been doing it for years by the time. So much for my invention of the
wheel *sigh*


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Slime
Subject: Re: light reflection in mirrors
Date: 10 Jul 2002 18:45:18
Message: <3d2cb8fe@news.povray.org>
> Virtual Light Sources... I contacted the Team with that idea quite
> some time ago (back in 1996 I think) - I wasn't lurking around this
> server yet, and I think the server itself wasn't up yet. No answer
> then. Later, when I posted to c.g.r.r. I got a reply that Radiance had
> been doing it for years by the time. So much for my invention of the
> wheel *sigh*


Radiance?

Do you mean radiosity?

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Captain Tylor
Subject: Re: light reflection in mirrors
Date: 11 Jul 2002 09:37:29
Message: <3d2d8a19$1@news.povray.org>
Radiance is the name of another program which specializes in radiosity.

"Slime" <slm### [at] slimelandcom> wrote in message > Radiance?
>
> Do you mean radiosity?
>
>  - Slime
> [ http://www.slimeland.com/ ]
>
>


Post a reply to this message

From: Peter Popov
Subject: Re: light reflection in mirrors
Date: 11 Jul 2002 13:23:55
Message: <mkfriuge14v3d1sh1j3hjbddb5mbgapvtn@4ax.com>
>Radiance?
>
>Do you mean radiosity?

No, I mean Radiance :) It is a piece of software (free, I think) which
uses pure radiosity and is therefore mostly adored by architects,
interior designers etc. The way it implements caustics is similar to
photon mapping but much less efficient - but not so much less
efficient for a completely polygon-based engine as virtual light
sources are a pretty intuitive idea in this case and pretty fast even
at pre-trace stage.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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