POV-Ray : Newsgroups : povray.general : Possible to alter finishes with texture patterns? : Re: Possible to alter finishes with texture patterns? Server Time
23 Apr 2024 19:50:40 EDT (-0400)
  Re: Possible to alter finishes with texture patterns?  
From: William F Pokorny
Date: 7 Feb 2022 13:42:26
Message: <62016812$1@news.povray.org>
On 2/7/22 11:31, tutki wrote:
> Currently I have a layered texture that uses the `checker` pattern in the top
> layer to alternate between a flat metal color and patches of `cells` patterns
> (basically using a transparent color in the checker layer where the cells show
> through). I want the metal part to have a metallic finish with specular
> component, but the cells part non-metallic. But I can't figure out how to make
> the metallic finish apply only to the metallic part of the checker pattern;
> adding the finish block makes the entire texture metallic, which is not
> intended.
> 
> How do I make it so that the metallic finish only applies to half of the checker
> pattern?
> 

I'm unsure if I understand your issue. My up front answer would be to 
specify a finish block in both textures used in the checker based texture.

#declare T0 = texture { pigment { rgb 0 } finish { reflection { 1 } } }
#declare T1 = texture { pigment { rgb 0 } finish { reflection { 0 } } }
#declare Obj00 = object {
     Plane00
     texture { checker
       //texture { pigment { rgb 0 } finish { reflection { 1 } } }
       //texture { pigment { rgb 0 } finish { reflection { 0 } } }
         texture { T0 }
         texture { T1 }
     }
}

Bill P.


Post a reply to this message

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