POV-Ray : Newsgroups : povray.general : Iridescence code : Re: Iridescence code Server Time
9 May 2024 20:19:19 EDT (-0400)
  Re: Iridescence code  
From: Robert McGregor
Date: 23 Dec 2023 15:40:00
Message: <web.65874570f07d5fbb87570eabd4644d08@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> Does anyone know how to implement the irid {} feature in the finish {} block of
> a texture?
>
> Or to be more accurate, how do I get iridescence to be visible on a clear
> surface?
>
> clipka posted some beautiful bubbles, and I can't seem to achieve anything close
> to the transparent but well-defined iridescent pattern that he gets.
>
> I tried adding interior {ior 1.4} but that didn't work (and I get weird
> artefacts}
>
> http://news.povray.org/povray.binaries.images/thread/%3C4ed6f24c@news.povray.org%3E/
>
> I looked in the distro, and it appears that we're missing an example scene for
> this feature.
>
> - BW

Here's a bubble material that I came up with back in 2012, after clipka did a
bug fix on the old irid code:

#declare M_Bubble = material {
   texture {
      pigment { rgbt 0.99 }
      finish {
         diffuse 0
         reflection { 0.05, 1 fresnel on }
         specular 0.99 roughness 0.001
         conserve_energy
         irid { 0.25
            thickness 0.25
            turbulence 1.2
         }
      }
   }
   interior { ior 1.001 }
}


Post a reply to this message


Attachments:
Download 'lucy_bubble2012.png' (2280 KB)

Preview of image 'lucy_bubble2012.png'
lucy_bubble2012.png


 

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