Is it possible to create such Voronoi diagram?

15 views
Skip to first unread message

Genc

unread,
Jun 25, 2021, 4:21:26 PM6/25/21
to FilterMeister Mailing List (FMML)
Hello,
I am trying to create a Voronoi diagram like in the link posted below for you to see what I mean. Is it possible to do it with some math example please?

The example picture:

Thank you

Roberto

unread,
Jun 25, 2021, 5:36:00 PM6/25/21
to filter...@googlegroups.com
Hi noname,

The image you linked to looks more like a result of combining (perlin?) noise effects rather than a real Voronoi diagram.

A Voronoi diagram is created with pure math. In FilterMeister you have full control over all image pixels: you can apply as much exact math to image pixels as you like.

If you are really looking for ways to create images -like- the image you showed and there is no need for control of individual image pixels then using FilterForge is definitely a quicker and easier option.

See attached an example of a FilterForge filter that simulates the image you showed (too close! did you get this image from the FilterForge library or so??). Note the many nodes and modules the filter uses: cloning this effect from scratch in FilterMeister would involve a lot of code. Not to mention the additional time it takes to get familiar with FilterMeister programming.

Cheers,
Roberto

Op Fri, 25 Jun 2021 22:21:26 +0200 schreef Genc <gog...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "FilterMeister Mailing List (FMML)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to filtermeiste...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/filtermeister/6b0607f7-f828-441b-8cb7-ee51ed3cd57an%40googlegroups.com.



--
Gemaakt met Opera's e-mailprogramma: http://www.opera.com/mail/
Filterforge-Voronoi.jpg

Genc

unread,
Jun 26, 2021, 7:42:09 AM6/26/21
to FilterMeister Mailing List (FMML)
It is actually a cells noise, not a Voronoi diagram(my bad). The picture is made in Photoshop with gradient radials with lighten blending mode. So, I guess it is possible to create it, and then multiply and random positioning it with loop iterations. I guess grad2D() and blend() functions can be used to make this happen. The plugin only works on 8bit, and not on 16bit channel mode, right?

Regards,
Ognen

Roberto

unread,
Jun 27, 2021, 5:38:11 AM6/27/21
to filter...@googlegroups.com
Hi Ognen,

Amazing! Tried your 'image recipe' and was surprised with the result from 'just combining some gradients' (see attached) :-P
Looks a lot like this FilterForge filter.

FilterMeister itself is a 32b plugin but it can be used to compile both 32b as well as 64b plugins.
The FilterMeister 'language' is C-based; C-language can be used in your code. The specific 'FilterMeister' language commands, controls, etc. all were designed for 8-bit images. However, in time more and more was added particularly aimed at 16b images

Loads of plugins out there were created with FilterMeister. Many of them support 16b images so it depends on the author.
Check out www.filtermeister.com - Documents - FilterMeister Wiki
The Wiki is up-to-date

Check out www.filtermeister.com - Download
The Reference Manuals are also recent; they are based on the Wiki

There are two options for downloading FilterMeister:
• Old full package: it includes the latest (read: old) stable release of FilterMeister, documents, example code, etc.
• FilterMeister 32b & 64b: a newer (less tested) release of FilterMeister only; it allows to create 32b as well as 64b plugins
Ideal is to have it all: first install the old package followed by the second and simply replace the old FilterMeister plugin by the newer one.

Probably everything else on the website is old.

I can not give you example code as I'm not into programming. FilterMeister always has been lacking documentation to get started. You have to do with the available (partly outdated) documentation and example codes from the code library and Wiki and hopefully some support from the members of this list but this list has become much more silent than it used to be 'back in the days'.
Takes time and efforts to get started with FilterMeister but once having gained a bit familiarity it will go a lot smoother.

Cheers,
Roberto



Op Sat, 26 Jun 2021 13:42:09 +0200 schreef Genc <gog...@gmail.com>:
RadialFillCells.jpg

Genc

unread,
Jun 27, 2021, 6:53:43 AM6/27/21
to FilterMeister Mailing List (FMML)
Glad it worked for you.
Actually, I know the plugin can create 64bit filters which is very satisfying, but I have realized that most of the functions(if not all), that FilterMeister contains, return 8bit color values only. For example, a gradient created with grad2D() on 8bit channel mode returns the expected results, but at 16bit mode it outputs nothing on the canvas. Also, when creating the checkers with the provided example, at 16bit mode the result is half width stretched of the canvas. At 8bit mode it works perfectly. For gradients generation, the 16bit mode is much more better for procedural imaging.

Regards,
Ognen

Roberto

unread,
Jun 27, 2021, 9:50:37 AM6/27/21
to filter...@googlegroups.com
Hi Ognen,

