|
|
> 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
|
|