Other Websites

  • SeaCloud9 Interactive
  • SeaCloud9 Commercial Development
  • i-os
  • stArcade9

Brendon Smith Social Networks

  • On Linkedin
  • Bookmarks
  • On Twitter
  • On Facebook
Open ↓ Close ↑
  • Home
  • Subscribe
Browse: Home / ActionScript, C#, Open Source / Got Flint?
i-create | therefore-i am
i-create | therefore i-am | a blog about opensource technology and rich internet applications
 

Got Flint?

By Brendon Smith on July 6, 2009

 

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( );
		}
	}
}

Code

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

  • Share/Bookmark

Related posts:

  1. Technologically Agnostic
  2. SeaCloud9 Commercial Development

Posted in ActionScript, C#, Open Source | Tagged ActionScript, Flash Develop, Particle Engine

Brendon Smith

GUI Development, Action Script, Java Script, .NET, AJAX, Java, PHP, CakePHP, Mashup Development, Flash, Silverlight, C#, XML, SQL, Apache, IIS, Photoshop, Fireworks,etc.. Oh, and Biking and Camping

blog comments powered by Disqus
« Previous Next »
 
 

3d ActionScript Adobe Air Android Apollo Apple art as3 Away3D C# CakePHP CSS Experiment Flash Flash Develop Flex Games Generative Design Google HTML5 hype JavaScript Joshua Davis JQuery JSON Life Linux MashUp OpenSource Open Source PaperVision3D PC History Processing quick tip RIA Silverlight Technology/Internet travel twitter Web webGL Webware XML Yahoo Pipes

WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • Monthly
  • Yearly
  • Links
  • August 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • agit8
  • Away3D
  • Ben Nadel
  • Bit-101
  • Bruce Jawn
  • Causecast
  • D.I.Y.
  • Dr Woohoo
  • draw.logic
  • Flight404
  • Flong
  • generatorX
  • gSkinner
  • haXe
  • Jonathan Snook
  • Joshua Davis
  • Jot
  • Kirupa
  • LifeHacker
  • Make
  • Minor White
  • Mr Doob
  • NihiLogic
  • NurseOnTheRun
  • octane42
  • OpenFrameWorks
  • Processing
  • PV3D
  • Senocular
  • Sephiroth
  • ShineDraw
  • Stroep
  • SWX
  • Tech News
  • Toxi
  • UnitZeroOne
  • World We Live In
  • ZeusLabs

Photos

islandsinthestream.JPG

Recent Comments

  • seacloud9 on Tweet Tank in Away3D and Hype pt. 2
  • Brendon Smith on Tweet Tank in Away3D and Hype pt. 2

RSS LifeStream

  • Elysium
  • Giles Bowkett: Archaeopteryx: A Ruby MIDI Generator
  • Grant Nestor » Blog Archive » Generative music, huh?

Copyright © 2010 i-create | therefore-i am.