POV-Ray : Newsgroups : povray.binaries.images : Interesting radial pattern Server Time
5 Nov 2024 16:42:15 EST (-0500)
  Interesting radial pattern (Message 1 to 4 of 4)  
From: Bald Eagle
Subject: Interesting radial pattern
Date: 4 Sep 2023 18:20:00
Message: <web.64f657b1e70e474b1f9dae3025979125@news.povray.org>
I was off coding some experimental patterns, and came across this one by
accident.

This looke dlike one of those things that one would probably look for, and maybe
ought be in the distribution.

#version 3.8;
global_settings {assumed_gamma 1.0}
default {finish {diffuse 1}}

//#include "functions.inc"

camera {
 location <0, 0, -20>
 right     x*image_width/image_height
 up y
 look_at <0, 0, 0>

}

light_source {<0,  0, -50> rgb 1.0}
sky_sphere {pigment {rgb 1}}

#declare fmod = function (T) {select (T, 1-mod(abs(T),1), mod(abs(T),1))}
#declare AngFreq = 7;
#declare Ang = function {atan2 (x, y)/(tau/AngFreq)}
#declare Ang2 = function {fmod (Ang(x, y, z))}
#declare Rad = function {sqrt (x*x+y*y)}

#declare Mixed = function {Rad (x,y,z) * Ang2(x,y,z)}

plane {z, 0 pigment {function {Mixed(x, y, z)} } }


Post a reply to this message


Attachments:
Download 'coolradialpattern1.png' (172 KB)

Preview of image 'coolradialpattern1.png'
coolradialpattern1.png


 

From: And
Subject: Re: Interesting radial pattern
Date: 12 Sep 2023 10:50:00
Message: <web.65007a6d53ff64f663eb3dfdaa81652d@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> I was off coding some experimental patterns, and came across this one by
> accident.
>
> This looke dlike one of those things that one would probably look for, and maybe
> ought be in the distribution.
>
> #version 3.8;
> global_settings {assumed_gamma 1.0}
> default {finish {diffuse 1}}
>
> //#include "functions.inc"
>
> camera {
>  location <0, 0, -20>
>  right     x*image_width/image_height
>  up y
>  look_at <0, 0, 0>
>
> }
>
> light_source {<0,  0, -50> rgb 1.0}
> sky_sphere {pigment {rgb 1}}
>
> #declare fmod = function (T) {select (T, 1-mod(abs(T),1), mod(abs(T),1))}
> #declare AngFreq = 7;
> #declare Ang = function {atan2 (x, y)/(tau/AngFreq)}
> #declare Ang2 = function {fmod (Ang(x, y, z))}
> #declare Rad = function {sqrt (x*x+y*y)}
>
> #declare Mixed = function {Rad (x,y,z) * Ang2(x,y,z)}
>
> plane {z, 0 pigment {function {Mixed(x, y, z)} } }

if you can explain why it seems that way?


Post a reply to this message

From: Bald Eagle
Subject: Re: Interesting radial pattern
Date: 12 Sep 2023 21:40:00
Message: <web.650111e653ff64f61f9dae3025979125@news.povray.org>
"And" <49341109@ntnu.edu.tw> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> > I was off coding some experimental patterns, and came across this one by
> > accident.
> >
> > This looked like one of those things that one would probably look for, and maybe
ought be in the distribution.

> if you can explain why it seems that way?

Why the pattern looks that way, or why it seems like it should be in the
distribution?

I would have to spend more time experimenting with the equations to explain why
the pattern is formed the way it is, but I felt it would be a useful pattern for
filling in grids - square grids, hexagonal grids, etc.

Likely if the pattern were modified and animated, one could perhaps get some
interesting visual effects.

It would be great to find a pre-existing library of such composite functions,
and then we could see if any more closely fit your needs for the tree-ring
pattern.

- BW


Post a reply to this message

From: William F Pokorny
Subject: Re: Interesting radial pattern
Date: 13 Sep 2023 08:51:44
Message: <6501b060$1@news.povray.org>
On 9/4/23 18:18, Bald Eagle wrote:
> I was off coding some experimental patterns, and came across this one by
> accident.
> 
> This looked like one of those things that one would probably look for, and maybe
> ought be in the distribution.

Neat! :-) Changing AngFreq from 7 to 9 and making use of the povr fork's 
raw_wave keyword.

...
plane {z, 0
     pigment {
         function {Mixed(x, y, z) } raw_wave
         color_map {
             [0       rgb 0 ]
             [AngFreq rgb 1 ]
         }
     }
}
...

Bill P.


Post a reply to this message


Attachments:
Download 'be.png' (73 KB)

Preview of image 'be.png'
be.png


 

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