|
|
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
|
|