POV-Ray : Newsgroups : povray.binaries.images : hexagonal patterns (200kb jpg) Server Time
4 Nov 2024 20:17:19 EST (-0500)
  hexagonal patterns (200kb jpg) (Message 1 to 7 of 7)  
From: stbenge
Subject: hexagonal patterns (200kb jpg)
Date: 2 May 2008 02:50:46
Message: <481ab9c6@news.povray.org>
Hi everyone,

Nothing universe-splitting here, just some patterns I've been working 
on. Sometimes I'd like to have an hexagonal version of the cells 
pattern(#1), or a triangular version of the hexagon pattern(#6 & 7). 
I've been developing such things and putting them all into an include file.

Two of these patterns(#3 & 4) are customizable via an optional 
declaration of an input pigment. The default is a z-gradient with a 
triangle_wave modifier. You can see it outlined by the hexagonal 
overlay. Any pigment can be used, and it will be repeated inside the 
hexagons with the option of having random 60 degree rotation(#1 only).

The rest of the patterns can be given a pigment_map, but I didn't not 
implement further customization options. I did however, make available 
two useful variables to translate and scale pigments according to the 
edges and corners of each hexagon. A lot can already be accomplished 
with this suite of patterns.

Next up: a trigonal version of the cells pattern and the ability to use 
all the patterns in any material block (pigment, normal, texture) 
without having to rely on pigment_pattern{}.

Is this something any of you would like to have a copy of? Questions, 
comments and criticisms are welcome, as always~

Sam


Post a reply to this message


Attachments:
Download 'hexpattern_test.jpg' (200 KB)

Preview of image 'hexpattern_test.jpg'
hexpattern_test.jpg


 

From: Kenneth
Subject: Re: hexagonal patterns (200kb jpg)
Date: 2 May 2008 08:25:00
Message: <web.481b07379dc28a7e78dcad930@news.povray.org>
stbenge <stb### [at] hotmailcom> wrote:
>
> Is this something any of you would like to have a copy of? Questions,
> comments and criticisms are welcome, as always~
>

Yes indeed.  I see all sorts of interesting uses for this.

BTW, that's a nice visual demonstration of the technique; very clear.

Ken W.


Post a reply to this message

From: stbenge
Subject: Re: hexagonal patterns (20kb png)
Date: 2 May 2008 19:23:07
Message: <481ba25b@news.povray.org>
Kenneth wrote:
> stbenge <stb### [at] hotmailcom> wrote:
>> Is this something any of you would like to have a copy of?
> 
> Yes indeed.  I see all sorts of interesting uses for this.

Alright then, I'll aim to release the include file shortly, after 
implementing a few more things.

> BTW, that's a nice visual demonstration of the technique; very clear.

Thanks, it was easier than explaining it all with words :)

Attached is a picture to show how making tessellating patterns with an 
object pigment is possible with my hexPattern() macro. I created a 
simple macro which allows one to navigate trigonal space. The screen 
overlay shows this space, which is just a square grid skewed to 60 
degrees. The shape was designed in Illustrator (paper would work just as 
well), and I typed out the coordinates in POV. It's a prism with 29 
points, rotated three times by 120 degrees.

Sam


Post a reply to this message


Attachments:
Download 'hextest2.png' (17 KB)

Preview of image 'hextest2.png'
hextest2.png


 

From: William Tracy
Subject: Re: hexagonal patterns (200kb jpg)
Date: 3 May 2008 14:27:03
Message: <481cae77@news.povray.org>
Wow, that's ingenious.

-- 
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

And the Format source code tells me that *really* the indicator of an 
error is whether the index has changed value or not. If it has *not* 
changed value, then some of the Format class' innards assume that since 
parsing didn't happen, an error must have occurred. (Pause for 
Buddhist-like contemplation of this leap of logic and faith.)
     -- Laird Nelson, blogging on the "dank recesses" of java.text


Post a reply to this message

From: Janet
Subject: Re: hexagonal patterns (200kb jpg)
Date: 6 May 2008 16:10:00
Message: <web.4820ba209dc28a7e112091620@news.povray.org>
stbenge <stb### [at] hotmailcom> wrote:
> Is this something any of you would like to have a copy of? Questions,
> comments and criticisms are welcome, as always~
>
> Sam

I would like to have a copy of it. It looks great to me.

~Janet


Post a reply to this message

From: stbenge
Subject: Re: hexagonal patterns (200kb jpg)
Date: 6 May 2008 21:56:27
Message: <48210c4b$1@news.povray.org>
William Tracy wrote:
> Wow, that's ingenious.

Not really... bu thanks :)

Sam


Post a reply to this message

From: stbenge
Subject: Re: hexagonal patterns (200kb jpg)
Date: 6 May 2008 21:57:49
Message: <48210c9d@news.povray.org>
Janet wrote:
> stbenge <stb### [at] hotmailcom> wrote:
>> Is this something any of you would like to have a copy of? Questions,
>> comments and criticisms are welcome, as always~
>>
>> Sam
> 
> I would like to have a copy of it. It looks great to me.
> 
> ~Janet

Thanks. I'm going to sit on the code a little longer, just in case I 
discover some error. I'll make an announcement here when I release it.

Sam


Post a reply to this message

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