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?
From: William F Pokorny
Subject: Re: Possible to alter finishes with texture patterns?
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.
"tutki" <nomail@nomail> 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?
You have to define your checker pattern as a texture, and then provide a
_texture list_ that has all of the specifically defined texture/finish entries.
Usual:
pigment{ checker // 2 colors/textures
color White
color Black }
What you want:
texture {
checker
texture_1
texture_2
}
Try it with a simple sample scene and you'll see what I mean.
http://www.f-lohmueller.de/pov_tut/tex/tex_830e.htm
http://www.f-lohmueller.de/pov_tut/tex/tex_890e.htm
"Bald Eagle" <cre### [at] netscapenet> wrote:
[...]
> texture {> checker> texture_1> texture_2> }
[...]
Ahh, I didn't realize `checker` could be used with two textures. After some
tweaking I managed to do what I wanted. Thanks!