POV-Ray : Newsgroups : povray.general : reflection color Server Time
4 Nov 2024 17:37:38 EST (-0500)
  reflection color (Message 1 to 4 of 4)  
From: Daniel Pirch
Subject: reflection color
Date: 9 Oct 1999 13:43:27
Message: <37ff7ebf@news.povray.org>
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

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


Post a reply to this message

From: Chris Huff
Subject: Re: reflection color
Date: 9 Oct 1999 13:58:33
Message: <37FF82C0.6B3CE867@compuserve.com>
WyzPov has a feature which does this, so does the Superpatch. It is
called metallic reflection.
WyzPov is here: http://www.worldaxes.com/paul_fam/wyzpov/INDEX.HTM
The Superpatch is here: http://www2.fwi.com/~parkerr/superpatch/


Post a reply to this message

From: Peter Popov
Subject: Re: reflection color
Date: 9 Oct 1999 17:07:31
Message: <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


Post a reply to this message

From: Daniel Pirch
Subject: Re: reflection color
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.