View Full Version : [Voronoi #2]
pwdVergesser
December 18th, 2008, 05:30 AM
Hi,
not long ago I developed my first Voronoi based image filter (http://www.kirupa.com/forum/showthread.php?t=307063&highlight=voronoi), but it was running a bit too slow to really use it a real project.
So, yesterday I´ve rewritten my Voronoi Classes and updated them with various new Flash10 methods. My basic thought was, to speed up my entire processor so that it can manage and display more points and run even a bit faster than my former one. But hell yeah… now it actually runs up to 5 times faster than before. Without applying any filters or the like, I nearly get ~98fps of available 100fps maximum. Even if I add some filters upon the structure, it performs by having ~57fps. Only when I plug another shader thereon, the whole setup gets ruptured (~17fps).
http://www.dasprinzip.com/pExamples/p80_1.jpg (http://www.dasprinzip.com/prinzipiell/2008/12/17/voronoi-and-vectors/)
Launch (http://www.dasprinzip.com/prinzipiell/2008/12/17/voronoi-and-vectors/) (skip between the render-modes via mouse click)
The essence behind this sharp acceleration wasn´t voodoo at all, but a strict usage of vectors instead of arrays. He´s telling tall stories you might say! So to proof I´m not fibbing I updated my former voronoi image processor, and now it runs faster/-smoother, and can manage twice as many points as before.
http://www.dasprinzip.com/pExamples/p80_0.jpg (http://www.dasprinzip.com/prinzipiell/2008/12/17/voronoi-and-vectors/)
Launch (http://www.dasprinzip.com/prinzipiell/2008/12/17/voronoi-and-vectors/) compare with former version (http://www.dasprinzip.com/pExamples/p70_1.html))
So this upgrade definitively was worthwile!
Cheers
pwd
kirupa
December 18th, 2008, 05:40 AM
Wow - that is really cool :)
Sage_of_Fire
December 18th, 2008, 09:27 AM
I like the first mode, without the picture behind it. That bubble effect is nice. So, where do you find this Vector class? I didn't know that AS3 supported such low-level optimization.
pwdVergesser
December 18th, 2008, 09:56 AM
Wow - that is really cool :)
thx ;)
I like the first mode, without the picture behind it. That bubble effect is nice. So, where do you find this Vector class? I didn't know that AS3 supported such low-level optimization.
...the vector class is part of Flash10 (CS4) Top Level Package (here you go (http://help.adobe.com/en_US/AS3LCR/Flash_10.0/Vector.html))
cheers
pwd
prototype
December 18th, 2008, 10:19 AM
You know, your experiments are really great and show your mastery of actionscript but you rarely post the source code, which is a requirement of this forum (note: Source/Experiments). We use the source as a learning tool. Any reasons why you don't share?
pwdVergesser
December 18th, 2008, 10:58 AM
You know, your experiments are really great and show your mastery of actionscript but you rarely post the source code, which is a requirement of this forum (note: Source/Experiments). We use the source as a learning tool. Any reasons why you don't share?
...in my view, I post sources not before I´ve done the best optimizations for ´em.
so - for nearly more then three quarters I´ve already posted the sources or had given them later (by updating my origin post).
a little list as proof for that:
- droste effect (http://www.kirupa.com/forum/showthread.php?t=313378) and sources (http://www.dasprinzip.com/prinzipiell/2008/12/10/enhanced-escher/)
- deformer (http://www.kirupa.com/forum/showthread.php?t=309451) (directly posted with sources)
- slime balls (http://www.kirupa.com/forum/showthread.php?t=295135) (posted the sources in the thread after optimizing ´em)
- smudge (http://www.kirupa.com/forum/showthread.php?t=299811)
(directly posted with sources)
- fisheye (http://www.kirupa.com/forum/showthread.php?t=300360)
(with link to sources)
a.s.o
...and I promise I will post the other sources as well as soon as I optimized a bit here and there. ( in the meanwhile, go ahead and kick me with a candy cane while playing a dissonant xmas-jingle on flute ( a.k.a http://xmas.anymotion.de (http://xmas.anymotion.de/)) ...)
cheers
pwd
saxx
December 18th, 2008, 11:19 AM
Thats gnarly dude, you do some good work :).
prototype
December 18th, 2008, 02:54 PM
@pwdVergesser - I stand corrected. :( What is happening for me is that I see your posts when they first go up and then don't see a link for the source. Now that I'm aware of that I'll be patient and wait. The eCard site was fun.
Cheers!
pwdVergesser
December 19th, 2008, 03:45 AM
@pwdVergesser - I stand corrected. :( What is happening for me is that I see your posts when they first go up and then don't see a link for the source. Now that I'm aware of that I'll be patient and wait. The eCard site was fun.
Cheers!
no prob at all... ;)
fgunnars
February 10th, 2009, 09:45 AM
no prob at all... ;)
Hi pwdVergesser,
I am interested in the Voronoi classes that you wrote. Any plans to sharing them? You wrote in Dec above that you intended to do some optimization first. Compared to your old implementation this one seems really fast already.
Sorry for asking, but I am really curious about this stuff. Excellent art work, by the way!
/Fredrik
pwdVergesser
February 18th, 2009, 03:15 AM
Hi pwdVergesser,
I am interested in the Voronoi classes that you wrote. Any plans to sharing them? You wrote in Dec above that you intended to do some optimization first. Compared to your old implementation this one seems really fast already.
Sorry for asking, but I am really curious about this stuff. Excellent art work, by the way!
/Fredrik
hi fredrik,
sorry for responding so late. to answer your question. yes, i´m planing to release sources, but i´m still optimizing (due to the fact that i´ve very limited time to work on the classes at the moment).
so, unfortunately you´ve to wait a little more... ;)
fgunnars
April 27th, 2009, 08:16 AM
Hi pwdVergesser,
Still curious about your code (despite that I know that curiousity has killed a lot of cats lately ... :angel:). I know that work problem, work tends to limit the spare time amusements. Hope that you can bear with me asking ... :suppose_maybe:
Best Regards,
/Fredrik
hi fredrik,
sorry for responding so late. to answer your question. yes, i´m planing to release sources, but i´m still optimizing (due to the fact that i´ve very limited time to work on the classes at the moment).
so, unfortunately you´ve to wait a little more... ;)
fgunnars
November 3rd, 2009, 06:05 AM
Some Voronoi thoughts went passed through my head, and I came to think about your Voronoi class based on Flash 10 that you had som plans to release to an interested public. Any updates on that?
B.R.
/Fredrik
mlk
November 6th, 2009, 04:28 PM
cool, look forward to your code, mostly the voronoi generation
do you have any crispy links detailing the implementation of voronoi (I'm looking to apply it to 3d, but - baby steps first)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.