POV-Ray : Newsgroups : povray.beta-test : pigment_pattern checker problem : Re: pigment_pattern checker problem Server Time
29 Jul 2024 08:13:31 EDT (-0400)
  Re: pigment_pattern checker problem  
From: ingo
Date: 22 Jun 2002 15:59:49
Message: <Xns9235E05677166seed7@povray.org>
in news:3d14cfd1@news.povray.org Bernd Michler wrote:

> I rendert this, but is not blue with white. Its black with white (
> checker White, Blue ), is it a bug in version 3.5 RC6 or is it my
> problem? 
> 

With pigment_pattern you are creating a "new" pattern. The resulting 
pattern is always grayscale, so to get color in you'll have to add it to 
the pigment in form of a color_map.

sphere {
  <0,0,0>,1
  texture {
    pigment {
      pigment_pattern {
        checker rgb 1, rgb <1,0,0>
        scale 0.2
      }
      /*color_map {
        [0, rgb <1,0,0>]
        [1, rgb <0,0,1>]
      }*/
    }
  }
}

Ingo


Post a reply to this message

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