POV-Ray : Newsgroups : povray.bugreports : feature request: diffraction : Re: feature request: diffraction Server Time
27 Apr 2024 19:05:27 EDT (-0400)
  Re: feature request: diffraction  
From: jmichae3
Date: 20 Aug 2011 22:10:00
Message: <web.4e5068361f19ae0a379c87210@news.povray.org>
"jmichae3" <jmi### [at] yahoocom> wrote:
> diffraction grating can be studied at
> http://en.wikipedia.org/wiki/Diffraction_grating
> it can be either transmissive or reflective.
>
> the effects that come from it are rainbows and other interesting effects.
>
> there are clear camera lenses which are diffraction grating and when you look at
> sun rays through them, they form rainbows around that item.
>
> different effects can be obtained by rotating the diffraction grating (which
> could be useful for videos).
>
> I should think it could be implemented as a plane of VERY TINY [clear or highly
> reflective] bars. I don't know whether to use square rods or triangle rods or
> circle rods.  I should think square would make a more plane-like reflective
> surface, while the circle rod would reduce the light, but work in any direction.
>  triangle rods would switch images depending upon point of view (they use larger
> ones in plastic kind of layer with an image on the back on kids toys).
>
> so maybe having a choice is a good thing.  with the diffraction grating, the
> rods are so small you cannot see them with the eye.  so working with floating
> point may or may not present a problem - so use exponents for the
> diameter/radius?

I would like to add that spacing is also a critical property.  you could have
interesting effects if you could warp the grating or map it to a surface, but I
am unsure if this is possible (for instance, a bump map or map to sphere or box.
I would especially like that!

some sort of guide or way to calculate diameter of grating would be needed based
on size of the world or size of object, whichever is more appropriate, probably
size of object.

imagine a house window that is made of diffration grating!

another possibility is that the diffraction grating covers the entire image area
of the camera, to hide edges.


Post a reply to this message

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