POV-Ray : Newsgroups : povray.binaries.images : Pi are square : Pi are square Server Time
21 Jul 2024 12:41:40 EDT (-0400)
  Pi are square  
From: Bald Eagle
Date: 15 Mar 2023 16:00:00
Message: <web.64122388fe7e72e91f9dae3025979125@news.povray.org>
Like Hell, they are.

They're not even rectangular, and so aren't the least bit trivial to tesselate a
plane with.

I found a neat repeating pattern somewhere, and thought it would be a fun
pavement pattern.

So I took my Pythagorean pavement pattern that I had converted from Jerome
Grimbert's clever source code into SDL, and modified that to make my
much-expanded repeating unit.

It took me a good while to figure out how to identify the basic repeating unit,
then how to code that efficiently, and how to work the offset.  I had a few
wrong color vectors in my index which made things confusing, here was some hinky
stuff going on with my calculated index values, and so I had to dream up some
corrective functions using select() and mod() to get it to work right.


Post a reply to this message

Download 'tilingtest.png' (756 KB)

Preview of image 'tilingtest.png'


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