POV-Ray : Newsgroups : povray.newusers : creating tiles : Re: creating tiles Server Time
29 Jul 2024 06:25:46 EDT (-0400)
  Re: creating tiles  
From: Günther Dietrich
Date: 18 Jun 2006 09:05:13
Message: <7fi37e.m1g.ln@520042650687.t-online.de>
"tommy thompson" <nomail@nomail> wrote:

> success ;-)

Thanks for the feedback.


> It works well I can change the surface to look like glazed ceramic, I now
>need to repeat the pattern.
>Will go and read some more instuctions.

You might try something like this:


// Floor with tiles
union
{
    // tiles
    #declare stepwidth = 0.15   // gives a tile grid of 0.15m x 0.15m
    #declare x_ = -1.2
    #while (x_ <= 1.2)
        #declare z_ = -2.55
        #while (z_ <= 2.55)
            superellipsoid
            {
                <0.1, 0.1>
                scale <0.073, 0.004, 0.073>
                pigment
                {
                    White_Marble
                    scale 0.12
                    // create a bit of 'randomness' for the tile patterns
                    translate <-x_, z_, 0>
                }
                finish
                {
                    phong 1
                    phong_size 50
                    reflection .35
                }
                translate <x_, 0, z_>
            }
            #declare z_ = z_ + stepwidth
        #end
        #declare x_ = x_ + stepwidth
    #end
    // Joint compound to fill the gaps between the tiles
    box
    {
        <-1.175, 0, -2.55>, <1.175, 0.0035, 2.55>
        pigment
        {
            Silver * 0.8
        } 
    }
}

Units are meters, the floor space is 2.35m x 5.10m (bathroom in a real 
existing old building).



Best regards,



Post a reply to this message

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