PDA

View Full Version : Image Blur/Burn



Lindquist
April 26th, 2005, 08:19 PM
height=240 width=320

http://www.kirupa.com/forum/showpost.php?p=823231&postcount=6

-L

nobody
April 26th, 2005, 10:22 PM
That's really cool, especially since it's not an image sequence. Nice job :)

dreeft
April 26th, 2005, 10:59 PM
Cool effect.

Mik3
April 27th, 2005, 01:39 AM
Nice, really nice. Great job!

Amish
April 27th, 2005, 05:31 AM
Excellent and its soo simple.

cr125rider
April 28th, 2005, 06:41 PM
That is really sweet

msurgay
April 29th, 2005, 04:19 AM
Here is a little bit improved code :)


//**Burn by Lindquist
var myColor= new Color(blurred);
var white = {ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:255};
myColor.setTransform(white);
blurred.onEnterFrame = function(){
white.rb-=10;
white.gb-=10;
white.bb-=10;
white.ab-=10;
myColor.setTransform(white);
if(white.rb<-255){
white.rb=255;
white.gb=255;
white.bb=255;
white.ab=255;
delete blurred["onEnterFrame"];
}
}

Lindquist
April 29th, 2005, 04:24 AM
In what way would you call your code "improved"?

Voetsjoeba
April 29th, 2005, 11:55 AM
delete blurred["onEnterFrame"]; Wouldn't call that very optimised :x

claudio
April 29th, 2005, 12:47 PM
Nice effect :thumb:

dude9er
May 4th, 2005, 01:34 AM
is there an MX version?

RadioactveChimp
May 4th, 2005, 01:54 AM
yeah great effect!

VersusMG
May 5th, 2005, 12:58 AM
That is a great effect! :smirk:

simplistik
May 5th, 2005, 01:46 AM
how can you get this script to stop once it's finished... instead of looping endlessly. I want to use it on a site... cause I think it'll work nice... has a nice ethereal look to it that I can use...

EDIT:
LoL... sorry brain fart... but for anyone else who wants to know put this in to stop:



delete this.onEnterFrame;


similar to what ole boy up top was tryin to do.

dude9er
May 5th, 2005, 05:20 PM
can someone post an MX version for it? I'd love to lok at the coding. Thanks.

UNFLUX
May 5th, 2005, 06:00 PM
here you go... :nerd:

dude9er
May 5th, 2005, 07:53 PM
AWESOME unflux, worked great, thanks

999
May 5th, 2005, 10:23 PM
Nice Effect, thanks Lindquist! ;)
I fit it into a flash project we just did for M-soft and it seems to have went over really well.

Simple suggestion for those concerned about file size: Make your blurred image at a much smaller resolution and stretch it to fit your clear image within flash. Same effect, better file size.

Lindquist
May 5th, 2005, 10:52 PM
Thanks for all the compliments guys and thanks to UNFLUX and simplistik for answering questions while I wasn't around.

Also, everyone should take ditchhopper's advice on the filesize issue. It's an excellent suggestion.

-L

simplistik
May 6th, 2005, 12:27 AM
Thanks for all the compliments guys and thanks to UNFLUX and simplistik for answering questions while I wasn't around.

Also, everyone should take ditchhopper's advice on the filesize issue. It's an excellent suggestion.

-L
Hmmm actually I'm using it on a site :P cause it's very relevant to the theme of the site I used... and it has 8 of those transitions, and it loads pretty quick. I even had a 56k fella testin it out. He said it loaded nicely.

Lindquist
May 6th, 2005, 01:04 AM
Hmmm actually I'm using it on a site :P cause it's very relevant to the theme of the site I used... and it has 8 of those transitions, and it loads pretty quick. I even had a 56k fella testin it out. He said it loaded nicely.

Then you're not "concerned about filesize", are you? ;)

rpgamer2003
February 12th, 2006, 12:11 AM
Can anybody tell me how to fade in the picture and have it stay (so basically the same thing without it disappearing, and without the second picture)? And how do I have it disappear when it's already there? And is there anyway to control the speed of the animation (without changing the framerate of the movie?)
thanx

sed|thh
February 12th, 2006, 06:29 AM
nice effect (gets source) :)

