POV-Ray : Newsgroups : povray.general : Refraction patterns : Re: Refraction patterns Server Time
4 May 2024 17:39:42 EDT (-0400)
  Re: Refraction patterns  
From: Alain Martel
Date: 2 Oct 2019 15:47:02
Message: <5d94feb6$1@news.povray.org>
Le 2019-10-01 à 06:36, IGM a écrit :
> Hello,
> media { density {} } allows a 3D distribution of absorbace. This will change
> each ray intensity. Is it possible to have a 3D distribution of the refractive
> index? This would allow the bending of each ray _inside_ the material. At the
> moment, in povray, bending of rays is possible only on the surface, through the
> real geometry of the object or through the normal {} command.
> 
> An example of the possible effects of ior 3D patterns is the "Fata Morgana" (
> https://en.wikipedia.org/wiki/Fata_Morgana_(mirage) ) and other atmospheric
> effects. Also ancient or low quality real glasses show this effect. GRIN lenses
> are another example.
> 
> How would you produce a non-uniform distribution of the refractive index, in the
> absence of a interior {ior density {}} command?
> 
> Thanks
> igmar
> 
> 

NOT possible  now, and maybe never.

It may be possible using an heavily modified render engine.
It would require sampling the IOR gradient amplitude and direction at 
multiple locations along a ray. After each test, the direction of each 
ray would need to be adjusted. This will affect the location of the nest 
sample point.
It would be extremely computationally intensive and bring the render 
speed to a crawl.


Post a reply to this message

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