POV-Ray : Newsgroups : povray.binaries.images : Worthy of a Portrait : Re: Worthy of a Portrait Server Time
2 Aug 2024 14:13:22 EDT (-0400)
  Re: Worthy of a Portrait  
From: clipka
Date: 5 Aug 2013 22:25:45
Message: <52005ea9$1@news.povray.org>
Am 05.08.2013 23:45, schrieb Alain:
> It's probably one of the best iris I've ever seen, just next to some
> actual iris photos...

Thanks. I was actually quite surprised how easy it was to achieve.

> Care to share it?

Here it is; note that it is a UV-mapped texture designed to fit the DAZ 
Genesis eyes; for other models, the main material (M_Iris) may need some 
tweaking. Also note that the DAZ Genesis model has separate geometry for 
the iris and the cornea; if this is not the case for your model, you 
will also need to tweak the finish.

(Ah, and last not least, the slight "cat's pupil" effect in the image I 
posted is in the geometry, not the material.)

--------------------------------------------------------------------
#declare P_Iris_Shadowed = pigment { color rgb 0 }

#declare P_Iris_Base = pigment {
   granite
   color_map {
     [ 0.0 color srgb <0.4,0.5,0.3> ] // <-- primary color
     [ 1.0 color srgb <0,0,0> ]
   }
   translate z
   scale 0.5
}

#declare P_Iris_A = pigment {
   P_Iris_Base
   scale 0.7
   warp { black_hole <0,0,0>, 1 strength 1 falloff 2 }
}

#declare P_Iris_B = pigment {
   granite
   pigment_map {
     [ 0.0 color srgb <0.7,0.7,0.3> ] // <-- secondary color
     [ 0.3 P_Iris_Base ]
   }
   scale 0.7
   warp { black_hole <0,0,0>, 1 strength 1 falloff 2 }
}

#declare M_Iris = material {
   texture {
     pigment {
       uv_mapping
       spherical
       pigment_map {
         [0.2  P_Iris_Shadowed]
         [0.3  P_Iris_A ]
         [0.4  P_Iris_A ]
         [0.5  P_Iris_B ]
         [0.6  P_Iris_B ]
         [0.65 P_Iris_Shadowed]
       }
       translate <1,1,0>
       warp { repeat 2*x }
       scale 0.25
     }
     finish { ambient 0 diffuse albedo 0.6 specular albedo 0 emission 0 }
   }
}
--------------------------------------------------------------------


Post a reply to this message

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