![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I had an idea for a hair generator a couple of days ago. It's probably been
done
before, but I had fun trying it out. The hair generator is given a vector
and an angle
and the hairs bend towards that vector by the specified angle
First pic is a simple blob, second shows the hair on a julia fractal.
Third pic shows the hair on the poser cat. For better realism, the cat could
be split into sections (head, body, legs, tail) and the hair applied to each
individually.
All render times are under 5 min.
Comments?
Gail
--
#macro G(H,S)disc{0z.4pigment{onion color_map{[0rgb<sin(H/pi)cos(S/pi)*(H<6)
cos(S/pi)*(H>6)>*18][.4rgb 0]}}translate<H-5S-3,9>}#end G(3,5)G(2,5.5)G(1,5)
G(.6,4)G(.5,3)G(.6,2)G(1,1)G(2,.5)G(3,.7)G(3.2,1.6)G(3.1,2.5)G(2.2,2.5)G(9,5
)G(8,5.5)G(7,5)G(7,4)G(7.7,3.3)G(8.3,2.7)G(9,2)G(9,1)G(8,.5)G(7,1)///GS
Post a reply to this message
Attachments:
Download 'HairBlob.jpg' (58 KB)
Download 'HairFractal.jpg' (25 KB)
Download 'HairCat.jpg' (24 KB)
Preview of image 'HairBlob.jpg'
![HairBlob.jpg](/povray.binaries.images/attachment/%3C3dac694b%40news.povray.org%3E/HairBlob.jpg?preview=1)
Preview of image 'HairFractal.jpg'
![HairFractal.jpg](/povray.binaries.images/attachment/%3C3dac694b%40news.povray.org%3E/HairFractal.jpg?preview=1)
Preview of image 'HairCat.jpg'
![HairCat.jpg](/povray.binaries.images/attachment/%3C3dac694b%40news.povray.org%3E/HairCat.jpg?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
It looks promising.
I tried the same some time ago but I gave up because
rendering time was too high when the number of hairs
reached more or less real numbers.
I also used eval_pigment function to assign different
colors.
Maybe there is no need (if you don't use reflections) to
create hair on the invisible side of the object. But that
will make the logic even more complicated ;)
Gena.
Gail Shaw wrote:
> I had an idea for a hair generator a couple of days ago. It's probably been
> done
> before, but I had fun trying it out. The hair generator is given a vector
> and an angle
> and the hairs bend towards that vector by the specified angle
>
> First pic is a simple blob, second shows the hair on a julia fractal.
> Third pic shows the hair on the poser cat. For better realism, the cat could
> be split into sections (head, body, legs, tail) and the hair applied to each
> individually.
>
> All render times are under 5 min.
>
> Comments?
>
> Gail
> --
> #macro G(H,S)disc{0z.4pigment{onion color_map{[0rgb<sin(H/pi)cos(S/pi)*(H<6)
> cos(S/pi)*(H>6)>*18][.4rgb 0]}}translate<H-5S-3,9>}#end G(3,5)G(2,5.5)G(1,5)
> G(.6,4)G(.5,3)G(.6,2)G(1,1)G(2,.5)G(3,.7)G(3.2,1.6)G(3.1,2.5)G(2.2,2.5)G(9,5
> )G(8,5.5)G(7,5)G(7,4)G(7.7,3.3)G(8.3,2.7)G(9,2)G(9,1)G(8,.5)G(7,1)///GS
>
> [Image]
>
> [Image]
>
> [Image]
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
While working on POV-Ray "filters" I found another
idea for hair - to use cylinder blobs which are perpendicular
to the surface normal. In this case you will get more smooth
surface with just relief of hair instead of separate hair.
Gena.
Gail Shaw wrote:
> I had an idea for a hair generator a couple of days ago. It's probably been
> done
> before, but I had fun trying it out. The hair generator is given a vector
> and an angle
> and the hairs bend towards that vector by the specified angle
>
> First pic is a simple blob, second shows the hair on a julia fractal.
> Third pic shows the hair on the poser cat. For better realism, the cat could
> be split into sections (head, body, legs, tail) and the hair applied to each
> individually.
>
> All render times are under 5 min.
>
> Comments?
>
> Gail
> --
> #macro G(H,S)disc{0z.4pigment{onion color_map{[0rgb<sin(H/pi)cos(S/pi)*(H<6)
> cos(S/pi)*(H>6)>*18][.4rgb 0]}}translate<H-5S-3,9>}#end G(3,5)G(2,5.5)G(1,5)
> G(.6,4)G(.5,3)G(.6,2)G(1,1)G(2,.5)G(3,.7)G(3.2,1.6)G(3.1,2.5)G(2.2,2.5)G(9,5
> )G(8,5.5)G(7,5)G(7,4)G(7.7,3.3)G(8.3,2.7)G(9,2)G(9,1)G(8,.5)G(7,1)///GS
>
> [Image]
>
> [Image]
>
> [Image]
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Gail Shaw" <gai### [at] mweb co za> wrote in
news:3dac694b@news.povray.org:
> Comments?
Interesting!
--
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Sir Charles W Shults III
Subject: Re: Hair generator (3 files total 110kbu)
Date: 15 Oct 2002 22:25:03
Message: <3daccdff$3@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Fascinating, and I am glad that is not my cat.
Cheers!
Chip Shults
My robotics, space and CGI web page - http://home.cfl.rr.com/aichip
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Jim Charter
Subject: Re: Hair generator (3 files total 110kbu)
Date: 16 Oct 2002 00:50:27
Message: <3DACF069.4070505@aol.com>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Very interesting! Most hair generators require mesh!
>
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Rick [Kitty5]
Subject: Re: Hair generator (3 files total 110kbu)
Date: 16 Oct 2002 05:20:01
Message: <3dad2f41@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hairy Fractals Batman!
--
Rick
Kitty5 NewMedia http://Kitty5.co.uk
POV-Ray News & Resources http://Povray.co.uk
TEL : +44 (01270) 501101 - FAX : +44 (01270) 251105 - ICQ : 15776037
PGP Public Key
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x231E1CEA
---
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.401 / Virus Database: 226 - Release Date: 09/10/2002
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Andrew Coppin
Subject: Re: Hair generator (3 files total 110kbu)
Date: 16 Oct 2002 07:52:57
Message: <3dad5319@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Very nice work! The blob looks good, the fractal looks strangely disturbing
(like some kinda alien sea creature - maybe a shellfish), and the cat
looks... well... odd.
I wonder what else you could fir up? ;-)
Andrew.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Unusual. Poor kitty cat needs a vet's attention though :-)
That fractal is neat, makes me think of microbes or other strange creatures.
I didn't realize it at first but the directional hairs of the blob make me
think of wind. Wonder if it could be animated to look like air were blowing
across it. Would need a certain order of placement for that I guess, each
angle adjusted as the hair objects are placed along an axis.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Marc Champagne <nos### [at] please com> wrote in news:Xns92A8C5CFD6979POVMIKA@
204.213.191.226:
> "Gail Shaw" <gai### [at] mweb co za> wrote in
> news:3dac694b@news.povray.org:
>
>> Comments?
>
> Interesting!
>
>
Heu, Andrew, is that you?
--
-+======================+-
bad### [at] hotmail DOT com
-+======================+-
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |