POV-Ray : Newsgroups : povray.binaries.images : pillars [45.7kb] : ?: pillars-code Server Time
16 Aug 2024 22:14:28 EDT (-0400)
  ?: pillars-code  
From: marabou
Date: 13 Dec 2001 09:22:56
Message: <3c18b9bf@news.povray.org>
the bricks are superellipsoids only.

#local counter_h = 0;
#local counter_w = 0;
#while (counter_h <= numberofstones_height)
        #while (counter_w <= numberofstones_width)
                superellipsoid { +yourflavour+ }
                translate <(counter_w*width_ofonestone),0,
                        (counter_h*height_ofstone)>
                #local counter_w = counter_w + 1;
        #end //while2
        #local counter_w = 0;
        #local counter_h = counter_h + 1;
#end //while1

this would build a floor for you.
if you wish to make it a wall you can rotate the field on the x-axis with 
"rotate x*90". or/and translate this field to a place where it fits best.

good luck.


Post a reply to this message

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