Jasninder
February 12th, 2006, 07:57 AM
looks nice, do you mind if i try it on for my clients?

Lindquist
February 12th, 2006, 03:34 PM
looks nice, do you mind if i try it on for my clients?

Go for it. Post an example once you've finished it in here if you wouldn't mind. I should probably redo this effect in Flash 8 with the new Blur filter so you don't have to use photoshop.

tri_s
February 21st, 2006, 10:27 PM
here you go... :nerd:

sorry! how come I view it freezed?!

just see the blur effect!!

B L U E
February 25th, 2006, 07:54 PM
Does it only work with non-transparent images? I've tried it with an imported PNG with transparencies but it didnt work.

pantas
March 10th, 2006, 12:24 PM
thats greate! what if i wanted this effect from black , not from white? what should i change in the code ?

pantas
March 10th, 2006, 04:08 PM
and one more thing....how to detect if the animation has ended, and then make it go nextFrame() ?

pantas
March 13th, 2006, 03:00 PM
anyone?
if only someone could explain what

Object = {ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:255};

means, it would be something! so i could try and figure something out... :ponder:

thanks in advance

Lindquist
March 15th, 2006, 09:04 PM
I rewrote this for Flash 8 into a class. I hope the actionscript in the .fla is pretty self-explanatory. Extract the attached .zip to play around with it.

Thanks to Flash 8, you don't have to create a second blurred photo in photoshop to create this effect.

pantas
March 16th, 2006, 11:31 AM
thanks for the reply lindquist!
unfortunnatelly i cant open the file, since i only have flash MX 2004.
meanwhile, i figured out the codes and changed some things to make the blur black. (at least it works for my pictures!)

dont know if anyone needs it, so here goes:

stop() // ***Burn by Lindquist
var myColor:Color = new Color(blurred);
var black:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:130, ab:100};
myColor.setTransform(black);

onEnterFrame = function(){
black.rb-=5;
black.gb-=5;
black.bb-=5;
black.ab-=5;
myColor.setTransform(black);
if(black.rb>100){
black.rb=0;
black.gb=0;
black.bb=0;
black.ab=0;
delete this.onEnterFrame;

}
}

meanwhile, if you could save that last file for my version i wold be really be apreciated:)

cheers

Krilnon
March 16th, 2006, 12:20 PM
The last file shouldn't work in MX 2004, he used features specific to Flash 8. The ActionScript in the .fla wouldn't have been very useful anyway, it's all in a class.

Lindquist
March 16th, 2006, 02:14 PM
pantas, if you need to learn more, just look up "color" and "setTransform" in the Flash help file.

Although, be aware that the "Color" class has now been deprecated (left behind) in Flash 8 in favor of the new flash.geom.ColorTransform, so you'll have to relearn it in Flash 8. They're very similar in usage though.

kmria
March 16th, 2006, 05:57 PM
Why bother with AS when u can just tween it...??? I know AS is much more smooth but here is the tween style how much different u can see from AS result..??

Lindquist
March 16th, 2006, 06:47 PM
Actionscript allows you to dynamically load many different pictures and apply many variations (blur amount, colors, speed) of the effect. It's also reusable for later projects in just a single line of script.

Lindquist
March 17th, 2006, 03:30 AM
I put a looping demo of the class in action here:

http://www.johnlindquist.com/flash/LoadAndBurn.html

I looped it and randomized the blur, colors, and speed just to show off how dynamic it can be.

berkoWitZ
March 20th, 2006, 05:15 PM
Very nice!

Onequestion......I downloaded the first example but it keeps looping even if I put a stop...what can I do?

grmlyn
March 21st, 2006, 02:55 AM
nice

Pasquale
March 21st, 2006, 03:41 AM
Why bother with AS when u can just tween it...??? I know AS is much more smooth but here is the tween style how much different u can see from AS result..??

heh...

Lindquist
March 21st, 2006, 05:30 PM
Very nice!

Onequestion......I downloaded the first example but it keeps looping even if I put a stop...what can I do?

By stop, do you mean a "stop();"? Cause you need to use a "delete this.onEnterFrame;".

berkoWitZ
March 22nd, 2006, 01:54 PM
yes I mean a stop(); but didnt work...then how the final code would look like with the delete this.onEnterFrame;?