Well it being the fourth of July and all I thought I might ask? So what exactly is flint other than a stone I can clang together to generate a spark? Flint is also a particle engine created for actionscript 3 by Richard Lord. Which is really easy to use and is also compatible with many open source 3d engines like away3d or papervision3d so I recommend checking it out it can be useful for creating a variety of effects and is also fun to play around with. You can create all the firework effects you can think of also snow etc.. The flint library is also available in C# although I have not played with it but will look forward to doing so in the near future. I am also currently examining Particle Pusher that was created by converting the c++ library particlesystems This particle library was thoroughly optimized and looks very impressive it also uses Pixel Bender Filters as well. Anyway here is a ridiculously simple Sparkler. This is one of the examples that comes with Richard Lords libraries I have only made a few modifications. The point is if you needed to create a particle effect with actionscript you could do it quickly and easily. I am also curious to see if the Flint Library can’t be converted to be used in .Net 3.5 I will play around with it shortly. Here is a virtual sparkler in case you didn’t get to have one.
package { import flash.display.DisplayObject; import flash.geom.Point; import org.flintparticles.common.actions.*; import org.flintparticles.common.counters.*; import org.flintparticles.common.displayObjects.Line; import org.flintparticles.common.initializers.*; import org.flintparticles.twoD.actions.*; import org.flintparticles.twoD.activities.FollowMouse; import org.flintparticles.twoD.emitters.Emitter2D; import org.flintparticles.twoD.initializers.*; import org.flintparticles.twoD.zones.*; /** * ... * @author Brendon Smith -> Graphic/Generative Artist/Software Engineer * i-create|therefore-i am -> i-create.org * seacloud9 Interactive Design -> seacloud9.org * seacloud9 Commercial Design -> seacloud9.com */ public class Sparkler extends Emitter2D { public function Sparkler( renderer:DisplayObject ) { counter = new Steady( 300 ); addInitializer( new SharedImage( new Line( 200 ) ) ); addInitializer( new ColorInit( 0xFF9BD8F4, 0xFF0EF813 ) ); addInitializer( new Velocity( new DiscZone( new Point( 0, 0 ), 750, 200 ) ) ); addInitializer( new Lifetime( 150, 70 ) ); addAction( new Age() ); addAction( new Move() ); addAction( new RotateToDirection() ); addActivity( new FollowMouse( renderer ) ); } } } package { import flash.display.Sprite; import flash.filters.BlurFilter; import flash.filters.ColorMatrixFilter; import flash.geom.Rectangle; import flash.text.TextField; import org.flintparticles.twoD.emitters.Emitter2D; import org.flintparticles.twoD.renderers.*; /** * ... * @author Brendon Smith -> Graphic/Generative Artist/Software Engineer * i-create|therefore-i am -> i-create.org \n * seacloud9 Interactive Design -> seacloud9.org \n * seacloud9 Commercial Design -> seacloud9.com \n */ [SWF(width='325', height='400', frameRate='70', backgroundColor='#ffffff')] public class Main extends Sprite { private var emitter:Emitter2D; public function Main() { var txt:TextField = new TextField(); txt.text = "Move the mouse over this box."; txt.autoSize = "left"; txt.textColor = 0xFFFFFF; addChild( txt ); var renderer:BitmapRenderer = new BitmapRenderer( new Rectangle( 0, 0, 400, 400 ) ); renderer.addFilter( new BlurFilter( 5, 2, 5 ) ); renderer.addFilter( new ColorMatrixFilter( [ 1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0.95,0 ] ) ); addChild( renderer ); emitter = new Sparkler( renderer ); renderer.addEmitter( emitter ); emitter.start( ); } } } |
Our Fourth of July was pleasant we grilled out had some friends over and watched other people light fireworks off while we had steak / burgers / beer etc. It was fun we also played horse shoes.
Particle Libraries:
Particle Pusher / Source / Particle Systems
Flint
Other Cool Links:
OpenProcessing
Related posts:
- Technologically Agnostic Technologically agnostic and liking it. When it comes to new...
Related posts brought to you by Yet Another Related Posts Plugin.
![[del.icio.us]](http://i-create.org/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://i-create.org/wp-content/plugins/bookmarkify/digg.png)
![[Google]](http://i-create.org/wp-content/plugins/bookmarkify/google.png)
![[LinkedIn]](http://i-create.org/wp-content/plugins/bookmarkify/linkedin.png)
![[StumbleUpon]](http://i-create.org/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Windows Live]](http://i-create.org/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://i-create.org/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://i-create.org/wp-content/plugins/bookmarkify/email.png)



Recent Comments