|
![](/i/fill.gif) |
good idea, thank you peter.
Peter Popov <pet### [at] usa net> wrote in message
news:G6v=N0mrnENsq=M2KRer62v63=Oz@4ax.com...
> On Sat, 9 Oct 1999 19:39:04 +0200, "Daniel Pirch" <dpi### [at] gmx net>
> 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] gmx net
Post a reply to this message
|
![](/i/fill.gif) |