POV-Ray : Newsgroups : povray.binaries.images : Texture map not handling finishes properly? : Re: Texture map not handling finishes properly? Server Time
7 Nov 2024 17:27:43 EST (-0500)
  Re: Texture map not handling finishes properly?  
From: Jeremy M  Praay
Date: 2 Jul 2004 22:54:02
Message: <40e61fca$1@news.povray.org>
"Greg M. Johnson" <gregj;-)565### [at] aolcom> wrote in message
news:40e61ba0@news.povray.org...
> I have a character where the head gets a "skintext" skin texture.  The
neck
> gets a gradient y pattern, which is supposed to demarcate between a black
> ring at the bottom (end of costume) and the start of the exposed flesh.
>
> Note how the finish is "wrong" over the exposed neck.
>
> Am I doing something wrong or this this a problem?
>
>
> // relevant code pasted
>
> #declare masktext=texture{pigment {rgb 0.1} finish {phong 2}}
>
> #declare skintext= texture{
>                         pigment{skinpig}
>                         finish{ambient skin_amb  diffuse 0.69  specular
0.1
> roughness 0.5  phong 0.1 phong_size 7 metallic 1 }
>                         normal{granite 0.07 scale 0.1}
>                                 }
>
> #declare necktext=texture{
>         gradient y
>         texture_map{
>                 [0.5 skintext scale 1/40]
>                 [0.5 masktext scale 1/40]
>                 }
>         scale 40        translate 2*y
>
>         }
>

Perhaps I'm way off the mark, but generally I would say something like:

                [0.50000 skintext scale 1/40]
                [0.50001 masktext scale 1/40]

I'm not sure if that helps at all.


-- 
Jeremy
www.beantoad.com


Post a reply to this message

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