POV-Ray : Newsgroups : povray.general : row of bricks : Re: row of bricks Server Time
28 Nov 2023 18:09:23 EST (-0500)
  Re: row of bricks  
From: Bald Eagle
Date: 17 Nov 2023 06:20:00
Message: <web.65574bd1b54d8b5a1f9dae3025979125@news.povray.org>
"David Kraics" <bar### [at] aolcom> wrote:
> I am wanting to create a line of 13 bricks, with obvious separation between
> them. However, I want make it with a single box. What would be the best code or
> texture to do this? At first I thought of an image_map but that is just for 2 of
> the six sides of a box.

I suppose you could do a texture pattern that evaluates mod (x,1) and then
select () for any value that is less than the unit brick length, everything else
being 0.
Then use that with a texture map which is part brick, and part clear.

Use scale <> to get your 13 bricks if necessary.

- BW

Post a reply to this message

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