<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 3D smoke: taking Pixel Bender to the next dimension</title>
	<atom:link href="http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/</link>
	<description>Flash Platform Experiments</description>
	<lastBuildDate>Sat, 21 Jan 2012 13:12:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: David</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2778</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 25 May 2009 14:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2778</guid>
		<description>In fact, you shouldn&#039;t have to do anything, unless you really want to get rid of the warning. In that case replace the &quot;onKeyDown&quot; with &quot;handleKeyDown&quot; (or anything) in both lines.
Hope that helps!</description>
		<content:encoded><![CDATA[<p>In fact, you shouldn&#8217;t have to do anything, unless you really want to get rid of the warning. In that case replace the &#8220;onKeyDown&#8221; with &#8220;handleKeyDown&#8221; (or anything) in both lines.<br />
Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fransua</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2777</link>
		<dc:creator>fransua</dc:creator>
		<pubDate>Mon, 25 May 2009 14:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2777</guid>
		<description>Thanks for the answer David...

I am not sure I understand

I have to replace

stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown) ?

or

private function onKeyDown(event : KeyboardEvent) : void ?</description>
		<content:encoded><![CDATA[<p>Thanks for the answer David&#8230;</p>
<p>I am not sure I understand</p>
<p>I have to replace</p>
<p>stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown) ?</p>
<p>or</p>
<p>private function onKeyDown(event : KeyboardEvent) : void ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2760</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 25 May 2009 07:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2760</guid>
		<description>Ah, good old Flash IDE warnings! It just does that because the listeners registered to the KeyboardEvent.KEY_DOWN etc have the same name as they used to have in AS2. They&#039;re registered with addEventListener, so you shouldn&#039;t pay attention to those warnings. If you really want to get rid of them, rename the method to handleKeyDown or so, and replace all the references to it with the new name.</description>
		<content:encoded><![CDATA[<p>Ah, good old Flash IDE warnings! It just does that because the listeners registered to the KeyboardEvent.KEY_DOWN etc have the same name as they used to have in AS2. They&#8217;re registered with addEventListener, so you shouldn&#8217;t pay attention to those warnings. If you really want to get rid of them, rename the method to handleKeyDown or so, and replace all the references to it with the new name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fransua</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2744</link>
		<dc:creator>fransua</dc:creator>
		<pubDate>Mon, 25 May 2009 00:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2744</guid>
		<description>I have just imported the class Fluids3DPB.as inside flash 10, but I got three migration issue:

Warning: 1090: Migration issue: The onKeyDown event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0.  You must first register this handler for the event using addEventListener ( &#039;keyDown&#039;, callback_handler).

Warning: 1090: Migration issue: The onMouseDown event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0.  You must first register this handler for the event using addEventListener ( &#039;mouseDown&#039;, callback_handler).

How do I have to modiffy this function ?

private function onKeyDown(event : KeyboardEvent) : void
		{
			switch (event.keyCode) {
				case Keyboard.SPACE:
					for (var i : int = 0; i &lt; BUFFER_SIZE_4; ++i)
						_velocityDensityField[i] = 0;
					break;
				case Keyboard.ENTER:
					_container.rotationX = _container.rotationY = _container.rotationZ;
					break;
			}
		}</description>
		<content:encoded><![CDATA[<p>I have just imported the class Fluids3DPB.as inside flash 10, but I got three migration issue:</p>
<p>Warning: 1090: Migration issue: The onKeyDown event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0.  You must first register this handler for the event using addEventListener ( &#8216;keyDown&#8217;, callback_handler).</p>
<p>Warning: 1090: Migration issue: The onMouseDown event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0.  You must first register this handler for the event using addEventListener ( &#8216;mouseDown&#8217;, callback_handler).</p>
<p>How do I have to modiffy this function ?</p>
<p>private function onKeyDown(event : KeyboardEvent) : void<br />
		{<br />
			switch (event.keyCode) {<br />
				case Keyboard.SPACE:<br />
					for (var i : int = 0; i &lt; BUFFER_SIZE_4; ++i)<br />
						_velocityDensityField[i] = 0;<br />
					break;<br />
				case Keyboard.ENTER:<br />
					_container.rotationX = _container.rotationY = _container.rotationZ;<br />
					break;<br />
			}<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2732</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sun, 24 May 2009 17:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2732</guid>
		<description>@Milan: True enough, for now particle-based fake smoke is the way to go for good production values. Even most video games still use that approach (tho it slowly seems to be changing :) )

@Tejas: Thanks. Just for the record: David, that&#039;s me, the author of the post ;)</description>
		<content:encoded><![CDATA[<p>@Milan: True enough, for now particle-based fake smoke is the way to go for good production values. Even most video games still use that approach (tho it slowly seems to be changing <img src='http://www.derschmale.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>@Tejas: Thanks. Just for the record: David, that&#8217;s me, the author of the post <img src='http://www.derschmale.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tejas</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2729</link>
		<dc:creator>Tejas</dc:creator>
		<pubDate>Sun, 24 May 2009 15:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2729</guid>
		<description>Really nice example. Agree with David and Milan, but great effect nonetheless</description>
		<content:encoded><![CDATA[<p>Really nice example. Agree with David and Milan, but great effect nonetheless</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milan Orszagh (TheAustrianGuy)</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2685</link>
		<dc:creator>Milan Orszagh (TheAustrianGuy)</dc:creator>
		<pubDate>Sat, 23 May 2009 13:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2685</guid>
		<description>Looks cool but it&#039;s gonna take some more demos till we&#039;ll have a 3D smoke for production.
Meanwhile we got to stick with faked smoked http://www.twistanddrink.com/en/island/ (roll over cottage)</description>
		<content:encoded><![CDATA[<p>Looks cool but it&#8217;s gonna take some more demos till we&#8217;ll have a 3D smoke for production.<br />
Meanwhile we got to stick with faked smoked <a href="http://www.twistanddrink.com/en/island/" rel="nofollow">http://www.twistanddrink.com/en/island/</a> (roll over cottage)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2675</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 23 May 2009 09:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2675</guid>
		<description>@Willem: Thanks! I think there already are plenty of fluid/smoke simulators for those 3D packages, which do a much better job at it, too :) Aside from that, I just like doing it for Flash, just to see how far I can push the platform and try to make it perform in real-time. Of course the use is limited for now, but as Flash gets faster with future versions, some day we could see things like these on a larger scale. That&#039;s what I keep telling myself anyway :D</description>
		<content:encoded><![CDATA[<p>@Willem: Thanks! I think there already are plenty of fluid/smoke simulators for those 3D packages, which do a much better job at it, too <img src='http://www.derschmale.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Aside from that, I just like doing it for Flash, just to see how far I can push the platform and try to make it perform in real-time. Of course the use is limited for now, but as Flash gets faster with future versions, some day we could see things like these on a larger scale. That&#8217;s what I keep telling myself anyway <img src='http://www.derschmale.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Willem</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2600</link>
		<dc:creator>Willem</dc:creator>
		<pubDate>Thu, 21 May 2009 19:16:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2600</guid>
		<description>The effect is fantastic,  and the real-time performance is very good on my old P4.
It is my opinion though, that you are writing this code for the wrong crowd. Don&#039;t take my word for it, but a plugin like this for Cinema 4D or 3DS Max, written in C (or C.O.F.F.E.E., Python, whatever), would be very welcome, and probably could make you a lot wealthier than doing this in Actionscript or Pixelbender (although this might have some use in After Effects maybe) :)
Naturally this Navier-Stokes magic isn&#039;t for the faint of heart, and i must say i&#039;m deeply impressed with your results.</description>
		<content:encoded><![CDATA[<p>The effect is fantastic,  and the real-time performance is very good on my old P4.<br />
It is my opinion though, that you are writing this code for the wrong crowd. Don&#8217;t take my word for it, but a plugin like this for Cinema 4D or 3DS Max, written in C (or C.O.F.F.E.E., Python, whatever), would be very welcome, and probably could make you a lot wealthier than doing this in Actionscript or Pixelbender (although this might have some use in After Effects maybe) <img src='http://www.derschmale.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Naturally this Navier-Stokes magic isn&#8217;t for the faint of heart, and i must say i&#8217;m deeply impressed with your results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dVyper</title>
		<link>http://www.derschmale.com/2009/05/20/3d-smoke-taking-pixel-bender-to-the-next-dimension/comment-page-1/#comment-2590</link>
		<dc:creator>dVyper</dc:creator>
		<pubDate>Thu, 21 May 2009 14:12:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.derschmale.com/?p=143#comment-2590</guid>
		<description>Cool example :)</description>
		<content:encoded><![CDATA[<p>Cool example <img src='http://www.derschmale.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

