POV-Ray : Newsgroups : povray.newusers : Checker board of Checkers : Re: Checker board of Checkers Server Time
29 Jul 2024 14:17:55 EDT (-0400)
  Re: Checker board of Checkers  
From: Florian Brucker
Date: 14 Sep 2005 02:38:50
Message: <4327c57a$1@news.povray.org>
Bob Armstrong wrote:
>  Playing with variations on this form , I guess there are
>  issues of syntax and allowed elisions that I don't understand
>  yet . When
> 
>   plane { z , 5
>    pigment { checker
>     < .6 , 1 , .6 > ,
>     < 1 , .6 , 1 >  }
>    }
> 
>  works , I don't see why
> 
>   plane { z , 5
>    pigment { checker
>     pigment { checker rgb 1 rgb  0 scale 1/12 } ,
>    < 1 , .6 , 1 >  }
>   }
> 
>  doesn't . I would naively expect a principle of substitution .

checker does either take two colors (as in your first example), or two 
pigments. Your second example is one full pigment and one color, but 
that's not valid. You can replace the color with a full pigment 
statement and it should work:

plane { z , 5
   pigment {
     checker
     pigment { checker rgb 1 rgb  0 scale 1/12 },
     pigment { rgb < 1 , .6 , 1 >  }
}


HTH,
Florian


Post a reply to this message

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