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.

?View Code ACTIONSCRIPT
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

Bookmark and Share
Close Bookmark and Share This Page
Save to Browser Favorites / Bookmarks
Ask
backflip
blinklist
BlogBookmark
Bloglines
BlogMarks
Blogsvine
BuddyMarks
BUMPzee!
CiteULike
co.mments
Connotea
del.icio.us
Digg
diigo
DotNetKicks
DropJack
dzone
Facebook
Fark
Faves
Feed Me Links
Friendsite
folkd.com
Furl
Google
Hugg
Jamespot
Jeqq
Kaboodle
kirtsy
linkaGoGo
LinkedIn
LinksMarker
Ma.gnolia
Mister Wong
Mixx
MySpace
MyWeb
Netvouz
Newsvine
oneview
OnlyWire
PlugIM
Propeller
Reddit
Rojo
Segnalo
Shoutwire
Simpy
Slashdot
Sphere
Sphinn
Spurl
Squidoo
StumbleUpon
Technorati
ThisNext
Twitter
Webride
Windows Live
Worlds Movies
Yahoo!
Email This to a Friend
Copy HTML: 
 If you like this then please subscribe to the RSS Feed.
Powered by Bookmarkify™
[del.icio.us] [Digg] [Google] [LinkedIn] [StumbleUpon] [Windows Live] [Yahoo!] [Email] More »
Powered by Bookmarkify™

Related posts:

  1. Technologically Agnostic Technologically agnostic and liking it. When it comes to new...

Related posts brought to you by Yet Another Related Posts Plugin.

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 ASP.NET Blend C# CakePHP CSS Experiment Flash Flash Develop Flex Games Generative Design Google Informatics JavaScript Joshua Davis JSON Life Lingo Linux MashUp Open Source OpenSource PaperVision3D PC History Processing quick tip RIA Silverlight Technology/Internet travel twitter Web Web 3.0 Webware XML Yahoo Pipes

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

  • Monthly
  • Yearly
  • Links
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • agit8
  • Bit-101
  • D.I.Y.
  • draw.logic
  • Flight404
  • Flong
  • generatorX
  • haXe
  • Jonathan Snook
  • Joshua Davis
  • Jot
  • Kirupa
  • LifeHacker
  • Make
  • NurseOnTheRun
  • octane42
  • PV3D
  • Senocular
  • Sephiroth
  • ShineDraw
  • SWX
  • Tech News
  • Toxi
  • ZeusLabs

Brendon's Photos

DSCN0373.JPG

Recent Comments

  • morganae23 on Processing JS
  • morganae23 on Processing JS

RSS LifeStream

  • code_swarm #visualization #art #processing #generative
  • Lorenz Attractor – HTML5 Style with #Processing.js
  • 3D Fractals (Ray-traced with Flash)