POV-Ray : Newsgroups : povray.general : Help! Eyelashes: Trace? : Re: Help! Eyelashes: Trace? Server Time
1 Aug 2024 12:22:02 EDT (-0400)
  Re: Help! Eyelashes: Trace?  
From: Chris B
Date: 14 Oct 2005 12:21:12
Message: <434fdaf8$1@news.povray.org>
"Nekar Xenos" <go_### [at] yahoocom> wrote in message 
news:web.434d698a93356c48602b380@news.povray.org...
>I am designing a character, mainly with blobs. I want to add eyelashes but 
>I
> have trouble determining where to put the lashes. I have a blob-sphere for
> the head with a blob-sphere for the eyelids. The eye opening is a squashed
> negative-strength blob-cylinder which I scale according to how far open 
> the
> eyes are. The eyelashes need to be at the edge where the eyelid and
> negative blob-cylinder meets. Does anyone know how I can determine this
> please?
>
> Regards
> Nekar Xenos
>

Hi Nekar,

I don't know of a simple way, though someone with a better feel for blobs 
may be able to tell you how to calculate where the boundary comes.

You're right that it can be done with Trace. There's probably loads of ways 
to approach it, but I would suggest identifying a series of start points 
that would form an arc a short distance outside an eyelid as you look down 
from above.
If you select a height that aligns with your negative strength cylinder, 
then it should be level with the opening. You could then send out a series 
of traces from each start point, scanning vertically to find the two 
intersection points closest to that start point (one above the horizontal, 
one  below).

I would then store the upper eye line positions in an array and the normals 
in a second array and use a loop to position eye lashes uniformly along the 
line. I've got SDL to do this last little bit (the easy bit) if you're 
interested.

Regards,
Chris B.


Post a reply to this message

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