POV-Ray : Newsgroups : povray.binaries.images : Voronoi mosaiac - mosaiac.jpg (1/1) Server Time
14 Nov 2024 14:17:00 EST (-0500)
  Voronoi mosaiac - mosaiac.jpg (1/1) (Message 1 to 5 of 5)  
From: Christopher James Huff
Subject: Voronoi mosaiac - mosaiac.jpg (1/1)
Date: 26 Dec 2003 17:55:27
Message: <cjameshuff-88F0A8.17552326122003@netplex.aussie.org>
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


 

From: Ryan Bennitt
Subject: Re: Voronoi mosaiac - mosaiac.jpg (1/1)
Date: 28 Dec 2003 09:48:09
Message: <3feeed29$1@news.povray.org>
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

From: Florian Brucker
Subject: Re: Voronoi mosaiac - mosaiac.jpg (1/1)
Date: 28 Dec 2003 10:20:38
Message: <3feef4c6@news.povray.org>
> 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

From: Christopher James Huff
Subject: Re: Voronoi mosaiac - mosaiac.jpg (1/1)
Date: 28 Dec 2003 10:49:25
Message: <cjameshuff-70E1D0.10492828122003@netplex.aussie.org>
In article <3feeed29$1@news.povray.org>,
 "Ryan Bennitt" <rya### [at] lycoscouk> 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] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

From: Ryan Bennitt
Subject: Re: Voronoi mosaiac - mosaiac.jpg (1/1)
Date: 28 Dec 2003 13:38:15
Message: <3fef2317@news.povray.org>
> 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

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