<?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>epologee.com blog</title>
	<atom:link href="http://epologee.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://epologee.com/blog</link>
	<description>About Flash, kites and other happy things</description>
	<lastBuildDate>Thu, 25 Mar 2010 11:43:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gilbèrt Francois Photography</title>
		<link>http://epologee.com/blog/2010/gilbert-francois-photography/</link>
		<comments>http://epologee.com/blog/2010/gilbert-francois-photography/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 11:35:09 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=202</guid>
		<description><![CDATA[My second Wordpress based Flash site went online today, the first release of photographer and friend Gilbèrt François&#8217;s new portfolio. It is also my first commercial project that has a fall back theme for mobile browsing.

The targets were to display his photography as large as possible, while keeping the interface clutter to a minimum. Instead [...]]]></description>
			<content:encoded><![CDATA[<p>My second Wordpress based Flash site went online today, the first release of photographer and friend <a href="http://www.gilbertfrancois.com" target="_blank">Gilbèrt François&#8217;s new portfolio</a>. It is also my first commercial project that has a fall back theme for mobile browsing.</p>
<p><a href="http://www.gilbertfrancois.com" target="_blank"><img class="alignnone size-full wp-image-203" title="gilbert-screenshot" src="http://epologee.com/blog/wp-content/uploads/2010/03/gilbert-screenshot.jpg" alt="" width="440" height="275" /></a></p>
<p>The targets were to display his photography as large as possible, while keeping the interface clutter to a minimum. Instead of regarding the website &#8220;as is&#8221;, we&#8217;ll keep on working on the experience with design and technical improvements over time. The current feature list contains:</p>
<ul>
<li>Full screen photo viewing with keyboard support (left, right)</li>
<li>Auto hiding interface, on mouse inactivity</li>
<li>Dynamic categories and posts based on Wordpress management</li>
<li>Pre-caching of consequent photographs</li>
<li>iPhone theme fallback</li>
</ul>
<p><img class="alignnone size-full wp-image-207" title="gilbert-iphone" src="http://epologee.com/blog/wp-content/uploads/2010/03/gilbert-iphone.jpg" alt="" width="211" height="400" /></p>
<p>We&#8217;re still looking for a designer to help us with the next release, so if you&#8217;re interested, drop me a line!</p>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2010/gilbert-francois-photography/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress as a CMS for Flash sites</title>
		<link>http://epologee.com/blog/2009/wordpress-as-a-cms-for-flash-sites/</link>
		<comments>http://epologee.com/blog/2009/wordpress-as-a-cms-for-flash-sites/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 16:40:47 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=196</guid>
		<description><![CDATA[The idea to use Wordpress as a back end for Flash websites is not original and it has been done many times before, yet it&#8217;s very hard to find a place where people explain exactly how they did it. For one of my latest projects, the campaign site of the upcoming winter edition of Heemstede [...]]]></description>
			<content:encoded><![CDATA[<p>The idea to use <a href="http://wordpress.org/download/">Wordpress</a> as a back end for Flash websites is not original and it has been done many times before, yet it&#8217;s very hard to find a place where people explain exactly how they did it. For one of my latest projects, the campaign site of the upcoming <a href="http://www.heemstedejazz.nl">winter edition of Heemstede Jazz</a>, I decided to go for it. I managed to put the right pieces of the puzzle together and want to share it with you here.</p>
<p>When first googling the subject, I found a lot of false advice.</p>
<p><strong>Bad: XML-RPC</strong><br />
There are people suggesting to use the <a href="http://blog.absentdesign.com/as3-library-for-the-wordpress-api">XML-RPC connector to get at your data</a>. For me this turned out to be a dead end. The XML-RPC is designed for creating alternate ways to maintain your Wordpress articles, not for read only access of your articles.</p>
<p><strong>Bad: Atom-RSS</strong><br />
Then there&#8217;s people <a href="http://wordpress.org/support/topic/299314">using the Atom-RSS feed</a> to get to the data. The Atom feed is XML and you can read the fields and it works fine. But if you want to do anything custom, it will have to pulling your hair in no-time. Plus, it outputs so much more than you actually need, it&#8217;s a waste of your time and bandwidth.</p>
<p><strong>Bad: Direct MySQL connection</strong><br />
The third way I got excited about was to completely ignore the Wordpress install and just connect to the database directly. This is without a doubt very powerful, but because Wordpress is updated and changed so often, it&#8217;s hard to find something online that works with the current version. <a href="http://www.blog.noponies.com/flash-press/">No ponies&#8217; Flash press</a> looked promising, even using AMF to speed up things, but it&#8217;s no longer compatible with the latest Wordpress. Moving on!</p>
<p><strong>Great: Custom XML Theme</strong><br />
Finally <a href="http://blog.base42.nl/">Jankees van Woezik</a> got me in the right direction with a fourth suggestion, which proved to be exactly what I needed for my project. Instead of trying third party plugins and XML connectors to get to your data, just create your own theme from scratch and you&#8217;ll be able to access pretty much anything inside Wordpress. It&#8217;s not as hard as I though it would be, even with my PHP skills being neglected for several years.</p>
<p>In the end you&#8217;ll have a website running on Wordpress, containing all the data you want to display in plain HTML. Google will love the ease of indexing your content, but any human visitor will only see the fullscreen Flash you put on top of it all, utilizing SWFObject. Check out the source at <a href="http://www.heemstedejazz.nl">Heemstede Jazz</a> to see what I mean. Just before the SWFObject placement, there&#8217;s a little Javascript magic goin on by <a href="http://blogger.xs4all.nl/peterned/">Peter Nederlof</a>. It takes all the HTML content, converts it to correct XML and then <a href="http://grabs.epologee.com/244142baf743f822bbcf1ef546703f8d.png" rel="shadowbox[post-196];player=img;">passes it to your application as a flash var</a>. Thanks Peter, for letting me use your cleaner library! As an alternative to passing the HTML content as a flash var, you can also load your content as XML from your site&#8217;s index.php directly, if you don&#8217;t mind loading the content twice.</p>
<p>Once in Flash, you can parse the passed XML and use it any way you like. By default, Wordpress let&#8217;s you output separate fields for any articles title, body text, category, tags and excerpt. If you need more control, Wordpress has the ability to add custom fields to every post, but if you don&#8217;t know what you&#8217;re doing with them, you can get lost very quickly. Again Jankees pointed me to the great plugin called <a href="http://wpgogo.com/development/custom-field-template.html">Custom Field Template</a>. With it, you can assign a certain group of custom fields (text fields, dates, image uploads) to an article, based on it&#8217;s category. <a href="http://grabs.epologee.com/c0e2d170419008c4a66bd53b48fd5293.png" rel="shadowbox[post-196];player=img;">Click here to see an image of it in action</a>.</p>
<p>Once you have the custom field templates in place, you can start creating your theme. If you&#8217;re not a PHP developer, you&#8217;ll definately love the <a href="http://yoast.com/tools/textmate">Wordpress bundle for TextMate</a>. It has all the important loop methods and will help you get to the right WP-methods for finding your data.</p>
<p>As an added bonus to passing completely maintainable content to your Flash site, your site even has correct fallback content when viewing it with an iPhone. Thanks Jankees and Peter for helping me with all of this!</p>
<p><a href="http://epologee.com/blog/wp-content/uploads/2009/11/wordpress_xml_theme.zip">Here&#8217;s the Wordpress xml theme</a> I made for the Heemstede Jazz website if you need a head start.</p>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2009/wordpress-as-a-cms-for-flash-sites/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Wonderful App: Default Folder X</title>
		<link>http://epologee.com/blog/2009/wonderful-app-default-folder-x/</link>
		<comments>http://epologee.com/blog/2009/wonderful-app-default-folder-x/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 11:31:41 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=179</guid>
		<description><![CDATA[This app was brought to my attention in 2006 I guess, by Floris Drupsteen. Default Folder X does so many things so exceptionally well that the creators themselves seem to be a little lost in explaining the application&#8217;s unique selling points, over at their website. Don&#8217;t have their site fool you, the app itself is [...]]]></description>
			<content:encoded><![CDATA[<p>This app was brought to my attention in 2006 I guess, by <a href="http://floris.drupsteen.nl/">Floris Drupsteen</a>. Default Folder X does so many things so exceptionally well that the creators themselves seem to be a little lost in explaining the application&#8217;s unique selling points, over <a href="http://www.stclairsoft.com/DefaultFolderX/">at their website</a>. Don&#8217;t have their site fool you, the app itself is awesome.</p>
<p>DFX runs in your system&#8217;s background and whenever any other application triggers an open or save dialog, it gets &#8220;hijacked&#8221; by DFX, and the result is FTW. The new open and save dialog gets a visual makeover, and if you resize it or change the view from column to details or list, it will actually remember this for the next time. The program&#8217;s name hints to the feature that you can set a &#8220;default folder&#8221; for every application on your machine, and it adds some handy shortcuts to the side of your dialog to quickly navigate to previous locations, favorite locations, etc.</p>
<p>Yet the one feature that had me pulling out my credit card (single user license 34.96 USD) is the &#8220;Finder-click&#8221; feature.</p>
<p><a href="http://epologee.com/blog/wp-content/uploads/2009/10/Default-Folder-X.jpg" rel="shadowbox[post-179];player=img;"><img class="alignnone size-medium wp-image-180" title="Default-Folder-X" src="http://epologee.com/blog/wp-content/uploads/2009/10/Default-Folder-X-440x275.jpg" alt="Default-Folder-X" width="440" height="275" /></a></p>
<p>Your whole screen turns dark when you get an open or save dialog, but when you move your mouse over Finder windows in the background, their outline gets highlighted and you can read the Finder window&#8217;s name. If you then click the folder, DFX navigates the open/save dialog to the location of that Finder window. It&#8217;s the fastest way to navigate to a certain location on your computer, especially if you&#8217;re a nested-directory-fan like me.</p>
<p>Before I start on a project, I now open a single finder window and browse to the root folder belonging to that project. It doesn&#8217;t need to be big, it should just be present. Then, whenever I need to save a file, be it an image, a text file or -God forbid- a spread sheet, DFX will help me get to the root of my project with one click, and my though process of saving the file and getting my work done never gets interrupted by having to think about where the file should go.</p>
<p>Awesome app. Check it out over at <a href="http://www.stclairsoft.com/DefaultFolderX/">St. Clair Software</a>.</p>
<p>Over time, I&#8217;ll be <a href="http://epologee.com/blog/2009/wonderful-app-default-folder-x/">collecting my wonderful app reviews</a> in this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2009/wonderful-app-default-folder-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wonderful Apps</title>
		<link>http://epologee.com/blog/2009/wonderful-apps/</link>
		<comments>http://epologee.com/blog/2009/wonderful-apps/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 11:30:54 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=175</guid>
		<description><![CDATA[If I were to believe the story my parents tell me, I knew how to operate a TV and a video recorder before I could walk, which was still in the seventies. I just love the buttons. Nobody stopped me from becoming the kid that was &#8220;good with computers&#8221; and from doing everything the digital [...]]]></description>
			<content:encoded><![CDATA[<p>If I were to believe the story my parents tell me, I knew how to operate a TV and a video recorder before I could walk, which was still in the seventies. I just love the buttons. Nobody stopped me from becoming the kid that was &#8220;good with computers&#8221; and from doing everything the digital era had to offer, I eventually stranded in the &#8220;software developer&#8221; segment, even though I consider ActionScript programming to be one of the lesser art forms out there.</p>
<p>Programming is often seen as something technical, nerdy and unimaginative. Yet what I see around me on a daily basis is a great amount of creativity, and an ever expanding community of people that want to create and improve on the experience of the &#8220;digital era&#8221; we are currently in.</p>
<p>I&#8217;ve embarked on a little detour from web development myself, exploring the art of desktop apps, and it has sparked a deep appreciation for the tools that actually make my day better. Taking away frustration, adding speed to my work flow, or just making stuff pretty.</p>
<p>I intend to share the wonderful apps I come across here, if not to share with my non-existent readers, at least to document the reason why these apps are so cool for my own future purposes:</p>
<ol>
<li><a href="http://epologee.com/blog/2009/wonderful-app-default-folder-x/">Default Folder X, by St. Clair Software</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2009/wonderful-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nuon Solar Race Holland</title>
		<link>http://epologee.com/blog/2009/nuon-solar-race-holland/</link>
		<comments>http://epologee.com/blog/2009/nuon-solar-race-holland/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 13:30:21 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hyves]]></category>
		<category><![CDATA[media republic]]></category>
		<category><![CDATA[open social]]></category>
		<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=167</guid>
		<description><![CDATA[For Dutch enrgy supplier Nuon, the interactive agency Media Republic created an online campaign around the biannual solar race in Australia, a race covering more than 3000 km from Darwin to Adelaide. As my last project here, this was a lot of fun to develop!
Via the Dutch open social platform Hyves, participants can race each [...]]]></description>
			<content:encoded><![CDATA[<p>For Dutch enrgy supplier <a href="http://www.nuon.nl">Nuon</a>, the interactive agency <a href="http://mediarepublic.com">Media Republic</a> created an online campaign around the biannual solar race in Australia, a race covering more than 3000 km from Darwin to Adelaide. As my last project here, this was a lot of fun to develop!</p>
<p>Via the Dutch open social platform <a href="http://hyves.nl/actie/nuonsolarrace">Hyves</a>, participants can race each other by betting on the spots with the highest concentration of solar power. Place your solar panel on a map of the Netherlands and tune your racer to be best suited for heavy rainfall or wind, and see your rank rise to the top of the list with thousands of participating Hyves members. The game is fed with near-real-time weather data, creating an entertaining and competitive game that has you coming back as often as you like. The more active you are, the better chances you have on winning the rather awesome prizes.</p>
<p>I was the lead developer for this project, and had great fun laying out the technical details, from little race car animations to <a href="http://epologee.com/blog/2009/triangles-interpolation-and-the-math-i-forgot/">weather data interpolation</a>. Thank you, Media Republic, for having this opportunity!</p>
<p>Because this project is only visible within Hyves, I made a screencapture showing some of the features and visual style. Don&#8217;t forget the HD button when viewing!</p>
<p><object width="441" height="248"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6699298&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=6699298&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="441" height="248"></embed></object></p>
<p>As long as the campaign is still active (ends October 23rd), you can participate and race for the prizes, check out the <a href="http://actie.nuonsolarteam.nl">Nuon Solar Race Holland</a>. Also don&#8217;t miss the site of the <a title="The team's site is made by LBi Lost Boys" href="http://www.nuonsolarteam.nl">Nuon Solar Team</a> for full details on the actual race in Australia.</p>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2009/nuon-solar-race-holland/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Focus and reload pages in Firefox with ANT</title>
		<link>http://epologee.com/blog/2009/focus-and-reload-pages-in-firefox-with-ant/</link>
		<comments>http://epologee.com/blog/2009/focus-and-reload-pages-in-firefox-with-ant/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 21:45:02 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=149</guid>
		<description><![CDATA[When you work with FDT to create flash products, there are a number of ways to compile your code and view the result. My favorite way is by using the External SWF Viewer, which remembers it&#8217;s size and where it sits, and correctly obtains focus when ready for action. However, when you&#8217;re dealing with a [...]]]></description>
			<content:encoded><![CDATA[<p>When you work with FDT to create flash products, there are a number of ways to compile your code and view the result. My favorite way is by using the External SWF Viewer, which remembers it&#8217;s size and where it sits, and correctly obtains focus when ready for action. However, when you&#8217;re dealing with a project that needs a specific browser to run in, the standard &#8220;open in browser&#8221; feature of FDT (or Flex for that matter), has shortcomings. I don&#8217;t like that it opens a new window or tab every time you hit compile, which is especially painful if you&#8217;re doing things with performance guzzlers like Papervision. The alternative where you have to refresh the page with your keyboard or mouse is equally painful.</p>
<p><a href="http://blog.base42.nl/2009/05/05/automatically-refresh-page-on-focus/">Jankees van Woezik</a> had me thinking of it a while back, when he came up with a little ANT method to focus Firefox, and then a Javascript to reload the page. That however, doesn&#8217;t work too well when you&#8217;re running an open social platform like Facebook, or its Dutch counterpart Hyves.</p>
<p>With a little more googling I stumbled upon <a href="http://simile.mit.edu/wiki/Fresno">Fresno</a>, a pretty nifty command line tool for executing Javascript in Firefox via <a href="http://wiki.github.com/bard/mozrepl">MozRepl</a>, a Mozilla add-on. Guess what you get when you combine them with ANT? Instant focus and reloading in Firefox from within your build script!</p>
<p>Download Fresno from <a href="http://simile.mit.edu/repository/fresno/trunk">their SVN repository</a> (I like having it as an svn:external in the projects that use it) and install the MozRepl add-on. Be sure to actually start it from the Firefox tools menu, or Fresno can&#8217;t connect to it. After that, take this ANT target and modify it to have the fresno directory match your project.</p>
<pre class="brush: xml; highlight: [5];">&lt;target name="focus Firefox and reload page"&gt;
 &lt;exec executable="open"&gt;
 &lt;arg line="-a Firefox" /&gt;
 &lt;/exec&gt;
 &lt;exec executable="flash/tools/fresno/fresno"&gt;
 &lt;arg line="-j 'content.location.reload()'" /&gt;
 &lt;/exec&gt;
&lt;/target&gt;</pre>
<p>Et voila! Works like a charm, and saves you quite a lot of valuable keystrokes!</p>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2009/focus-and-reload-pages-in-firefox-with-ant/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Triangles, interpolation and the math I forgot</title>
		<link>http://epologee.com/blog/2009/triangles-interpolation-and-the-math-i-forgot/</link>
		<comments>http://epologee.com/blog/2009/triangles-interpolation-and-the-math-i-forgot/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 22:51:35 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=134</guid>
		<description><![CDATA[For an online project that's almost completed, we're working with collected real-time data from thirty-something weather stations to determine the weather at any given location in the Netherlands. Now that the product is working we concluded that our calculation to interpolate the weather was really, really bad, so I needed to come up with some last-minute thinking. Turns out I had to cough up my third grade math teachings and work the numbers for 36 hours, only to realize that it was a damn hard topic.

It took me eight different approaches before I settled for the last one, but the solution is still not optimal. If you're into math, please leave a comment if you know a better way.]]></description>
			<content:encoded><![CDATA[<p>For an online project that&#8217;s almost completed, we&#8217;re polling real-time data from thirty-something weather stations to determine the weather at any given location in the Netherlands. Now that we&#8217;ve started beta testing, we concluded that our calculation to interpolate the weather was really, really bad, so I needed to come up with some last-minute thinking. Turns out I had to cough up my third grade math teachings and work the numbers for 36 hours, only to realize that it was a damn hard topic and I should have thought of this earlier in the process.</p>
<p>Thirty points are spread over a fairly spacious area. Pick a random point D within or close to that area, find the nearest three points A, B and C and interpolate the relative distances to a weight distribution list (a, b and c), that we can use to multiply the actual weather values: A.wind * a + B.wind * b + C.wind * c. That way we can make a good estimate of what the weather must be like at point D. Sounds simple, right? I thought so too, but found it was a lot harder than I assumed. I hope I can spare someone the trouble of going through all this, by explaining what I did.</p>
<p>The first thing to clarify is that if you have the weighing parameters for a given point in space, you can weigh any numerical data. For my project I need to weigh weather data (radiation, wind, heat, etc.), but for figuring out what algorithm to take, I used colors. They&#8217;re easy to compute and the visual result will instantly tell you if you&#8217;re on to something. So I started out writing a little test that would allow me to draw colored triangles:</p>
<p style="text-align: center;"><img class="aligncenter" title="Triangle with color and arbitrary numerical values" src="http://grabs.epologee.com/ab0cdfb97f2998ed1f39e79a87845d97.png" alt="" width="337" height="203" /></p>
<p>As you can see, the fourth point called &#8220;D&#8221; shows the interpolated value both in color and numbers, and if you let that point wander through every location in the area, you can draw a pretty picture like this this:</p>
<p style="text-align: center;"><img class="aligncenter" title="Interpolated color values" src="http://grabs.epologee.com/f7e8c21b9ff4cbd888f63dd3d75760f9.png" alt="" width="337" height="203" /></p>
<p>The algorithm measures the distance of D to the nearest point on the line opposite of A, which is BC and stores it as the weight of point A. You do this three times and then normalize the values by dividing them through the total of the three distances. You then have three weight values that total 1, or 100%, and you can use them to multiply the original values. This alone is not enough. Because this method will only calculate correctly if the point you&#8217;re dealing with is within the borders of the triangle! I was so happy to see the insides of the triangle all pretty and smooth, but I felt pretty stupid when <a title="Pretty, but also pretty useless!" href="http://grabs.epologee.com/588d629275073f8e22759e7fa29ca633.png" rel="shadowbox[post-134];player=img;">everything outside of the triangle went horribly wrong</a>. The solution is to find out on what side of each line point D is. If it&#8217;s on the same side as the corner you&#8217;re weighing, the weight is valid. If it&#8217;s on the other side of the line, you should set it&#8217;s value to zero and stretch the remaining weights to become 100%. That way you get a nice and clean interpolation, whether you&#8217;re inside or outside the triangle.</p>
<p>If someone could have told me this, it would have saved me some 30 hours in the last week before going live with the project, but hey, I feel a lot smarter now that I&#8217;ve figured it out myself! Here&#8217;s an interactive demo:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_interpolation_277726825"
			class="flashmovie"
			width="100%"
			height="330">
	<param name="movie" value="http://projects.epologee.com/experimental/interpolation/interpolation.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://projects.epologee.com/experimental/interpolation/interpolation.swf"
			name="fm_interpolation_277726825"
			width="100%"
			height="330">
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>The resulting images might look familiar to you, if you&#8217;ve ever dealt with 3D visualization techniques, because it is called <a href="http://en.wikipedia.org/wiki/Gouraud_shading">Gouraud Shading</a>. I&#8217;m not sure if I&#8217;m using the exact same method, because all reference sites that talk about <a href="http://www.cs.caltech.edu/courses/cs171/assignments/hw3.shtml">Gouraud</a> are a bit too elaborate for my use. I don&#8217;t have a 3D coordinate space, I don&#8217;t have lighting, I&#8217;m not even working towards a visual result. I just want to calculate the weather!</p>
<p>It took me <a title="Wrong - weird value flips" href="http://grabs.epologee.com/0ed200a536060c717343daa5f270b5d8.png" rel="shadowbox[post-134];player=img;">several</a> <a title="Wrong - no &quot;true&quot; values anywhere" href="http://grabs.epologee.com/efef6ca3c59df0c5ec463c33bab78653.png" rel="shadowbox[post-134];player=img;">wrong</a> <a title="Wrong - blerg, frustrating!" href="http://grabs.epologee.com/9f96ce17fe842b0c3bb444da106d8de0.png" rel="shadowbox[post-134];player=img;">approaches</a> before I finally got this one up here, but the solution is still not optimal. For the example of three points, my last method nailed it. But I don&#8217;t just have three points, I have thirty! In 3D applications, all points that are used for shading, are always within the triangles of the mesh. But for my application, I neither have a mesh, nor can I stay within the triangles that the weather stations define. Together with automatic sorting of the three nearest points, this introduces a margin of error, <a title="Interpolation quirks with 3+ points" href="http://grabs.epologee.com/44c448b9e0a310a2e1f01dd2d9dd9b18.png" rel="shadowbox[post-134];player=img;">as you can see in this image</a>. I have tested it and because the measured weather data is already smoothed out by mother nature, this presents no big issues.</p>
<p>However, if there&#8217;s someone out there that knows a better solution to my problem, please share!</p>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2009/triangles-interpolation-and-the-math-i-forgot/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Session at 360&#124;flex Conference</title>
		<link>http://epologee.com/blog/2009/session-at-360flex-conference/</link>
		<comments>http://epologee.com/blog/2009/session-at-360flex-conference/#comments</comments>
		<pubDate>Thu, 21 May 2009 03:08:38 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Papervision3D]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=107</guid>
		<description><![CDATA[For the past few days I&#8217;ve been in Indianapolis, USA, where the 360&#124;flex conference was held. I was invited by the awesome people of Powerflasher to come and support Frank Müller in promoting the FDT coding solution. It&#8217;s been a fun few days and the weather was great as well, although I spent most time [...]]]></description>
			<content:encoded><![CDATA[<p>For the past few days I&#8217;ve been in Indianapolis, USA, where the <a href="http://360flex.org">360|flex conference</a> was held. I was invited by the awesome people of <a href="http://www.powerflasher.de">Powerflasher</a> to come and support <a title="Tweeting Frank" href="http://www.twitter.com/base64">Frank Müller</a> in promoting the <a href="http://fdt.powerflasher.com">FDT coding solution</a>. It&#8217;s been a fun few days and the weather was great as well, although I spent most time inside the conference center, where the airco was running overtime. Frank actually got a cold with 28ºC outside!</p>
<p>People close to me probably know I have a very strong opinion on live coding during conference talks, so it&#8217;s only ironic that my session today consisted of 95% live coding. But that went really well, and the latest FDT beta crunched every build flawlessly. I started out demonstrating the ways in which FDT helps the developer get rid of the standard small stuff, like creating classes, methods and variables, and finished with creating a little Indianapolis 500 racing simulation all in about 70 minutes.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_indianapolis500_1319574430"
			class="flashmovie"
			width="100%"
			height="280">
	<param name="movie" value="http://projects.epologee.com/powerflasher/360flex/indianapolis500.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://projects.epologee.com/powerflasher/360flex/indianapolis500.swf"
			name="fm_indianapolis500_1319574430"
			width="100%"
			height="280">
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Here&#8217;s the result, use the arrow keys to drive the track, and correct, there is no collision detection. The *real* annual <a href="http://indy500.com">Indianapolis 500</a> race is this Sunday, but unfortunately we won&#8217;t be here to see it. We did go to the track after the conference today and rode <a href="http://epologee.com/blog/wp-content/uploads/2009/05/img_0358-440x330.jpg" rel="shadowbox[post-107];player=img;">one lap on it with our rental Toyota</a>! That was pretty damn cool, I&#8217;ll tell ya! If I get to go to Indianapolis next time, I&#8217;m sure going to extend my stay to be able to attend the race.</p>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2009/session-at-360flex-conference/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change of plans&#8230;</title>
		<link>http://epologee.com/blog/2009/change-of-plans/</link>
		<comments>http://epologee.com/blog/2009/change-of-plans/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 14:03:15 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=97</guid>
		<description><![CDATA[So there I am, minding my freelance business, and along comes a company that offers me a job. This happened a few times now since I left LBi, and while it feels very nice to be asked to come work somewhere, I just didn&#8217;t feel like swapping my newly acquired freedoms for yet another company. [...]]]></description>
			<content:encoded><![CDATA[<p>So there I am, minding my freelance business, and along comes a company that offers me a job. This happened a few times now since I left LBi, and while it feels very nice to be asked to come work somewhere, I just didn&#8217;t feel like swapping my newly acquired freedoms for yet another company. This last offer however, wasn&#8217;t just about doing the same work under a company flag. I was offered an awesome and challenging position at <a href="http://www.mediarepublic.com">Media Republic</a>&#8230; and I took it!</p>
<p style="text-align: center;"><a href="http://www.mediarepublic.com"><img class="aligncenter" src="http://grabs.epologee.com/51372185d8fa31867a61d4898835bc29.png" alt="" width="430" height="137" /></a></p>
<p>Starting april 1st I&#8217;ll be taking my bike to the Herengracht on a daily basis. How&#8217;s that for a change of plans?</p>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2009/change-of-plans/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My FDT Papervision3D workshop</title>
		<link>http://epologee.com/blog/2009/my-fdt-papervision3d-workshop/</link>
		<comments>http://epologee.com/blog/2009/my-fdt-papervision3d-workshop/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 09:03:11 +0000</pubDate>
		<dc:creator>epologee</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Papervision3D]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[FDT]]></category>
		<category><![CDATA[Germany]]></category>
		<category><![CDATA[Powerflasher]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://epologee.com/blog/?p=84</guid>
		<description><![CDATA[Well that's it, this year's coolest conference in Amsterdam, FitC, is over again. Slowly the haze settles and life picks up where we left it the week before. But before I can actually sink into melanch0ly, my friends at FDT remind me of the next cool thing: My Papervision3D workshop in Krefeld, Germany, yay!]]></description>
			<content:encoded><![CDATA[<p>Well that&#8217;s it, this year&#8217;s coolest conference in Amsterdam, <a title="Flash in the Can" href="http://www.fitc.ca/event_detail.cfm?festival_id=80">FitC</a>, is over again. Slowly the haze settles and life picks up where we left it the week before. But before I can actually sink into melancholy, my friends at <a title="Powerflasher FDT" href="http://fdt.powerflasher.com">FDT</a> remind me of the next cool thing: My <a title="For a German description, follow the signup link." href="http://fdt.powerflasher.com/blog/?p=445">Papervision3D workshop in Krefeld</a>, Germany, yay!</p>
<p>In case you noticed my name on the credit roll at <a title="Will the real Ralph Hauwert please stand up?" href="http://www.unitzeroone.com/blog/">Ralph Hauwert</a>&#8217;s workshop last week, I am not a member of the PV3D developer team and therefore my workshop follows a different strategy. Instead of creating or modifying the 3D framework I&#8217;ve been working on implementing it into numerous websites over the past two years. With every project there were new technological boundaries that were overcome by creative coding solutions or by changing the project contents altogether. It&#8217;s the insights gained in these processes that I&#8217;d like to share with the workshop&#8217;s attendees. Of course the basics of handling Papervision3d need to be covered first, for which I&#8217;ll take you into the only real software solution for developing ActionScript: <a href="http://fdt.powerflasher.com">Powerflasher&#8217;s FDT</a>.</p>
<p><a href="http://lbi.lostboys.nl/werk/projecten/nieuw"><img class="alignnone size-full wp-image-92" title="Papervision projects credited to LBi Lost Boys" src="http://epologee.com/blog/wp-content/uploads/2009/02/screens_hispeed_nuondoet.png" alt="Papervision projects credited to LBi Lost Boys" width="440" height="133" /></a></p>
<p>Oh and in case you&#8217;re wondering, the workshop will be held in Germany and I will indeed be speaking German. I&#8217;ve had some practice with that in the past, so don&#8217;t worry: Ich spreche <a href="http://www.youtube.com/watch?v=8NRu0VwvzVY" rel="shadowbox[post-84];player=swf;width=640;height=385;">nicht so</a> wie <a title="Rudi at Wikipedia" href="http://en.wikipedia.org/wiki/Rudi_Carrell">Rudi Carell</a>!</p>
<p><a href="http://www.incas-training.de/schulung/699/Papervision_3D.php">Check out the signup page</a> if you&#8217;re interested!</p>
]]></content:encoded>
			<wfw:commentRss>http://epologee.com/blog/2009/my-fdt-papervision3d-workshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
