<?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>whitenoise</title>
	<atom:link href="http://www.blog.brettjephsondesign.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.blog.brettjephsondesign.net</link>
	<description>Flash, Unity and the web</description>
	<lastBuildDate>Sun, 29 Aug 2010 16:01:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flash on the Beach 2010 is coming soon</title>
		<link>http://www.blog.brettjephsondesign.net/?p=115</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=115#comments</comments>
		<pubDate>Sat, 28 Aug 2010 23:31:16 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=115</guid>
		<description><![CDATA[For those who are looking forward to Flash on the Beach this year, I&#8217;d like to heartily recommend the session by Jon Howard. He took the Elevator Pitch by storm last year and this time around he&#8217;s going to take the world by storm (and quite probably blow it up): http://www.flashonthebeach.com/sessions/index.php?pageid=2218. As I work with [...]]]></description>
			<content:encoded><![CDATA[<p>For those who are looking forward to Flash on the Beach this year, I&#8217;d like to heartily recommend the session by Jon Howard. He took the Elevator Pitch by storm last year and this time around he&#8217;s going to take the world by storm (and quite probably blow it up): <a href="http://www.flashonthebeach.com/sessions/index.php?pageid=2218">http://www.flashonthebeach.com/sessions/index.php?pageid=2218</a>.</p>
<p>As I work with him, I&#8217;ve seen a few of the things he&#8217;s brewing for the session and some of them look cool as. So get along to it. After all, who has even heard of these Branden Hall and Mike Chambers characters that he&#8217;s up against?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=115</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canon EOS 350D and Windows 7 (Why can&#8217;t you just get along)?</title>
		<link>http://www.blog.brettjephsondesign.net/?p=111</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=111#comments</comments>
		<pubDate>Sat, 28 Aug 2010 23:20:33 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=111</guid>
		<description><![CDATA[I&#8217;m back from three weeks of holidays and the travel bug is still at a feverish high but the older I get the more the home sick bug counters and yangs to the travel bug ying. Three weeks of taking it easy and I&#8217;m ill suited to the tasks that lay ahead over the next [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m back from three weeks of holidays and the travel bug is still at a feverish high but the older I get the more the home sick bug counters and yangs to the travel bug ying.</p>
<p>Three weeks of taking it easy and I&#8217;m ill suited to the tasks that lay ahead over the next three days before I get back to work.</p>
<p>First off, I have to download some four hundred photos of weddings, lakes, food, cathedrals, statues, paintings, people I vaguely know, gondalas, canals, etc and work out where they were taken and why. At the same time, I&#8217;ll have to sort wheat from chaff and, because some will be passed on to the wedding party we were out there with, I will have to kick start good ol&#8217; Photoshop and make a little better those pictures worth tampering with.</p>
<p>Nice to know then, that Windows 7 doesn&#8217;t even recognise my Canon EOS 350 camera. I know, it is at least 3 years old and thererfore should be resigned to the scrap heap of modern digital consumerism, but I&#8217;m perfectly happy with it and I&#8217;m a hoarder like that.</p>
<p>For those who suffer from the same lack of acknowledgement between said popular camera and said popular operating system (oh, that evil corporations would have better communication with one another), a handy tip, gleemed from Google:</p>
<p>Press Menu &gt; select the last menu &gt; set Communication to Print/PTP.</p>
<p>Then plug in the camera and the two items act as if they were childhood sweethearts reunited after many years.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=111</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google I/O and Unity</title>
		<link>http://www.blog.brettjephsondesign.net/?p=104</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=104#comments</comments>
		<pubDate>Fri, 21 May 2010 23:26:46 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=104</guid>
		<description><![CDATA[This blog post from Unity caught my attention: http://bit.ly/bUd9XF I had already started looking at this Native Client technology announced by Google and trying to work out what it could be used for &#8211; what the advantages were &#8211; but the possibility of playing Unity games without a plugin and directly through a browser (admittedly [...]]]></description>
			<content:encoded><![CDATA[<p>This blog post from Unity caught my attention:</p>
<p><a href="http://bit.ly/bUd9XF" target="_self">http://bit.ly/bUd9XF</a></p>
<p>I had already started looking at this Native Client technology announced by Google and trying to work out what it could be used for &#8211; what the advantages were &#8211; but the possibility of playing Unity games without a plugin and directly through a browser (admittedly just a Chromium build at the moment) seems pretty cool.</p>
<p>Now, if all the other browsers were to take up Native Client then we&#8217;d have  a truly 3d game-friendly web and with Unity 3 right around the corner things would get exciting!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=104</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unity 2.6</title>
		<link>http://www.blog.brettjephsondesign.net/?p=100</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=100#comments</comments>
		<pubDate>Wed, 28 Oct 2009 23:39:41 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=100</guid>
		<description><![CDATA[If you haven&#8217;t already tried the Unity game engine, then there is no better time than the present. One of the big announcements that has come out of Unite 09 is a change to Unity Indie: it is now free and it is just called Unity. For more details see this article: http://www.gamasutra.com/php-bin/news_index.php?story=25840. This makes [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t already tried the Unity game engine, then there is no better time than the present. One of the big announcements that has come out of Unite 09 is a change to Unity Indie: it is now free and it is just called Unity. For more details see this article: <a href="http://www.gamasutra.com/php-bin/news_index.php?story=25840">http://www.gamasutra.com/php-bin/news_index.php?story=25840</a>.</p>
<p>This makes it even easier for indie and hobbyist game developers to get into Unity and I think it is a good move by the Unity team. They are obviously getting enough progression from Indie to Pro to make this model viable. At the same time, I&#8217;m a bit disgruntled as I forked out for an Indie licence in the dark old days when these things cost money.</p>
<p>Unity 2.6 comes with some good features added: <a href="http://unity3d.com/unity/whats-new/unity-2.6" target="_self">http://unity3d.com/unity/whats-new/unity-2.6</a>. There aren&#8217;t many better IDEs around and all the features &#8211; particularly better performance, source control compatibility and the profiler &#8211; seem useful and should boost productivity. I think Adobe could take some pointers &#8211; especially for integrating the 3D features of flash player 10 into the IDE. How about, rather than gimmicky additions like <a href="http://www.blog.brettjephsondesign.net/?p=94" target="_self">the iPhone stuff </a>concentrate on making the IDE a better experience to work with (faster, less buggy) and adding features that will be used day-in, day-out.</p>
<p>Unity 2.6 ftw.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=100</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPhone Apps from Flash &#8211; Adobe MAX</title>
		<link>http://www.blog.brettjephsondesign.net/?p=94</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=94#comments</comments>
		<pubDate>Mon, 05 Oct 2009 20:03:29 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=94</guid>
		<description><![CDATA[So, for Flash developers and designers, the big news from the Adobe MAX keynote speech was that you can now produce iPhone applications from Flash CS5. This has been on a lot of people&#8217;s wish lists for a few years and if the twitter showing is anything to go by it gets a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>So, for Flash developers and designers, the big news from the Adobe MAX keynote speech was that you can now produce iPhone applications from Flash CS5. This has been on a lot of people&#8217;s wish lists for a few years and if the twitter showing is anything to go by it gets a lot of people excited.</p>
<p>Now, I might be the only Flash developer who doesn&#8217;t own either an iPhone or iPod Touch, but is this a big deal? A lot of developers are already making iPhone apps, either with Unity iPhone or objective-c. Although the iPhone market may be a profitable one it is also saturated and a million more Flash developers joining in isn&#8217;t going to make that any better.</p>
<p>Also, this isn&#8217;t Flash in the iPhone browser, which I think would have improved the iPhone and Flash, this just allows another way of making iPhone applications. There&#8217;s already Mono, Unity and objective-c, so Flash is going to open this platform up to some more Flash people and maybe help Adobe leak some of its market but I wonder if this might be another example of feature bloat from Adobe. I&#8217;d prefer to see this sort of thing as a plugin or separate app in the Adobe CS5 package not as part of the Flash IDE.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=94</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash on the Beach &#8211; in review</title>
		<link>http://www.blog.brettjephsondesign.net/?p=86</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=86#comments</comments>
		<pubDate>Sun, 27 Sep 2009 20:22:20 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Generative art]]></category>
		<category><![CDATA[Optimisation]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=86</guid>
		<description><![CDATA[I&#8217;ve had a pretty busy week with the Flash on the Beach conference taking up Monday to Wednesday, then leaving drinks for the Technical Lead in my department and finally my girlfriend&#8217;s birthday lunch (which involved a fair bit of wine and ended up at a friend&#8217;s 30th birthday house party). Flash on the Beach [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a pretty busy week with the Flash on the Beach conference taking up Monday to Wednesday, then leaving drinks for the Technical Lead in my department and finally my girlfriend&#8217;s birthday lunch (which involved a fair bit of wine and ended up at a friend&#8217;s 30th birthday house party).</p>
<p>Flash on the Beach was, yet again, a most enjoyable event. The three days of networking with fellow Flash designers and developers and learning some new tips, tricks and techniques from the gurus who frequent these events left me with some ideas and directions that I&#8217;d very much like to pursue.</p>
<p>Of real note, for me, were sessions by Joa Ebert, Mario Klingemann and Ralph Hauwert. I picked up some good tips elsewhere but felt I already knew a lot of what I was hearing, whereas these three individuals continue to broaden the horizon of what flash is capable of.</p>
<p>Joa Ebert&#8217;s session was the first time I&#8217;ve seen a standing ovation at one of these events and the guy stands out as a true master of what he is doing. He knows flash and its compiler inside-out and has used that knowledge and a great deal of research into optimisation techniques to create TAAS a program that streamlines and optimises the bytecode of a flash movie. This allows use of the Alchemy memory codes that improve the speed of some operations in flash. These have only been available via Alchemy and Haxe up until now. Joa was getting some significant speed improvements thanks to the project but other features include automatic UML generation and compiling Java or C# in to flash. Check out <a href="http://blog.joa-ebert.com/">Joa&#8217;s blog</a> for more on his fantastic work.</p>
<p>Mario Klingemann gave a typical session proving that math experimentation and play can yield great results for experimental generative art work. It&#8217;s good stuff and he explains it well. Also, he doesn&#8217;t seem to fall into the sub-philosophical or spiritualist nonsense that surrounds a lot of art.</p>
<p>Ralph Hauwert gave a very interesting session on the state of 3D and real time graphics in Flash. With Joa&#8217;s TAAS and the improvements in speed brought about by the native 3D apis in Flash, examples from Ralph and the Away 3D team are starting to look half way decent. The triangle culling is much better, shading is becoming a realistic possibility and the number of polygons is reaching above a few thousand. Flash isn&#8217;t at the Unity3D standard and won&#8217;t get there until hardware rendering is supported but you can do more than in the past.</p>
<p>The other big news from Ralph was his departure from the Papervision team, this seems a big blow for that project and leaves open several questions as to what will happen to Papervision3D X.</p>
<p>Those sessions left me impressed as to the progress Flash and its community is making. Lets hope the upcoming Adobe MAX conference brings even more exciting news about the platform we work on and build for.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=86</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash on the Beach 2009</title>
		<link>http://www.blog.brettjephsondesign.net/?p=82</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=82#comments</comments>
		<pubDate>Sat, 05 Sep 2009 22:52:58 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=82</guid>
		<description><![CDATA[It&#8217;s almost that time of year again, when a large contingency of the Flash designer and developer community descend on Brighton for three or four days of learning, networking and a bit of a jolly at Flash on the Beach (20th-23rd September). This is the fourth installment of the conference and it will be my [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost that time of year again, when a large contingency of the Flash designer and developer community descend on Brighton for three or four days of learning, networking and a bit of a jolly at <a href="http://www.flashonthebeach.com">Flash on the Beach</a> (20th-23rd September).</p>
<p>This is the fourth installment of the conference and it will be my third visit. The first time I went, I was an isolated flash developer and still fairly wet behind the ears. The experience proved both inspiring and very educational. I&#8217;d like to think my skills as a developer have improved immensely since that time but I still look forward to learning from the masters of the medium.</p>
<p>I haven&#8217;t decided my exact schedule yet but here are a few of my must sees:</p>
<ul>
<li>Keith Peters &#8211; Casual Game Architecture &#8211; his Actionscript Animation books have helped me out on more than one occasion and I find his sessions provide clear and straightforward explanations of fairly complicated subjects. Also great to get some further insight into casual games development.</li>
<li>Joa Ebert &#8211; Leaving the Sandbox &#8211; Joa is one of those rare flash developers who really understand compilers and bytecode and, from his recent blog entries, it seems he&#8217;s been working on some tools that could really help make actionscript code faster and better.</li>
<li>Mario Klingemann &#8211; Connecting the Dots &#8211; Mario never fails to astound with his brilliance at solving problems and the artistic output that he turns his skills toward. I always come away from his sessions with new ideas and a renewed enthusiasm.</li>
<li>Craig Swann &#8211; Choose Your Own Adventure &#8211; I saw Craig&#8217;s session at the first Flash on the Beach and it opened my mind to the possibilities of combining Flash, and the kind of visual output it is capable of, with physical world input via cameras, microphones and electronic detectors (a task made easier by the Arduino kit).</li>
<li>Seb Lee Delisle &#8211; Work/Play &#8211; I&#8217;ve enjoyed several of his past sessions and really like some of the work coming out of Plugin Media (see, for example, <a title="Big and Small" href="http://www.bbc.co.uk/cbeebies/bigandsmall/">Big and Small</a>) so look forward to what should be an entertaining session about putting fun and play back into the digital.</li>
</ul>
<p>I&#8217;ll post my impressions of how the event went sometime after September 23rd.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=82</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checkmate challenge on wonderfl</title>
		<link>http://www.blog.brettjephsondesign.net/?p=79</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=79#comments</comments>
		<pubDate>Fri, 10 Jul 2009 22:28:48 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=79</guid>
		<description><![CDATA[A colleague of mine (Swingpants) pointed me to the Checkmate challenge on wonderfl and I had a quick play. It&#8217;s a competition where you clone a basic starter code and come up with something of your own. I&#8217;m still looking for a decent idea to run with but I&#8217;d just like to say I&#8217;m very [...]]]></description>
			<content:encoded><![CDATA[<p>A colleague of mine (<a title="Swingpants" href="http://swingpants.com/" target="_self">Swingpants</a>) pointed me to the Checkmate challenge on <a title="wonderfl" href="http://wonderfl.net" target="_self">wonderfl</a> and I had a quick play. It&#8217;s a competition where you clone a basic starter code and come up with something of your own.</p>
<p>I&#8217;m still looking for a decent idea to run with but I&#8217;d just like to say I&#8217;m very impressed with the wonderfl site.</p>
<p>I&#8217;ve known about it for a while but this is the first time I&#8217;ve sat down and actually put some code into it. The compiler seems to respond well and the list of libraries available is good and expanding fast. It seems to be a really good tool for spiking new code ideas. The attributes that make it good for spiking are:</p>
<ul>
<li>online &#8211; so collaboration is easier</li>
<li>auto compiles every time code is changed</li>
<li>auto saves</li>
<li>allows you to fork and browse a lot of public code (including some from bonafide flash experts like Quasimondo)</li>
</ul>
<p>So, if you haven&#8217;t had a look already I recommend a visit to <a title="wonderfl" href="http://wonderfl.net">wonderfl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=79</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash and the art of optimization</title>
		<link>http://www.blog.brettjephsondesign.net/?p=57</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=57#comments</comments>
		<pubDate>Fri, 22 May 2009 12:41:44 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=57</guid>
		<description><![CDATA[I expect every flash developer reaches a point where they&#8217;re ambitions bump up against the limitations of what the flash player can actually do. With every new version of flash the ceiling may get a little higher but it doesn&#8217;t take long for the community to start banging their heads again. Some of the most [...]]]></description>
			<content:encoded><![CDATA[<p>I expect every flash developer reaches a point where they&#8217;re ambitions bump up against the limitations of what the flash player can actually do. With every new version of flash the ceiling may get a little higher but it doesn&#8217;t take long for the community to start banging their heads again.</p>
<p>Some of the most interesting flash work out there has to be by those developers who can push the platform that little bit further; thankfully a lot of them are willing to share their techniques.</p>
<p>In this article, I thought I&#8217;d pull together some of the advice on optimisation I&#8217;ve picked up from blogs, conferences, comments and books.</p>
<p>My earliest exposure to data structures and optimisation came from <a title="Polygonal labs" href="http://lab.polygonal.de/">Polygonal labs</a>. The blog is immensely informative. Here are some of the best articles for understanding optimisation:</p>
<ul>
<li><a href="http://lab.polygonal.de/2007/06/06/int-uint-and-number-data-type-conversion/">Explains the int, uint and number data types</a> and which to use and when</li>
<li><a href="http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/">Bitwise gems for fast math</a></li>
<li><a href="http://lab.polygonal.de/2007/07/18/fast-and-accurate-sinecosine-approximation/">Fast sin/cosine approximation</a></li>
<li><a href="http://lab.polygonal.de/index.php?s=object+pools">Object pools</a></li>
</ul>
<p><a href="http://lab.polygonal.de/ds/">Data structures</a> and <a href="http://lab.polygonal.de/motor_physics/">motor2</a> are both really good libraries and worth checking out, too.</p>
<p><a title="Joa Ebert" href="http://blog.joa-ebert.com/">Joa Ebert</a> has an <a title="Actionscript Wiki" href="http://wiki.joa-ebert.com/index.php/Main_Page">actionscript wiki</a> with lots of useful optimisation techniques.</p>
<p>Nicolas Cannasse is the brilliant mind behind MTASC and Haxe and his blog is great for tips on how the flash virtual machines work, what actionscript gets turned into and indeed on optimising that code. His <a href="http://ncannasse.fr/blog/">blog</a> is worth keeping an eye on for articles such as:</p>
<ul>
<li><a href="http://ncannasse.fr/blog/optimizing_perlin_noise?lang=en">Optimising perlin noise</a></li>
<li><a href="http://ncannasse.fr/blog/virtual_memory_api">Virtual memory API for Haxe</a></li>
</ul>
<p><a href="http://haxe.org/">Haxe</a> is also worth a look, as it gives you access to the op codes that Alchemy uses for performance gains and has some really nice features.</p>
<p>Mario Klingemann is a great source of ideas when it comes to boosting performance and applies them to some really interesting flash output. I found this article on <a title="Optimising seam carving" href="http://www.quasimondo.com/archives/000652.php">optimising a seam carving technique</a> very useful as are his conference presentations &#8211; <a title="Slides from past events" href="http://lectures.quasimondo.com/">slides from past events</a>.</p>
<p>Ryan Christensen at Drawlogic does a good job of explaining <a href="http://drawlogic.com/2007/06/06/as3-interesting-numeric-storage-behavior/">number weirdness in flash</a> and also has a recent list of <a href="http://drawlogic.com/2009/05/22/as3-flash-efficient-code-techniques-vectors-in-flash-10-faster-jpeg-encoding-other-optimization-notes/">optimisation links</a>.</p>
<p>Optimisation will make your code close to unreadable. Do not optimise prematurely. The job is probably best done by a compiler or a pre/post-processor. Unfortunately, the flash compiler does very little to optimise code. <a href="http://haxe.org/">Haxe</a> can do this job and <a href="http://code.google.com/p/as3c/">as3c</a> is another option.</p>
<p>Thanks go to those developers who came up with these techniques. I&#8217;m sure there&#8217;s more to add and I will probably come back to this subject in a later post but, in the meantime, are there any tips that you&#8217;d like to share? If the answer is yes then please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=57</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Initial impressions of Box2D and motor2</title>
		<link>http://www.blog.brettjephsondesign.net/?p=13</link>
		<comments>http://www.blog.brettjephsondesign.net/?p=13#comments</comments>
		<pubDate>Sun, 17 May 2009 19:38:59 +0000</pubDate>
		<dc:creator>brejep</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[box2D]]></category>
		<category><![CDATA[motor 2]]></category>

		<guid isPermaLink="false">http://www.blog.brettjephsondesign.net/?p=13</guid>
		<description><![CDATA[Over the last two weeks, I&#8217;ve been using the actionscript3 port of Box2D in a Flash platform game. It was the first time I&#8217;d done any proper work using Box2D and I wasn&#8217;t wholly enthused by the experience. I&#8217;m sure it is a good physics engine for C++ developers but it has been ported very [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last two weeks, I&#8217;ve been using the actionscript3 port of <a title="Box 2D" href="http://box2dflash.sourceforge.net/" target="_self">Box2D</a> in a Flash platform game. It was the first time I&#8217;d done any proper work using Box2D and I wasn&#8217;t wholly enthused by the experience.</p>
<p>I&#8217;m sure it is a good physics engine for C++ developers but it has been ported very directly and I think could do with rewriting to fit with the actionscript language. It doesn&#8217;t feel like you&#8217;re learning an API, more like you&#8217;re venturing into another language, a task not helped by some lacklustre documentation and a need for good examples. No doubt, some optimisation could also improve matters.</p>
<p>Having said that, the engine is obviously powerful and provided many more features and physical simulations than I could possibly need in a simple game.</p>
<p>It was only after I&#8217;d got a fair way into the project that I had a look at another port of Box2D, this time from <a title="Polygonal Labs" href="http://lab.polygonal.de/" target="_self">polygonal labs</a>. I&#8217;ve been impressed with a lot of their articles, demos and the data structures class library, so I thought I&#8217;d investigate the <a title="Motor 2 physics engine" href="http://code.google.com/p/motor2/" target="_self">motor2 physics engine</a> a little further.</p>
<p>I have to admit I&#8217;ve only just scratched the surface of what both of these physics engines are capable of and my intentions are to carry on playing around and experimenting with both to see what I can get out of them.</p>
<p>In the meantime, here are some quick examples (with source code) to compare the two libraries:</p>
<h3>Motor2 version (requires flash player 10):</h3>
<p><object width="400" height="300" data="/wp-content/uploads/2009/07/motor2demo.swf" type="application/x-shockwave-flash"><param name="src" value="/wp-content/uploads/2009/07/motor2demo.swf" /></object></p>
<p>Download the <a title="Motor 2 physics demo" href="http://www.blog.brettjephsondesign.net/wp-content/uploads/2009/05/motor2demo.as" target="_blank">source code</a>.</p>
<h3>Box2D version:</h3>
<p><object width="400" height="300" data="/wp-content/uploads/2009/07/box2ddemo.swf" type="application/x-shockwave-flash"><param name="src" value="/wp-content/uploads/2009/07/box2ddemo.swf" /></object></p>
<p>Download the <a title="Box2D demo" href="http://www.blog.brettjephsondesign.net/wp-content/uploads/2009/05/box2ddemo.as" target="_blank">source code</a>.</p>
<p>In both cases, I have made a very simple weighing scale from a revolute joint and a rigid box. I&#8217;ve then added another 98 boxes (49 either side) that fall on to the scale.</p>
<p>The motor2 engine has been updated to use the Vector functionality included with flash player 10 and makes use of the neat optimisation techniques you&#8217;d expect from Polygonal labs. Comparing the two on my PC (Dual Core 2.13GHz, 1Gb RAM with Windows XP and running the Firefox 3 browser), the motor 2 demo seems to run at a steady 45 to 50 fps where as the box2d version runs between 25 and 40 fps.</p>
<p>The motor 2 API has also had some minor tweaks to fit a little snugger with actionscript 3. I feel this makes it a little easier for a developer who works predominantly in Flash to start using the library.</p>
<p>While these are some initial impressions I have from looking at the two class libraries, I hope to put motor 2 to further use and will post some more demos here, in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.brettjephsondesign.net/?feed=rss2&amp;p=13</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.705 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-09-04 23:37:27 -->
