POV-Ray : Newsgroups : povray.newusers : Refraction of light source Server Time
1 Nov 2024 00:27:15 EDT (-0400)
  Refraction of light source (Message 1 to 4 of 4)  
From: j-dowsett
Subject: Refraction of light source
Date: 2 Dec 2011 06:30:00
Message: <web.4ed8b64f45fa24a4c9af0c2a0@news.povray.org>
I'm shining a spotlight onto a plane at an angle (so getting an ellipse).  I'm
trying to place a lense between the light source and the plane, such that
refraction will modify the shape of my spotlight beam.  I'm am getting no
effects though.

If I move my lense such that it is between the plane and the camera then the
image of the ellipse is distorted - it seems the lense is correctly set up to
refract.

Is there a limit to how close to the spotlight I can place my lense?  My lense
is very small and thus placed very close to the spotlight, I have assumed that
the spotlight is a point source and that this wouldn't be a problem?

Why does it not cause refraction of the light that is emitted directly from the
spotlight?  Is there anything I can do to correct this?


Thanks for your help
Joe


Post a reply to this message

From: Warp
Subject: Re: Refraction of light source
Date: 2 Dec 2011 08:46:20
Message: <4ed8d6ab@news.povray.org>
j-dowsett <nomail@nomail> wrote:
> Why does it not cause refraction of the light that is emitted directly from the
> spotlight?

  Because the calculations are non-trivial and requires some parameters to
be specified by the user. It can be done, though:

http://wiki.povray.org/content/Documentation:Reference_Section_6.1#Photons

-- 
                                                          - Warp


Post a reply to this message

From: clipka
Subject: Re: Refraction of light source
Date: 2 Dec 2011 10:30:15
Message: <4ed8ef07$1@news.povray.org>
Am 02.12.2011 12:28, schrieb j-dowsett:

> Why does it not cause refraction of the light that is emitted directly from the
> spotlight?  Is there anything I can do to correct this?

Classic backward raytracing (which is what POV-Ray basically does) can't 
do refraction between light and illuminated surfaces; POV-Ray does have 
a forward raytracing extension to cope with such situations, but you 
need to explicitly enable this feature; the buzzword to look for in the 
docs is "photons".


Post a reply to this message

From: j-dowsett
Subject: Re: Refraction of light source
Date: 2 Dec 2011 15:15:01
Message: <web.4ed931a1f10b0719c9af0c2a0@news.povray.org>
Thank you, that's done the trick.
I'd thought it might be to do with photons, but the fact that it worked in front
of the camera confused me.

Cheers.


Post a reply to this message

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