Checking the Wiki for FM functions indeed your 'if not all' seems the case to me as well: I couldn't find an image command that supports values higher than value 255.

Perhaps someone else on this list can give some info from a programmer's perspective.
I'm surprised no one kicked in already, anyway; it stays awfully quite.

Cheers,
Roberto


Op Sun, 27 Jun 2021 12:53:43 +0200 schreef Genc <gog...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "FilterMeister Mailing List (FMML)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to filtermeiste...@googlegroups.com.

Genc

unread,
Jun 27, 2021, 12:09:23 PM6/27/21
to FilterMeister Mailing List (FMML)
You can check in AfhFM.c, there are all the functions that Harald Heim has created. From there you may analyze the math that is implemented in the particular function for what is meant to create and then pass it in your own function.

I have posted another question about editing a part of the code where functions will return 16 bit color values instead of 8 that I think is already there and possible, because I have found some traces that lead to solving that problem, but without proper documentation everything is foggy.

Regards,
Ognen

P.S. I agree with you, it would be awesome idea for this place to 'rise from the dead'.

Kohan Ikin

unread,
Jun 27, 2021, 1:48:09 PM6/27/21
to filter...@googlegroups.com
Roberto wrote on 27/06/2021 9:50 PM:> Checking the Wiki for FM functions
indeed your 'if not all' seems the
> case to me as well: I couldn't find an image command that supports
> values higher than value 255.

From the FAQ page on the Wiki, there's this:

## Does FilterMeister support 16-bit bitdepth images?
The most needed functions like src, pget, pset, getArray and putArray
support 16-bit values.

## Why does the filter affect only half of my 16-bit image?
You are writing 8-bit values to the 16-bit image buffer. Make sure that
you use values ranging from 0 to 32768 and not just 0 to 255.


It could use some updating though. By searching through the New In FM
1.0 page for "16", there's also mention that blend, rgb2hsl, hsl2rgb,
other color conversion functions will work if you first set
set_bitdepth_mode(16); in your code. The t-buffer functions (tget,
t2get, tset etc) also work with 16-bit, except for tgetp & tsetp because
of the way they work.

- Kohan

--
kohan ikin
founder & chief developer for namesuppressed
http://kohanikin.com - http://namesuppressed.com - @syneryder

Roberto

unread,
Jun 27, 2021, 1:53:41 PM6/27/21
to filter...@googlegroups.com
Hi Ognen,

I tried finding AfhFM.c but without success. Already figured (.c file) you are running the 'VisualStudio' version and not the normal plugin like in the attached screendump.

Already wondered why you asked how to compile the plugin (8bf file)

Oh, in the FAQ section of the website I read: see attached screendump.
So it seems there is partly 16b image support (or only in FilterMeister plugin version?). Only for gradients I guess you have to write a gradient algorithm yourself using the variables supporting 16b values.

I have absolutely no experience with the VisualStudio version.

I'm sure in time you will get a reply from someone with more useful info than me.

FilterMeister originally was developed by Alex Hunter and offered as a plugin (with available documentation) created for developing plugins.
The VisualStudio version is kind of a 'volunteerd help out' version and comes with NO DOCUMENTATION.
However, you might find some useful info in www.filtermeister.com - Documents - FilterMeister Wiki -  How To Convert FilterMeister Classic Code To FilterMeister VS

Since FilterMeister development later got slow (health and time issues of original developer) it got to a point plugin developers using FilterMeister more or less got stuck when running into a growing gap between moving on technology and the stickyness of FM development.
Harald Heim already reworked part of the FM framework to use in VisualStudio for own use.
Later he modified it heavily for development of his own commercial plugins and workflow all in VisualStudio: he added a bunch of new stuff (64b compatibility, new functions, compatibility with new hosts, easier to port to Mac as well) around it and again: everything was focused on the development of his own plugins.
Due to the ongoing FM development crisis Harald offered to strip 'his FM version' back to a clean framework ready for sharing publicly. This would allow stuck plugin developers to get back on track with developing their (commercial) plugins which was not possible anymore with the outdated original FilterMeister. He did this despite everybody witnessed the popularity of plugins dropping big time and the future of FilterMeister kind of looking dark.
Anyway FM VisualStudio was there BUT it was created 'AS IS': no documentation. Lots of time went into creating it with no personal benefits: all involved time costed slower plugin development for commercial purposes.

Roberto


Op Sun, 27 Jun 2021 18:09:22 +0200 schreef Genc <gog...@gmail.com>:

FMinAction.jpg
FMabout16b.jpg
Reply all
Reply to author
Forward
0 new messages