# Vector/bmp into fireflies ; )

**URL:** <https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707>\
**Category:** Uncategorized\
**Created:** [June 18, 2008, 2:49pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707 "2008-06-18T14:49:57Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [June 18, 2008, 2:49pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/1 "2008-06-18T14:49:57Z")

</div>

edit; source is up,

[http://www.erikhallander.com/blog/2008/bitmapvector-into-firefly-particles-as30.html](http://www.erikhallander.com/blog/2008/bitmapvector-into-firefly-particles-as30.html)

👼

---

<div class="post-metadata">

**Author:** ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Post date:** [June 18, 2008, 8:17pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/2 "2008-06-18T20:17:13Z")

</div>

very nice, i like the firefly effect!  
how many particles do you have, and what tweening engine are you using to tween the particles back to the initial positions ?  
[i did something a little similar last week](http://www.signalsondisplay.com/blog/?p=9). I plan on making it more complexe and adding sound and all.

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [June 18, 2008, 8:44pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/3 "2008-06-18T20:44:35Z")

</div>

The amount of particles vary from the size of the initial object… for that one I think it’s just around 2000. But it does take the original shape/bitmap and transforms it to 2x2 particles that walz around.

Thanks btw. I’ll blog the source later today prolly

edit: btw I like your stuff… just too bad you don’t release any of your experience source. Kinda defies the purpose of having an experiment section don’t you think ; )

---

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [June 18, 2008, 9:44pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/4 "2008-06-18T21:44:27Z")

</div>

Nice work runs at like 25-26FPS constant. Also nice little effect I could see it being useful to people.

---

<div class="post-metadata">

**Author:** ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Post date:** [June 18, 2008, 9:46pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/5 "2008-06-18T21:46:22Z")

</div>

I guess I’ll blog the source tomorrow, I doubt it’s very useful though, but would be nice to compare with your source sekasi

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [June 18, 2008, 9:52pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/6 "2008-06-18T21:52:19Z")

</div>

No it wouldn’t!! : ) I’m fairly new to AS3 … been having a bit of trouble migrating completely because I’ve been literally using AS2 every day since the release :X

but I’m getting there.

---

<div class="post-metadata">

**Author:** ![pwdVergesser](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@pwdVergesser](https://forum.kirupa.com/u/pwdVergesser)\
**Post date:** [June 19, 2008, 6:47am UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/7 "2008-06-19T06:47:15Z")

</div>

ohh I like particles… did a few snippets from time to time.  
so, why not deal with up to 100000 particles at the same time by having \> 18 fps constantly… 😉

here we go:  
[http://prinzipiell.com/2007/11/18/turbulence-100000-particle-by-18-fps/](http://prinzipiell.com/2007/11/18/turbulence-100000-particle-by-18-fps/)

enjoy  
pwd

---

<div class="post-metadata">

**Author:** ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Post date:** [June 19, 2008, 9:04am UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/8 "2008-06-19T09:04:49Z")

</div>

wow pwdVergesser, thats pretty cool!  
it runs at a smooth 50FPS on my computer 😃

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [June 19, 2008, 1:46pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/9 "2008-06-19T13:46:47Z")

</div>

Actually my example uses 2000 bitmapdata to be able to grab pixel information from each pixel of the starting object so yeah… it wont be as smooth as just pure sprites obviously.

Working on a few optimizations but well cool stuff passwordforgetter. : )

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [June 19, 2008, 5:22pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/10 "2008-06-19T17:22:26Z")

</div>

Updated the blog with the source.

Enjoy 😉

[http://www.erikhallander.com/blog/2008/bitmapvector-into-firefly-particles-as30.html](http://www.erikhallander.com/blog/2008/bitmapvector-into-firefly-particles-as30.html)

---

<div class="post-metadata">

**Author:** ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Post date:** [June 19, 2008, 6:48pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/11 "2008-06-19T18:48:09Z")

</div>

cheers for posting the source sekasi, I posted the source for mine too  
[http://www.signalsondisplay.com/blog/?p=9](http://www.signalsondisplay.com/blog/?p=9)

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [June 19, 2008, 9:57pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/12 "2008-06-19T21:57:32Z")

</div>

Very nice. Thanks. Btw, I updated the source/swf on my site to use glow color of the particle so it looks a bit more like it’s actually coming from the particle… I used a static color scheme before… check it out ; )

---

<div class="post-metadata">

**Author:** ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Post date:** [June 20, 2008, 6:41am UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/13 "2008-06-20T06:41:24Z")

</div>

thx for putting up the source, i’ll have fun with it.  
I made a little other swf with sound this time, i’ll put the source up for that one too if anyone is interested  
[http://www.signalsondisplay.com/blog/?p=10](http://www.signalsondisplay.com/blog/?p=10)

---

<div class="post-metadata">

**Author:** ![prototype](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@prototype](https://forum.kirupa.com/u/prototype)\
**Post date:** [June 26, 2008, 1:20pm UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/14 "2008-06-26T13:20:51Z")

</div>

When I compile it goes through the frames without stopping. I have TweenMax and your com folder in root folder. What am I doing wrong. Flash CS3.

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [June 27, 2008, 2:27am UTC](https://forum.kirupa.com/t/vector-bmp-into-fireflies/263707/15 "2008-06-27T02:27:41Z")

</div>

Might be a missing stop(); since I was in a hurry and just used 2 frames for the activate thing. ; )
