POV-Ray : Newsgroups : povray.binaries.images : Eye macro : Re: Eye macro [image, ~61kbu] Server Time
20 Nov 2024 04:33:50 EST (-0500)
  Re: Eye macro [image, ~61kbu]  
From: Redbeard (MDJohnson)
Date: 20 Oct 2001 23:36:22
Message: <3bd242b6@news.povray.org>
"Mahalis" <don### [at] fakeycom> wrote in message
news:3bd211c5$1@news.povray.org...
> I might put a pupil_size (from 0 [no pupil] to 1 [all the way open]). Maybe
> a layered pigment would work for the iris...
>

How's this for an iris?  The colors may not be right, but otherwise...  Oh...
sorry for the PNG, but JPG mussed the file up too much.

(POV-Ray 3.5b6 used,  MegaPov shouldn't take much modifications, though)

#declare Fnc_IrisBase =
function
{
    pattern
    {
        radial triangle_wave
        scale 0.45 frequency 50
        rotate x * 90
    }
}
#declare Fnc_Iris =
function
{
    mod(Fnc_IrisBase(x,y,z) + f_noise3d(x*100,y*100,z*100) * 0.5, 1)
}
#declare T_Iris =
texture
{
    pigment
    {
        function { Fnc_Iris(x,y,z) }
        color_map
        {
            [0.20 rgb <0.10, 0.30, 0.90>]
            [0.85 rgb <0.12, 0.95, 0.70>]
            [0.99 rgb <0.00, 0.05, 0.10>]
        }
    }
}


Post a reply to this message


Attachments:
Download 'eyeball.png' (61 KB)

Preview of image 'eyeball.png'
eyeball.png


 

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