POV-Ray : Newsgroups : povray.beta-test : pigment_pattern checker problem Server Time
29 Jul 2024 06:27:26 EDT (-0400)
  pigment_pattern checker problem (Message 1 to 2 of 2)  
From: Bernd Michler
Subject: pigment_pattern checker problem
Date: 22 Jun 2002 15:28:17
Message: <3d14cfd1@news.povray.org>
Hello,

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?



#include "colors.inc"


  background{Yellow}
  camera {
    angle 15
    location <0,2,10>
    look_at <0,0,0>
  }
  light_source { <10, 20, -10> color White }
  light_source { <-10, 20, 10> color White }
  light_source { <10, -20, 10> color White }
  light_source { <10, 20, 10> color White }

  blob {
    threshold .65
    sphere { <.5,0,0>,.8, 1
     texture
     {


             pigment
              {
                pigment_pattern
                 {
                   checker White, Blue
                   scale 1
                   turbulence 20
                   translate <1,2,3> rotate x*45 scale 2
                 }

              }
     }
    }

    sphere { <-.5,0,0>,.8, 1
     texture
     {


             pigment
              {
                pigment_pattern
                 {
                   checker White, Blue
                   scale 1
                   turbulence 20
                   translate <1,2,3> rotate x*45 scale 2
                 }

              }
     }
    }

    finish { phong 1 }
  }


Post a reply to this message

From: ingo
Subject: Re: pigment_pattern checker problem
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.