POV-Ray : Newsgroups : povray.general : This Human Hair Tutorial : Re: This Human Hair Tutorial Server Time
8 Sep 2024 14:09:22 EDT (-0400)
  Re: This Human Hair Tutorial  
From: ShiJie
Date: 18 Nov 2004 12:30:00
Message: <web.419cdb8ab36d504174727610@news.povray.org>
Thanks for your help! I wrote a pov with this code

#declare HairTex = texture {
  pigment_pattern {image_map {jpeg "Hair-Opa.jpg" interpolate 2}}
  texture_map {
     [0 pigment {rgbt <0,0,0,1>}]
     [1 pigment {image_map {jpeg "Hair.jpg" interpolate 2 }}]
  }
}


#declare strands =
intersection {
    sphere { <0, 0, 0> 1 }
    sphere { <0, 0, 0> .99 inverse}
    box{ <-1.5, 0, 1.5> < 1.5,  1.5, -1.5> rotate x*-10}
    box{ <-1.5, 0, 1.5> < 1.5, -1.5, -1.5> rotate x*10}
    plane{x, 0}
   rotate z*90
   //scale .5
   }
object {strands texture{HairTex} scale 2 translate y*2 }

and it looked like this
http://www.fmi.uni-passau.de/~capco/temp.jpg

(I didn't render it with anti-alias and good resolution, but it looks fine)

I didn't get to make it a little more shinier (I guess that's where the
specularity map comes to play.. ). I don't exactly know how this is done, I
can't call a "finish" in the texture if I already have a texture_map. Any
advises? Thanks again. The hair is perfect for the character I am about to
finish I just have to produce copy of the strands around the scalp and I
have a nice hair and I can even make styles out of it.


Sincerely,
Jose Capco


Post a reply to this message

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