POV-Ray : Newsgroups : povray.binaries.images : YAEM (Yet Another Eye Macro) Server Time
6 Nov 2024 12:20:00 EST (-0500)
  YAEM (Yet Another Eye Macro) (Message 1 to 10 of 10)  
From: Artemia Salina
Subject: YAEM (Yet Another Eye Macro)
Date: 29 Jun 2006 13:23:09
Message: <44a40c7d@news.povray.org>
Eternally WIP, here's a human eye macro that I've been working on for
quite some time. Textures for the blood veins and iris are fractal
pigment patterns. Still not completely happy with it. Rotation of the
iris pigment elements needs to be worked on to get rid of the spiral
effect and more control of the blood veins is needed, but the pupils
will dilate and eye color is customizable via macro parameters.

----------------------------------------------------------------

// AS - 06 Eye Macro for POV-Ray
// Usage: #include "eye.inc"
//        object{Eye(Brown, 0.5) translations}


#include "colors.inc"   // Standard Color definitions
#include "textures.inc" // Standard Texture definitions
#include "math.inc"
#include "rand.inc"

#declare N1 = seed(12345);
#declare N2 = seed(22345);
#declare N3 = seed(32345);
#declare N4 = seed(42345);
#declare N5 = seed(52345);
#declare N6 = seed(62345);
#declare N7 = seed(72345);
#declare N8 = seed(82345);
#declare N9 = seed(92345);

#macro BloodShot(N, T, C)
texture{
         pigment {
                 mandel 5000  * RRand(1, 5, N)
                 turbulence RRand(0.2, 10.9, N)
                 scale <1,1,1>
                 translate z*(T/2)
                 rotate <0, 0, RRand(0, 360, N)*(T/10)>
                 color_map {
                         [0.010  rgbt 1]
                         [0.010 C ]
                         [0.200  C ]
                         [0.200 rgbt 1]
                 }
         }
}
#end
#macro ITex(P, CC, R, N)
texture {
         pigment {
                 mandel 60
                 turbulence RRand(5, 6, N)
                 omega 0.75
                 scale <(P/1.5)+1.75, .4, .1>
                 rotate <0, RRand(2, 4, N), R*0.5>
                 color_map {
                         [0.007 rgbt 1 ]
                         [0.007 rgbt <0.416471-CC.red, 0.658824-CC.green,
0.639216-CC.blue, 0.7> ]
                         [0.029 rgbt <0.536471-CC.red, 0.458824-CC.green,
0.539216-CC.blue, 0.9> ]
                         [0.029 rgbt 1 ]
                 }
         }
}
#end

// Pupil == 0.0 - open  1.0 - closed
#macro Eye(Color, Pupil)
union{
         cone{   <0,0,-0.43>, 0.234
                 <0,0, -0.42>, 0.05+(Pupil/10)
                 open

                 texture{
                         pigment {color Color}

                         finish  {ambient 0.30
                                 brilliance 3
                                 diffuse 0.4
                                 metallic
                                 specular 0.70
                                 roughness 1/60
                                 reflection 0.25
                         }
                 }
                 #local QQ = 0;
                 #while (QQ <= 720)
                 ITex(Pupil, Color+0.5, QQ, N1)
                 ITex(Pupil, Color*0.75, QQ+5, N1)
                 #local QQ = QQ + 20;
                 #end
         }

         torus{ 0.238, 0.01
                 pigment{rgbt <0.75, 0.75, 0.75, 0.200>}
                 scale <1, 0.4, 1>
                 rotate x*90
                 translate <0,0,-0.40>
         }

