POV-Ray : Newsgroups : povray.binaries.images : Eye experiment : Re: Eye experiment Server Time
4 Nov 2024 19:19:15 EST (-0500)
  Re: Eye experiment  
From: Robert McGregor
Date: 4 Nov 2009 08:05:01
Message: <web.4af17b6bc237b99e4726e92b0@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:

> Are you sure you did not post a photo by error? ;)
>
> Only thing , it looks to me that the blod vessels are somewhat to
> present, or to numerous.

Heh, yes I agree - looks like she's been up all night and is now seeing the
sunrise.

Actually, the blood vessels gave me some trouble. In the end I used the roots of
a weed pulled from my garden and photographed against a concrete floor. I
tweaked them a lot in PhotoShop and ended up with a spherical projection.

Here's the code for the eye texture (and accompanying maps: top is the iris
mask, next is color, next is bump, iris [of course] on the bottom).

#include "eye.inc"
#declare Eye = object {Eye translate <0,-1,-0.076621>}

#declare T_Eye = texture {
   #if (Ambient_Occlusion)
      T_Ambient_Occlusion
   #else
      image_pattern { png "cornea_mask.png" interpolate 2 map_type 1 }
      texture_map {
         [0 pigment {Clear}
            normal {
               bump_map {png "eyeball_map_bump.png" interpolate 2 map_type 1 }
               bump_size 0.25
            }
            finish { reflection {0.1, 0.35 fresnel} conserve_energy
               specular 1 roughness 0.001 brilliance 1
            }
         ]
         [1
            pigment {
               image_map { png "eyeball_map.png" interpolate 2 map_type 1 }
            }
            normal {
               bump_map { png "eyeball_map_bump.png" interpolate 2 map_type 1 }
               bump_size 0.25
            }
            finish { reflection {0.1, 0.35 fresnel} conserve_energy
               specular 1 roughness 0.001 brilliance 1
            }
         ]
      }
      rotate x*90
      rotate -z*90
   #end
}

#declare T_Iris = texture {
   torus { 1, 0.5
      rotate x*90
      scale z*0.2
      texture {
         #if (Ambient_Occlusion)
            T_Ambient_Occlusion
         #else
            pigment {
               image_map { png "Iris.png" interpolate 2 map_type 0 once }
               translate -0.5
            }
            normal {
               bump_map { png "Iris.png" interpolate 2 map_type 0 once }
               translate -0.5 bump_size 1
            }
            finish { specular 0.2 roughness 0.02 }
            scale 3.1
         #end
      }
   }
#end

object { Eye
   scale 0.7
   texture { T_Eye }
   interior { ior 1.33 }
}


Post a reply to this message


Attachments:
Download 'eyemaps.png' (906 KB)

Preview of image 'eyemaps.png'
eyemaps.png


 

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