<?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>Patrick Matte &#187; TBWA\Chiat\Day Los Angeles</title>
	<atom:link href="http://www.patrickmatte.com/index.php/category/chiat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.patrickmatte.com</link>
	<description>Flash programming, animation and design.</description>
	<lastBuildDate>Thu, 17 Nov 2011 02:03:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Simulating Google Earth with the Google Maps API for Flash</title>
		<link>http://www.patrickmatte.com/index.php/2011/05/16/simulating-google-earth-with-google-maps-api-for-flash/</link>
		<comments>http://www.patrickmatte.com/index.php/2011/05/16/simulating-google-earth-with-google-maps-api-for-flash/#comments</comments>
		<pubDate>Mon, 16 May 2011 23:03:41 +0000</pubDate>
		<dc:creator>Patrick Matte</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Papervision3D]]></category>
		<category><![CDATA[TBWA\Chiat\Day Los Angeles]]></category>
		<category><![CDATA[Google Maps]]></category>

		<guid isPermaLink="false">http://www.patrickmatte.com/?p=179</guid>
		<description><![CDATA[I made some research on how to simulate Google Earth in Flash for a recent project at TBWA\Chiat\Day. Unfortunately the schedule was too tight and a freelancer was called in to build the module which in the end only used the regular google maps top view. But I wanted to share my research anyway. The [...]]]></description>
			<content:encoded><![CDATA[<p>I made some research on how to simulate Google Earth in Flash for a recent project at TBWA\Chiat\Day. Unfortunately the schedule was too tight and a freelancer was called in to build the module which in the end only used the regular google maps top view. But I wanted to share my research anyway.</p>
<div class="wp-caption alignnone" style="width: 460px"><a href="http://patrickmatte.com/stuff/earth/" target="_blank"><img alt="Google Earth in Flash" src="http://www.patrickmatte.com/stuff/earth/earth.jpg" title="Google Earth in Flash" width="450" height="320" /></a><p class="wp-caption-text">Click to open SWF</p></div>
<p>The tricky thing is that the grid in Google Maps is square and as you can see in the background, the latitude is not distributed evenly. So you can&#8217;t simply take the square map and put it on a sphere or it will appear very distorted. What you need to do is find the latitude/longitude of the 4 vertices of every face on the sphere and then use the method fromLatLngToViewPort which returns the Point on the map that corresponds to that latitude and longitude. Once you have all four points, you can draw that particular section of the map and use it as a material for the face. One thing worth mentioning is also that for some reason, the satellite view only has map available from 85 degrees to -85 degrees of latitude, so you have to patch the top and bottom of the sphere manually.</p>
<p>Maybe I&#8217;ll revisit this at a later time and make it possible zoom in on the map.</p>
<p><a href="http://www.patrickmatte.com/stuff/earth/Archive.zip">Download the source files.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickmatte.com/index.php/2011/05/16/simulating-google-earth-with-google-maps-api-for-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some generative art for our &#8220;25 lines of code&#8221; contest at TBWA\Chiat\Day. I won at unanimity!</title>
		<link>http://www.patrickmatte.com/index.php/2009/07/25/i-won-the-25-lines-of-code-contest/</link>
		<comments>http://www.patrickmatte.com/index.php/2009/07/25/i-won-the-25-lines-of-code-contest/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 02:44:35 +0000</pubDate>
		<dc:creator>Patrick Matte</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Generative Art]]></category>
		<category><![CDATA[TBWA\Chiat\Day Los Angeles]]></category>
		<category><![CDATA[25 lines of code]]></category>
		<category><![CDATA[tracy lines]]></category>

		<guid isPermaLink="false">http://www.patrickmatte.com/?p=57</guid>
		<description><![CDATA[The rules of the contest were simple, create the most awesome program in just 25 lines of code. The timing was pefect for me as i wasn&#8217;t too busy for the last two days before the deadline and i was able to work on a few entries. This one nailed it. I&#8217;m still surprised how [...]]]></description>
			<content:encoded><![CDATA[<p>The rules of the contest were simple, create the most awesome program in just 25 lines of code. The timing was pefect for me as i wasn&#8217;t too busy for the last two days before the deadline and i was able to work on a few entries.</p>
<div class="wp-caption alignnone" style="width: 460px"><a href="http://www.patrickmatte.com/stuff/25lines/tornado6.swf" target="_blank"><img src="http://www.patrickmatte.com/stuff/25lines/images/tornado_1.jpg" alt="My 25 lines of code winning entry" /></a><p class="wp-caption-text">Click to open SWF</p></div>
<p>This one nailed it. I&#8217;m still surprised how many things i was able to cram into 25 lines! I have a 3D engine in there that converts 3D points to 2D points in 3 lines of code! And the routine also changes the color of the lines, records arrays of points to create the trails that gets thinner as time increases. Also notice the velocity on each point that make the trail move along.</p>
<p><a href="http://www.patrickmatte.com/stuff/25lines/tornado6.zip" target="_blank">Download source fla</a><br/></p>
<p>I&#8217;m definitely happy with the first one but there&#8217;s another entry that i did which i also like.</p>
<div class="wp-caption alignnone" style="width: 460px"><a href="http://www.patrickmatte.com/stuff/25lines/curve2.html" target="_blank"><img src="http://www.patrickmatte.com/stuff/25lines/images/space_1.jpg" alt="Another entry in the contest" /></a><p class="wp-caption-text">Click to open SWF</p></div>
<p>For that one I got the inspiration from a demo i saw last week, and i thought to myself, &#8220;hey i can do this in 25 lines of code&#8221; so i did it. Some images it creates look a lot like those spacy tracy desktop backgrounds of Windows Vista and OSX.</p>
<p><a href="http://www.patrickmatte.com/stuff/25lines/curve2.zip" target="_blank">Download source fla</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickmatte.com/index.php/2009/07/25/i-won-the-25-lines-of-code-contest/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Simulating liquid with actionscript 3 and physics engine APE.</title>
		<link>http://www.patrickmatte.com/index.php/2009/06/16/simulating-liquid-with-a-physics-engine-in-actionscript-3/</link>
		<comments>http://www.patrickmatte.com/index.php/2009/06/16/simulating-liquid-with-a-physics-engine-in-actionscript-3/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 07:08:00 +0000</pubDate>
		<dc:creator>Patrick Matte</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[TBWA\Chiat\Day Los Angeles]]></category>
		<category><![CDATA[Fluid]]></category>
		<category><![CDATA[Liquid]]></category>

		<guid isPermaLink="false">http://www.patrickmatte.com/?p=29</guid>
		<description><![CDATA[I created a quick prototype of a realtime liquid simulation for a project over at Chiat a couple weeks ago. The result might not be very realistic, a little cartoony you might say, but it&#8217;s definitely fun to play with (any program that features real-time physics just fascinates me). I made a quick demo to [...]]]></description>
			<content:encoded><![CDATA[<p>I created a quick prototype of a realtime liquid simulation for a project over at Chiat a couple weeks ago. The result might not be very realistic, a little cartoony you might say, but it&#8217;s definitely fun to play with (any program that features real-time physics just fascinates me). I made a quick demo to show you how it&#8217;s done.</p>
<p/>
<div class="wp-caption alignnone" style="width: 460px"><a href="http://www.patrickmatte.com/stuff/physicsLiquid/" target="_blank" title="Clickto open SWF"><img src="http://www.patrickmatte.com/stuff/physicsLiquid/image.jpg" alt="Click to open SWF" /></a><p class="wp-caption-text">Click to open SWF</p></div></p>
<p/>
I quickly looked at some <a href="http://geekglue.blogspot.com/2008/01/actionscript-2d-physics-engines.html" target="_blank">reviews</a> to make my choice on the physics engine i would use and <a href="http://www.cove.org/ape/" target="_blank">APE</a> seemed to be the simplest one. It was pretty simple indeed as i was able to put up my original demo in a single day. It was a little tricky to create the physics bottle that would hold the particles. The easiest way i found was to put movieclips on stage in the shape of the bottle and loop through each pieces and create a corresponding APE RectangleParticule. The tricky part is that when you rotate a movieclip in flash, the height and width of the clip changes, so i had to nest a movieclip within to be able to read the correct height and width of the particle.</p>
<p/>
<a href="http://www.patrickmatte.com/stuff/physicsLiquid/flash.zip">Download the source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickmatte.com/index.php/2009/06/16/simulating-liquid-with-a-physics-engine-in-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

