POV-Ray : Newsgroups : povray.advanced-users : Double-slit experiment Server Time
28 Jul 2024 14:31:05 EDT (-0400)
  Double-slit experiment (Message 11 to 11 of 11)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Walid
Subject: Re: Double-slit experiment
Date: 3 Feb 2006 18:10:00
Message: <web.43e3e2904080b39128bf65760@news.povray.org>
> Hi Walid,
> I might be missing the point, but it seems to me that if you just want to
> create a pattern on a surface that replicates an interference pattern, then
> I can see two ways to do that in POV-Ray.
>
> 1. Use a function to create a pigment - I suspect it would be possible to
> work out a function that uses the difference between the distance to one
> slit and the distance to the other, then takes the remainder after dividing
> that difference by the 'wavelength', returning a bright value where the
> remainder is zero or equal to the 'wavelength' and fading to dark where the
> remainder is half the wavelength.
>
> 2. Just position objects at the points of impact on the screen - If you
> wanted a scatter of bright dots representing individual locations, you could
> generate a random series of positions on a surface, then use the same sort
> of calculation to determine whether you are going to show that dot or not.
>
> The following example uses the second approach, with a series of spheres
> being generated on an imaginary screen. The difference between the lengths
> of the two potential paths is used to define how likely a dot is to be made
> on the screen.
>
> Hope this helps,
> Regards,
> Chris B.

Hi Chris,

Thanks a lot for your help. I was looking for this kind of script.
It's really interesting. I'll try to work out your first approach too.

Thanks again
Walid


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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