Public Voice Network
- water marks on letterhead…
- blog 3027330273
- serif fonts 55
- Volume One 1616
- QBN Spam Report 2020
- EC: Anthony Lister 66
- Cannonball's Classica… 22
- skulls 4747
- Ignore button please. 2525
- party @ simonyi's 11
- New XBox Live 4949
- FMT 112108 3131
- For a better tomorrow 2121
- FFFind me a FFFound 33
- What printer should i buy… 11
- New Bond "Quantum of… 7777
- EC: Joe Wigdahl 2828
- Portfolio online 1818
- thread killer 22082208
- Batesoling was fun 1111
- 10 Greatest Thinkers 121121
- Australia! 2525
- Your Christmas List 2525
- What are you listening to… 891891
AS3 bitmap blur/feedback effect 1111 Responses
Last post: 3 months, 3 weeks ago | Thread started: Jul 29, 08, 9:53 a.m.
- modern
Anyone seen anything like this:
http://labs.bigspaceship.com/sou…
For AS3?
Mostly interested in slowly blurring the background like the default effect shown on that link.Cheers!
- Jul 29, 08, 9:53 a.m. – Permalink
- maximillion_
all you need


- Dog-earJul 29, 08, 9:55 a.m. – Permalink
- modern
tweenfilterlite doesn't look the same.
This is the equivalent written in processingvoid setup() {
// ignore this bit
size(200, 200);
background(102);
stroke(255);
strokeWeight(3);
}void draw() {
// this bit!
filter(BLUR, 1);
// draw some shit
if(mousePressed) {
line(mouseX, mouseY, pmouseX, pmouseY);
}
}So instead of clearing the frame and redrawing, you blur the frame then place the next frame on top, so there is a blurred feedback left behind.


- Dog-earJul 29, 08, 10:03 a.m. – Permalink
- maximillion_
you wanted AS3 not processing?


- Dog-earJul 29, 08, 10:04 a.m. – Permalink
- kult
Max, my guess is there's 2 layers going on here. The first layer is a large bitmap object, and the second layer is the most recent "frame" of the beachball.
Every frame, redraw the entire scene to the bitmap object and apply your blending/blur effects, then draw your beachball layer to a new position. I somewhat doubt they're completely retaining a long array of beachballs and applying a blur filter to each one consecutively each frame. But hey, ya never know.


- Dog-earJul 29, 08, 10:07 a.m. – Permalink
- maximillion_
with tween filter lite you can use the blurFilter to achieve the same effect on a single object:
TweenFilterLite.to(yourObj, 1, {blurFilter:{blurX:5, blurY:5, quality:2}});
this blurs yourObj over 1 second from its current state to having 5px blur along x and y


- Dog-earJul 29, 08, 10:08 a.m. – Permalink
- maximillion_
you might be right kult, i wouldnt suggest using frames in As3 but you can. TweenFilterLite is very efficient and you can tween thousands of objects at any one time often without a great overhead.
Once you have set the blur to the object you dont need to go back to it as kult suggests - you can use an easing equation to achieve this over time.


- Dog-earJul 29, 08, 10:12 a.m. – Permalink
- modern
I'm sure TweenFilterLite could recreate the effect with the beachball, but I'm doing quite a lot of tweening inside the movieclip already so this is a much more processor efficient way to achieve the effect.
The AS2 version of Visualizer works fine, I just need to find something to do it in AS3 so the developers don't kick off about AS2 and refuse to touch it.

- Dog-earJul 29, 08, 10:14 a.m. – Permalink
- mikotondria3
Mr Brimelow is your man:
http://www.gotoandlearn.com/play…

- Dog-earJul 29, 08, 10:15 a.m. – Permalink
- kult
You can use the easing equation to individually affect each object and "forget about it" so they take care of themselves, and then use onComplete to kill off the object once it's blurred out.. however.. there is always debate about this sort of performance vs. manipulating bitmap data. Both have their ups and downs.

- Dog-earJul 29, 08, 10:15 a.m. – Permalink
- maximillion_
I saw some nice computeSpectrum examples using the bitmap class as you described kult - very impressive

- Dog-earJul 29, 08, 10:20 a.m. – Permalink

