POV-Ray : Newsgroups : povray.general : Can I get the coordinate? : Re: Can I get the coordinate? Server Time
29 Jul 2024 22:23:44 EDT (-0400)
  Re: Can I get the coordinate?  
From: And
Date: 13 Jul 2010 07:45:01
Message: <web.4c3c50f264f9355147ab14ad0@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:
> To place many tiles/boxes, you can easily use nested #while() loops
> Sample:
> union{ // place 1600 tiles
> #declare IndX = -20;
> #declare MaxX = 20;
> #declare MaxZ = 20;
> #while(IndX < MaxX)
>    #declare IndZ = -20;
>    #while(IndZ < MaxZ)
>     box{<0.45,0.02,0.45>,<-0.45,-0.1, -0.45> translate <IndX, 0, IndZ>}
>     #declare IndZ = IndZ + 1;
>    #end
>    #declare IndX = IndX +1;
> #end
> plane{y, 0 pigment{rgb 0.05}}// grout between the tiles
> pigment{rgb 1}
> }
>
> You can also use layered textures on a plane:
>
> texture{pigment{gradient z color_map{[0.1 rgb 0.05][0.1 rgb 1]}
> // white base with black stripes
> texture{pigment{gradient z color_map{[0.1 rgb 0.05][0.1 rgbt 1]}
> // second set of black stripes
> // The transparent part let the previous layer be visible
>
>
>
> Alain


Thanks.

http://picasaweb.google.com/lh/photo/Q1u7dkph2ARvTlo5LU3FNg?feat=directlink


Post a reply to this message

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