![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
This was actually fairly simple to do. I generated a bunch of points in
an array, and used an image_map pigment function to extract the colors
at each point and save them as colors in a color_map. Then, for the
voronoi pattern, I just used the points with their respective color_map
indices, basically using the color map as the palette of an indexed
color image.
Oh, and there's 5000 points in this image. With all 5000 entries in one
color_map. Some of you might notice something interesting about that...
I needed to store a lot of colors, but didn't want to go through the
trouble of building nested color_maps or trying to reduce the number of
colors used, so I patched POV to remove the size limits on blend maps.
;-)
Post a reply to this message
Attachments:
Download 'mosaiac.jpg' (17 KB)
Preview of image 'mosaiac.jpg'
![mosaiac.jpg](/povray.binaries.images/attachment/%3Ccjameshuff-88F0A8.17552326122003%40netplex.aussie.org%3E/mosaiac.jpg?ttop=427364&toff=6450&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Nice work. I love the way you talk so casually about patching pov when it
doesn't do what you want from it :)
Ryan
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Florian Brucker
Subject: Re: Voronoi mosaiac - mosaiac.jpg (1/1)
Date: 28 Dec 2003 10:20:38
Message: <3feef4c6@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> Nice work. I love the way you talk so casually about patching pov when it
> doesn't do what you want from it :)
I thought exactly the same :)
Florian
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3feeed29$1@news.povray.org>,
"Ryan Bennitt" <rya### [at] lycos co uk> wrote:
> Nice work. I love the way you talk so casually about patching pov when it
> doesn't do what you want from it :)
Hey, all you need is the source code, a compiler, and a bit of C/C++
knowledge...the hard part's usually figuring out what to do. Like my
object pattern and transform patch...both really simple, adding a large
amount of functionality, but nobody had ever thought of adding them
before. My recent blend map extensions also fit in this category...they
involve modifying a few lines in one file and changing a function in
another, and should greatly speed up complex textures with big blend
maps. Should have been done a long time ago...but I only did it after I
noticed a big slowdown that I knew wasn't due to the pattern I was
testing.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tag povray org>
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Ryan Bennitt
Subject: Re: Voronoi mosaiac - mosaiac.jpg (1/1)
Date: 28 Dec 2003 13:38:15
Message: <3fef2317@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> Hey, all you need is the source code, a compiler, and a bit of C/C++
> knowledge...the hard part's usually figuring out what to do.
Yeah, the only thing stopping me is that I have no idea where to begin looking
at the POV-Ray source code...
Ryan
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |