<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>i-create &#124; therefore-i am &#187; Particle Engine</title>
	<atom:link href="http://i-create.org/tag/particle-engine/feed/" rel="self" type="application/rss+xml" />
	<link>http://i-create.org</link>
	<description>i-create &#124; therefore i-am &#124; a blog about opensource technology and rich internet applications</description>
	<lastBuildDate>Thu, 05 Aug 2010 04:19:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Got Flint?</title>
		<link>http://i-create.org/2009/07/06/got-flint/</link>
		<comments>http://i-create.org/2009/07/06/got-flint/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 05:30:25 +0000</pubDate>
		<dc:creator>Brendon Smith</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Flash Develop]]></category>
		<category><![CDATA[Particle Engine]]></category>

		<guid isPermaLink="false">http://i-create.org/2009/07/06/got-flint/</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>Well it being the fourth of July and all I thought I might ask?  So what exactly is <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2ZsaW50cGFydGljbGVzLm9yZy9ibG9nLw==" target=\"_blank\" title=\"Flint Particle Engine\">flint</a> 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 <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy51bml0emVyb29uZS5jb20vYmxvZy8yMDA5LzAzLzE4L2ZsYXNoLTEwLW1hc3NpdmUtYW1vdW50cy1vZi0zZC1wYXJ0aWNsZXMtd2l0aC1hbGNoZW15LXNvdXJjZS1pbmNsdWRlZC8=" target=\"_blank\" title=\"About Particle Pusher\">Particle Pusher</a> 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&#8217;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&#8217;t get to have one.<br />
<embed width="325" height="425" allowfullscreen="true" wmode="transparent" allowscriptaccess="always" src="/actionscript/sketchFirework.swf" type="application/x-shockwave-flash"/></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">DisplayObject</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">geom</span>.<span style="color: #006600;">Point</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">common</span>.<span style="color: #006600;">actions</span>.<span style="color: #66cc66;">*</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">common</span>.<span style="color: #006600;">counters</span>.<span style="color: #66cc66;">*</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">common</span>.<span style="color: #006600;">displayObjects</span>.<span style="color: #006600;">Line</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">common</span>.<span style="color: #006600;">initializers</span>.<span style="color: #66cc66;">*</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">twoD</span>.<span style="color: #006600;">actions</span>.<span style="color: #66cc66;">*</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">twoD</span>.<span style="color: #006600;">activities</span>.<span style="color: #006600;">FollowMouse</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">twoD</span>.<span style="color: #006600;">emitters</span>.<span style="color: #006600;">Emitter2D</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">twoD</span>.<span style="color: #006600;">initializers</span>.<span style="color: #66cc66;">*</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">twoD</span>.<span style="color: #006600;">zones</span>.<span style="color: #66cc66;">*</span>;	
	<span style="color: #808080; font-style: italic;">/**
	* ...
	* @author Brendon Smith -&gt; Graphic/Generative Artist/Software Engineer
	* i-create|therefore-i am -&gt; i-create.org 
	* seacloud9 Interactive Design -&gt; seacloud9.org 
	* seacloud9 Commercial Design -&gt; seacloud9.com 
	*/</span>
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Sparkler <span style="color: #0066CC;">extends</span> Emitter2D
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Sparkler<span style="color: #66cc66;">&#40;</span> renderer:DisplayObject <span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			counter = <span style="color: #000000; font-weight: bold;">new</span> Steady<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">300</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
			addInitializer<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> SharedImage<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> Line<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">200</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
			addInitializer<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> ColorInit<span style="color: #66cc66;">&#40;</span> 0xFF9BD8F4, 0xFF0EF813 <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
			addInitializer<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> Velocity<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> DiscZone<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> Point<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span>, <span style="color: #cc66cc;">750</span>, <span style="color: #cc66cc;">200</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
			addInitializer<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> Lifetime<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">150</span>, <span style="color: #cc66cc;">70</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
			addAction<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> Age<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
			addAction<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> Move<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
			addAction<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> RotateToDirection<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
			addActivity<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> FollowMouse<span style="color: #66cc66;">&#40;</span> renderer <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
