POV-Ray : Newsgroups : povray.unofficial.patches : pattern ideas Server Time
31 Oct 2024 20:37:22 EDT (-0400)
  pattern ideas (Message 1 to 7 of 7)  
From: ingo
Subject: pattern ideas
Date: 28 Oct 2003 13:58:36
Message: <Xns9422CB3635056seed7@netplex.aussie.org>
Two ideas for patterns.

In another tread Mael pointed me to this old thread:
http://news.povray.org/povray.binaries.programming/14477/ 

Somewhere along the discussion Ron Parker explains:
"You might find how the crackle function works interesting. [...]
What isn't so obvious on casual examination is that the centroids are
not really as random as they appear.  All of space is divided into
1x1x1 cubes, and each cube contains exactly one centroid.  The location
of each centroid is determined by the values of the Noise3D function at
some fixed point within its enclosing cube, allowing it to be
reproducibly calculated as needed." 

To understand this I started drawing. A box, a point, more boxes and
points. At a certain moment a made a circle around a point. Mmmm ...
that could give an interesting pattern. 

Use each centeroid as the center of a spherical gradient, the radius of
the gradient should be equal to the minimum distance from centeroid to
containing cube. 

Why only minimum distance? Because I couldn't figure out what the
gradient of two overlapping spherical gradient should look like ... but
then I remebered Chris' blob pattern. Now that could be a nice pattern_
modifier and you could also use the second minimum distance etc. 

pigment {
  random_leopard [RADIUS]
  [blob threshold]
  [PIGMENT_ITEMS ...]
}
RADIUS = 1 to 6 (default is 1 = minimum distance)

One use that come to mind, craters on asteroids.

... and why only use spherical, what about boxed or the object pattern?



A bit later Ron Parker also says:
"So, here is my thought:  Pick your seed points the same way crackle
picks its centroids [...] make the seed point draw a [...] line."

Lines. I realy would like to have a pattern that generates more or less
parallel lines with more or less random lengths and radi. 

An idea could be to use each centeroid as the starting point of a line
that takes of in the direction of a given vector. A second, optional,
vector could be used to add some randomness / turbulence to the
direction per line. 

The endpoint of the line could be determined by the amount of
containing cube boundaries it has crossed, this to add some
'uniformness' to the lengths. I've been drawing this, a one or two
boundary length looks boring, a three boundary length starts to look
very interesting. I.M.O total randomness does not work well here. Maybe
better even, specify a length in pov-units and give a standard
deviation. 

The last aspect is the diameter of the line, a 'line' being a non
infinite cylindrical pattern with a given radius (plus standard
deviation). 

pigment {
  lines <direction vector> <direction turbulence vector> <length,
  deviation> <radius, deviation>
 [PIGMENT_ITEMS ...]
}

An application, scratches.


Now I can only hope this is remotely possible and sombody is intersed
and willing to program these. My 'fear' is that somebody will pop up
and shows that it can be done now already with a hand full of simple
functions. 

Ingo


Post a reply to this message

From: Christopher James Huff
Subject: Re: pattern ideas
Date: 28 Oct 2003 21:36:25
Message: <cjameshuff-097641.21342828102003@netplex.aussie.org>
In article <Xns### [at] netplexaussieorg>,
 ingo <ing### [at] tagpovrayorg> wrote:

> Why only minimum distance? Because I couldn't figure out what the
> gradient of two overlapping spherical gradient should look like ... but
> then I remebered Chris' blob pattern. Now that could be a nice pattern_
> modifier and you could also use the second minimum distance etc. 

I don't know if you thought of this, but your message came very close to 
an old idea of mine...an extension to the blob pattern that works like 
the crackle pattern, using the blob components instead of pseudo-random 
points. I'm not really sure what you're thinking of here, but it seems 
to be the other way around...a blob pattern generated on the fly the 
same way the crackle pattern chooses its points.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: ingo
Subject: Re: pattern ideas
Date: 29 Oct 2003 04:23:12
Message: <Xns942369A92159seed7@netplex.aussie.org>
in news:cja### [at] netplexaussieorg Christopher 
James Huff wrote:

> I'm not really sure what you're thinking of here, but it seems 
> to be the other way around...a blob pattern generated on the fly the 
> same way the crackle pattern chooses its points.
> 

That's it yes, with the radius of the blob component determined by the 
(shortest) distance of the center of the component to the enclosing box.

Thinking of it, maybe it is useful to  makes these crackle centeroids 
available to the user through an internal function (f_centeroids()), 
although I have no clue how to use them ...

Ingo


Post a reply to this message

From: Shay
Subject: Re: pattern ideas
Date: 29 Oct 2003 10:13:26
Message: <3f9fd916$1@news.povray.org>
"ingo" <ing### [at] tagpovrayorg> wrote in message
news:Xns### [at] netplexaussieorg...
| Two ideas for patterns.
|

I had to try the crackle blob idea out. It looks very useful. I also
tried the scratches pattern. No fancy functions here, just real blobs
and cylinders. Top left is the crackle blob pattern with 5x radius. Top
right is the crackle blob pattern with 3.5 times radius.

http://www.simcoparts.com/pics/patterns.jpg

 -Shay


Post a reply to this message

From: Christopher James Huff
Subject: Re: pattern ideas
Date: 29 Oct 2003 14:57:21
Message: <cjameshuff-C90866.14524829102003@netplex.aussie.org>
In article <3f9fd916$1@news.povray.org>, "Shay" <sah### [at] simcopartscom> 
wrote:

> I had to try the crackle blob idea out. It looks very useful. I also
> tried the scratches pattern. No fancy functions here, just real blobs
> and cylinders. Top left is the crackle blob pattern with 5x radius. Top
> right is the crackle blob pattern with 3.5 times radius.

Looks a bit like paint splatters. The second, like scratches from a wire 
brush. Are they block patterns? I only see black and white, no shades of 
gray.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Shay
Subject: Re: pattern ideas
Date: 30 Oct 2003 09:42:00
Message: <3fa12338@news.povray.org>
"Christopher James Huff" <cja### [at] earthlinknet> wrote in message
news:cjameshuff-
|
| Are they block patterns?
| I only see black and white, no shades of
| gray.
|

I'm not sure what ingo had in mind, but what I posted is just white
blobs on a black background with ambient one. It was just a test to see
how the pattern might look.

 -Shay


Post a reply to this message

From: ingo
Subject: Re: pattern ideas
Date: 30 Oct 2003 13:13:39
Message: <Xns9424C397C6909seed7@netplex.aussie.org>
in news:3f9fd916$1@news.povray.org Shay wrote:

> I had to try the crackle blob idea out. It looks very useful. 

Posted a non-blobbed version of my initial idea plus a modification in:
Newsgroups: povray.binaries.images
Subject: pattern ideas
From: ingo <ing### [at] tagpovrayorg>
Message-ID: <Xns### [at] netplexaussieorg>
Date: 30 Oct 2003 13:08:42 -0500
Xref: news.povray.org povray.binaries.images:78319

> I also tried the scratches pattern.

Seeing it like this, it indeed looks like a very usefull pattern. Specialy 
when you imagine that the cylinders would also have a cylindrical 
gradient.

Thanks for the visualisations.

Ingo


Post a reply to this message

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