POV-Ray : Newsgroups : povray.general : light reflection in mirrors : Re: light reflection in mirrors Server Time
6 Aug 2024 00:09:58 EDT (-0400)
  Re: light reflection in mirrors  
From: Slime
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

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