package
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">filters</span>.<span style="color: #006600;">BlurFilter</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">filters</span>.<span style="color: #006600;">ColorMatrixFilter</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">geom</span>.<span style="color: #006600;">Rectangle</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">twoD</span>.<span style="color: #006600;">emitters</span>.<span style="color: #006600;">Emitter2D</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">flintparticles</span>.<span style="color: #006600;">twoD</span>.<span style="color: #006600;">renderers</span>.<span style="color: #66cc66;">*</span>;	
&nbsp;
&nbsp;
	<span style="color: #808080; font-style: italic;">/**
	* ...
	* @author Brendon Smith -&gt; Graphic/Generative Artist/Software Engineer
	* i-create|therefore-i am -&gt; i-create.org \n
	* seacloud9 Interactive Design -&gt; seacloud9.org \n
	* seacloud9 Commercial Design -&gt; seacloud9.com \n
	*/</span>
&nbsp;
	<span style="color: #66cc66;">&#91;</span>SWF<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">'325'</span>, <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">'400'</span>, frameRate=<span style="color: #ff0000;">'70'</span>, <span style="color: #0066CC;">backgroundColor</span>=<span style="color: #ff0000;">'#ffffff'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main <span style="color: #0066CC;">extends</span> Sprite
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> emitter:Emitter2D;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">var</span> txt:<span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			txt.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Move the mouse over this box.&quot;</span>;
			txt.<span style="color: #0066CC;">autoSize</span> = <span style="color: #ff0000;">&quot;left&quot;</span>;
			txt.<span style="color: #0066CC;">textColor</span> = 0xFFFFFF;
			addChild<span style="color: #66cc66;">&#40;</span> txt <span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #000000; font-weight: bold;">var</span> renderer:BitmapRenderer = <span style="color: #000000; font-weight: bold;">new</span> BitmapRenderer<span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> Rectangle<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">400</span>, <span style="color: #cc66cc;">400</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
			renderer.<span style="color: #006600;">addFilter</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> BlurFilter<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">5</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
			renderer.<span style="color: #006600;">addFilter</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> ColorMatrixFilter<span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0.95</span>,<span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
			addChild<span style="color: #66cc66;">&#40;</span> renderer <span style="color: #66cc66;">&#41;</span>;
&nbsp;
			emitter = <span style="color: #000000; font-weight: bold;">new</span> Sparkler<span style="color: #66cc66;">&#40;</span> renderer <span style="color: #66cc66;">&#41;</span>;
			renderer.<span style="color: #006600;">addEmitter</span><span style="color: #66cc66;">&#40;</span> emitter <span style="color: #66cc66;">&#41;</span>;
			emitter.<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=L2FjdGlvbnNjcmlwdC9za2V0Y2hGaXJld29yay56aXA=" target=\"_blank\" title=\"Simple Sparkler Example\">Code</a></p>
<p>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. </p>
<p>Particle Libraries:<br />
<a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy51bml0emVyb29uZS5jb20vYmxvZy8yMDA5LzAzLzE4L2ZsYXNoLTEwLW1hc3NpdmUtYW1vdW50cy1vZi0zZC1wYXJ0aWNsZXMtd2l0aC1hbGNoZW15LXNvdXJjZS1pbmNsdWRlZC8=" target=\"_blank\" title=\"About Particle Pusher\">Particle Pusher</a> / <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy51bml0emVyb29uZS5jb20vbGFicy9hbGNoZW15UHVzaGluZ1BpeGVscy9hbGNoZW15UGFydGljbGVQdXNoZXIuemlw" target=\"_blank\" title=\"Particle Pusher Source\">Source</a> / <a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5wYXJ0aWNsZXN5c3RlbXMub3JnLw==" target=\"_blank\" title=\"Particle Systems API and Source\">Particle Systems</a><br />
<a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL2ZsaW50LXBhcnRpY2xlLXN5c3RlbS8=" target=\"_blank\" title=\"Flint AS3 Particle Engine\">Flint</a></p>
<p>Other Cool Links:<br />
<a href="http://i-create.org/wp-content/plugins/feed-statistics.php?url=aHR0cDovL29wZW5wcm9jZXNzaW5nLm9yZy8=" target=\"_blank\" title=\"Open Processing\">OpenProcessing</a></p>
 <img src="http://i-create.org/wp-content/plugins/feed-statistics.php?view=1&post_id=622" width="1" height="1" style="display: none;" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi-create.org%2F2009%2F07%2F06%2Fgot-flint%2F&amp;linkname=Got%20Flint%3F"><img src="http://i-create.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://i-create.org/2009/07/06/got-flint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
