POV-Ray : Newsgroups : povray.general : reflection color : Re: reflection color Server Time
10 Aug 2024 23:28:14 EDT (-0400)
  Re: reflection color  
From: Daniel Pirch
Date: 10 Oct 1999 04:27:12
Message: <38004de0@news.povray.org>
good idea, thank you peter.

Peter Popov <pet### [at] usanet> wrote in message
news:G6v=N0mrnENsq=M2KRer62v63=Oz@4ax.com...
> On Sat, 9 Oct 1999 19:39:04 +0200, "Daniel Pirch" <dpi### [at] gmxnet>
> wrote:
>
> >hi group,
> >I have the following problem:
> >The reflection statement causes all light colors to be reflected on a
> >surface. But shouldn't metallic surfaces only reflect one color? I can do
> >this with a color vector like  reflection <.4,0,0> or reflection Red*.4
.
> >But what if the pigment isn't a only single color but a texture pattern?
Is
> >there a way to use the pigment color as reflection color too?
> >
> >tia, Daniel
>
> Aside from using wyzpov or the SuperPatch, you can try to fake it
> using a texture map. The idea is to blend between the two textures
> having the same pigment but different finished, and the texture_map
> pattern must be the same as that of the pigment. For example:
>
> #declare B = pigment { bozo color_map { {[0 Red][1 Blue]} } }
>
> #declare MetallicBozo=
> texture
> {
>   bozo
>   texture_map
>   {
>     [0 pigment { B } finish { reflection Red }]
>     [1 pigment { B } finish { reflection Blue}]
>   }
> }
>
> You might need to declare the textures used in the texture map body
> before you use them, but that's a cosmetic fix.
>
>
> Peter Popov
> ICQ: 15002700

--
Daniel Pirch
dpi### [at] gmxnet


Post a reply to this message

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