POV-Ray : Newsgroups : povray.tools.poser : Dynamic Hair and PoseRay : Re: Dynamic Hair and PoseRay Server Time
3 Dec 2022 22:07:34 EST (-0500)
  Re: Dynamic Hair and PoseRay  
From: Thomas de Groot
Date: 11 Nov 2011 03:21:37
Message: <4ebcdb11$1@news.povray.org>
On 10-11-2011 19:59, TawnyOwl wrote:
> Hm, hm, hm,
>
> I didn't like to correct you, but the tubes are uv-mapped which allowed for my
> cheap trick. I used the "sausages" by intention and created a very simple
> texture with my favorite graphics software:

Oops! Now, why did I think the tubes were not uv-mapped?!? [bangs head 
against the screen]

That means one can also use trans maps!

>
> #include "colors.inc"
>
> camera{
>     orthographic
>     location<0,0,-1000>
>     look_at<0,0,0>
>
>     right 1024*x
>     up 1024*y
> }
> light_source {<0,0,-1000>, color White }
>
> box {<-1024,-100,-1>,<1024,50,1>  rotate<0,0,-45>  translate<0,512,0>  pigment {
> color Red } }
> box {<-1024,-100,-1>,<1024,50,1>  rotate<0,0,-45>  translate<0,-512,0>  pigment
> { color Red } }
>
> I saved it as a GIF (teststraehne.gif) and used the following texture for the
> tubes:
>
> #declare tube_material1_=
> material{
> texture{ uv_mapping pigment { image_map { gif "teststraehne.gif" transmit 0,1  }
> scale<1,1/16,1>}
>          finish{specular 0 roughness 0.09632328 ambient rgb<0.00,0.00,0.00>
> diffuse 0.6   reflection{0 } conserve_energy}}
> }
>

Thanks! I'll check this out.

Thomas


Post a reply to this message

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