         difference { //Eyeball
                 sphere {0, 0.5
                         texture{pigment{color White}}

                         BloodShot(N1, 1, Red)
                         BloodShot(N2, 2, Red)
                         BloodShot(N3, 3, Red)
                         BloodShot(N4, 4, Red)
                         BloodShot(N5, 5, Red)
                         BloodShot(N6, 6, Red)
                         BloodShot(N7, 7, Red)
                         BloodShot(N8, 8, Red)
                         BloodShot(N9, 9, Red)
                         texture {
                           pigment { color rgbt <0.98, 0.98, 0.98, 0.9> }
                                 finish  {
                                         ambient 0.1
                                         diffuse 0.1
                                         reflection 0.1
                                         specular 0.8
                                         roughness 0.0005
                                 }
                         }

                       interior {ior 1.0}
                       normal {dents 0.5 scale <.15,.15,.1> turbulence 1}
                       hollow
                 }
                 sphere{<0,0,-0.5>,0.25}
                 hollow
                         BloodShot(N7, 7, Red)
                         BloodShot(N8, 8, Red)
                         BloodShot(N9, 9, Red)
                         texture {
                           pigment { color rgbt <0.98, 0.98, 0.98, 0.9> }
                                 finish  {
                                         ambient 0.1
                                         diffuse 0.1
                                         reflection 0.1
                                         specular 0.8
                                         roughness 0.0005
                                 }
                         }

                       interior {ior 1.0}
                       normal {dents 0.5 scale <.15,.15,.1> turbulence 1}
                       hollow
                 }
                 sphere{<0,0,-0.5>,0.25}
                 hollow
         }
         sphere {0,0.25
                 texture {
                         pigment { color rgbt <0.98, 0.98, 0.98, 0.9> }
                         finish  {
                                 ambient 0.1
                                 diffuse 0.1
                                 reflection 0.1
                                 specular 0.8
                                 roughness 0.0005
                         }
                 }
                 interior {ior 1.0}
                 hollow
                 scale <1,1,0.6>
                 translate <0,0,-0.4>
         }

}
#end


Post a reply to this message


Attachments:
Download 'eye-test.jpg' (86 KB)

Preview of image 'eye-test.jpg'
eye-test.jpg


 

From: Ross
Subject: Re: YAEM (Yet Another Eye Macro)
Date: 29 Jun 2006 13:58:34
Message: <44a414ca@news.povray.org>
"Artemia Salina" <non### [at] nonenone> wrote in message
news:44a40c7d@news.povray.org...
> Eternally WIP, here's a human eye macro that I've been working on for
> quite some time. Textures for the blood veins and iris are fractal
> pigment patterns. Still not completely happy with it. Rotation of the
> iris pigment elements needs to be worked on to get rid of the spiral
> effect and more control of the blood veins is needed, but the pupils
> will dilate and eye color is customizable via macro parameters.
>

Too many veins as well. My eyes only have that many if I am having problems
with my contact lenses, and in that case, the whites of my eyes is almost
entirely pink.


Post a reply to this message

From: Darren New
Subject: Re: YAEM (Yet Another Eye Macro)
Date: 29 Jun 2006 14:30:01
Message: <44a41c29$1@news.povray.org>
Artemia Salina wrote:
> but the pupils will dilate 

For a moment there, I scrolled through the source to see how you were 
calculating how much light was hitting the eye. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     Native Americans used every part
     of the buffalo, including the wings.


Post a reply to this message

From: Paolo Gibellini
Subject: Re: YAEM (Yet Another Eye Macro)
Date: 30 Jun 2006 08:20:55
Message: <44a51727$1@news.povray.org>
I agree with Ross: to many veins (conjunctivitis?), and the black are too
marked, but I'm curious to see the eyes in a face. Could you post a sample?
Thank you,
;-)
Paolo

> "Artemia Salina" <non### [at] nonenone> wrote
> Eternally WIP, here's a human eye macro that I've been working on for
> quite some time. Textures for the blood veins and iris are fractal
> pigment patterns. Still not completely happy with it. Rotation of the
> iris pigment elements needs to be worked on to get rid of the spiral
> effect and more control of the blood veins is needed, but the pupils
> will dilate and eye color is customizable via macro parameters.
>


Post a reply to this message

From: Sven Littkowski
Subject: Re: YAEM (Yet Another Eye Macro)
Date: 1 Jul 2006 07:15:53
Message: <44a65969$1@news.povray.org>
Nice work. But the blueish surface needs a bit transparency, I could 
imagine. So that blueish part looks more plastical, more real. And in this 
"blue glass" you can embedd black stripes as seen in the human eye.

Interesting work!

Sven


Post a reply to this message

From: scott
Subject: Re: YAEM (Yet Another Eye Macro)
Date: 1 Jul 2006 07:45:20
Message: <44a66050$1@news.povray.org>
"Paolo Gibellini" <p.g### [at] teinoscom> wrote in message
news:44a51727$1@news.povray.org
> I agree with Ross: to many veins (conjunctivitis?), and the black
> are too marked, but I'm curious to see the eyes in a face. Could
> you post a sample? Thank you,
> ;-)

http://static.flickr.com/47/159938442_48a8c30802_o.jpg


Post a reply to this message

From: Artemia Salina
Subject: Re: YAEM (Yet Another Eye Macro)
Date: 2 Jul 2006 00:36:13
Message: <pan.2006.07.02.04.36.13.507857@sheayright.com>
On Sat, 01 Jul 2006 13:45:18 +0200, scott wrote:

> "Paolo Gibellini" <p.g### [at] teinoscom> wrote in message
> news:44a51727$1@news.povray.org
>> I agree with Ross: to many veins (conjunctivitis?), and the black
>> are too marked, but I'm curious to see the eyes in a face. Could
>> you post a sample? Thank you,
>> ;-)
> 
> http://static.flickr.com/47/159938442_48a8c30802_o.jpg

A beautiful eye:

http://www.imageafter.com/dbase/images/nature_characters_humanparts/b1eye01.jpg

That's the photo that I used to model the my macro from.


-- 
Today's Alliterative Monomania Headlines:
Diffinitive Disquietous Debtor Decumbently Deintegrates Desireless Defile
Flexanimous Fettered Faro Flagrantly Festeyes French Fearnaught
Eagle-eyed Easeful Ear-piercer Equably Enerves Eburnine Earsh


Post a reply to this message

From: scott
Subject: Re: YAEM (Yet Another Eye Macro)
Date: 2 Jul 2006 04:44:38
Message: <44a78776$1@news.povray.org>
>>> I agree with Ross: to many veins (conjunctivitis?), and the black
>>> are too marked, but I'm curious to see the eyes in a face. Could
>>> you post a sample? Thank you,
>>> ;-)
>>
>> http://static.flickr.com/47/159938442_48a8c30802_o.jpg
>
> A beautiful eye:
>
> http://www.imageafter.com/dbase/images/nature_characters_humanparts/b1eye01.jpg
>
> That's the photo that I used to model the my macro from.

OK, well I think from that photo I see two improvements you could easily 
make...

1) The transition from the coloured bit to the white bit is smooth and there 
is no black ring like you have
2) Put something good to reflect in the eye!


Post a reply to this message

From: Artemia Salina
Subject: Re: YAEM (Yet Another Eye Macro)
Date: 2 Jul 2006 13:19:22
Message: <44a8001a@news.povray.org>
scott wrote:

>>http://www.imageafter.com/dbase/images/nature_characters_humanparts/b1eye01.jpg
>>
>>That's the photo that I used to model the my macro from.
> 
> 
> OK, well I think from that photo I see two improvements you could easily 
> make...
> 
> 1) The transition from the coloured bit to the white bit is smooth and there 
> is no black ring like you have

I wasn't sure how to handle the black ring. Some eyes have a very dark 
band around the perimeter of the iris, and some don't. I wanted this 
macro to be versatile enough to make different "types" of eyes. I'll 
just have to work on the texture some more. I was hoping to stay away 
from defining custom iris textures for each eye color, but it's looking
like I'll have to do that.

Concerning the whitish area in the photo I've gone as far as trying
to use a media filled iris (a torus) with the pigments being modeled 
similar to flames. Didn't work very well.

> 2) Put something good to reflect in the eye!

Attached is a very old scene I did using an earlier version of the eye 
macro.


Post a reply to this message


Attachments:
Download 'pinball3.jpg' (65 KB)

Preview of image 'pinball3.jpg'
pinball3.jpg


 

From: M a r c
Subject: Re: YAEM (Yet Another Eye Macro)
Date: 2 Jul 2006 14:29:55
Message: <44a810a3@news.povray.org>

44a8001a@news.povray.org...
> Attached is a very old scene I did using an earlier version of the eye
> macro.
>
LOL don't you prefer contact lenses Andrew ? ;-)

Marc


Post a reply to this message

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