<?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>Tapdancing Goats &#187; Flash</title>
	<atom:link href="http://www.tapdancinggoats.com/category/software-development/web-development/flash/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tapdancinggoats.com</link>
	<description>A parfait of physics, Linux, LaTeX, and coding tips large and small.</description>
	<lastBuildDate>Tue, 31 Aug 2010 00:58:43 +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>Better billboarding in Papervision3D</title>
		<link>http://www.tapdancinggoats.com/better-billboarding-in-papervision3d.htm</link>
		<comments>http://www.tapdancinggoats.com/better-billboarding-in-papervision3d.htm#comments</comments>
		<pubDate>Thu, 08 Nov 2007 02:42:30 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[billboard]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[Papervision3D]]></category>

		<guid isPermaLink="false">http://www.tapdancinggoats.com/better-billboarding-in-papervision3d.htm</guid>
		<description><![CDATA[The Papervision3D wiki has an example for making billboarded sprites with just three extra lines of code. Trouble is, it doesn&#8217;t really work. Anyone who&#8217;s tried it may have noticed that when the planes get too close to the camera, or if the camera rotates around it&#8217;s z-axis at all, the planes start rolling instead [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://wiki.papervision3d.org/">Papervision3D wiki</a> has an example for making billboarded sprites with just three extra lines of code. Trouble is, it doesn&#8217;t really work. Anyone who&#8217;s tried it may have noticed that when the planes get too close to the camera, or if the camera rotates around it&#8217;s z-axis at all, the planes start rolling instead of staying vertical.</p>

<p>The problem is that the lookAt method defaults to using the world y-axis as &#8220;up&#8221; for the billboards, which isn&#8217;t usually correct.  Of course we don&#8217;t really care about the world y-axis with billboards.  We just want them to be vertical in the camera.  Here&#8217;s some code that does it.</p>

<div class="dean_ch" style="white-space: wrap;"><span class="co1">// calculate the camera vertical in world coordinates</span><br />
<span class="kw2">var</span> <span class="kw3">up</span> : Number3D = <span class="kw2">new</span> Number3D<span class="br0">&#40;</span><span class="nu0">0</span>, <span class="nu0">1</span>, <span class="nu0">0</span><span class="br0">&#41;</span>;<br />
Matrix3D.<span class="me1">rotateAxis</span><span class="br0">&#40;</span><span class="kw3">camera</span>.<span class="me1">transform</span>, <span class="kw3">up</span><span class="br0">&#41;</span>;<br />
<br />
<span class="co1">// billboard is the plane you want to billboard.</span><br />
billboard.<span class="me1">lookAt</span><span class="br0">&#40;</span>viewpoint, <span class="kw3">up</span><span class="br0">&#41;</span>;<br />
billboard.<span class="me1">roll</span><span class="br0">&#40;</span><span class="nu0">180</span><span class="br0">&#41;</span>;<br />
billboard.<span class="me1">pitch</span><span class="br0">&#40;</span><span class="nu0">180</span><span class="br0">&#41;</span>;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tapdancinggoats.com/better-billboarding-in-papervision3d.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Silly Jessica Simpson Game, Pizza Hut Codes</title>
		<link>http://www.tapdancinggoats.com/silly-jessica-simpson-game.htm</link>
		<comments>http://www.tapdancinggoats.com/silly-jessica-simpson-game.htm#comments</comments>
		<pubDate>Sun, 04 Feb 2007 19:46:57 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[Pizza Hut]]></category>

		<guid isPermaLink="false">http://tapdancinggoats.com/?p=11</guid>
		<description><![CDATA[I don&#8217;t get it, but my wife loves the celebrity gossip, so when all this stuff about Jessica Simpson started coming out I whipped up this little game to make her laugh. It&#8217;s an homage to an old Mac game I haven&#8217;t seen in years called &#8220;Slick Willie.&#8221; I&#8217;m also keeping track of Pizza Hut&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t get it, but my wife loves the celebrity gossip, so when all this stuff about Jessica Simpson started coming out I whipped up this little game to make her laugh.  It&#8217;s an homage to an old Mac game I haven&#8217;t seen in years called &#8220;Slick Willie.&#8221;  I&#8217;m also keeping track of <a href="http://www.pizzahut.com/hunt/" title="Cheesy Hunt">Pizza Hut&#8217;s sweepstakes codes</a> here.  Have fun.</p>

<p>
Click on &#8220;more&#8221; to play the game.
</p>

<p><span id="more-11"></span>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="munching" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.tapdancinggoats.com/flash/munchies/munching.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://www.tapdancinggoats.com/flash/munchies/munching.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="munching" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></p>

<p>
  <h3>This week&#8217;s Pizza Hut code</h3>
  Send the word &#8220;WIN&#8221; to <tt>843488</tt> with your cell phone (the kids call it &#8220;texting&#8221;) to enter to win a new car, an entertainment center, free pizza, and more prizes. <a href="http://www.pizzahut.com/hunt/" title="Cheesy Hunt">Learn more.</a>
</p>

<p>
  Here&#8217;s what they&#8217;re giving away:
  <ul>
    <li>$30k for a car</li>
    <li>5 entertainment centers worth $4k each</li>

    <li>20 $400 Pizza Hut gift cards</li>
    <li>500 $5 music download gift cards</li>
  </ul>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tapdancinggoats.com/silly-jessica-simpson-game.htm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash 9 in Linux</title>
		<link>http://www.tapdancinggoats.com/flash-9-in-linux.htm</link>
		<comments>http://www.tapdancinggoats.com/flash-9-in-linux.htm#comments</comments>
		<pubDate>Sun, 21 Jan 2007 01:53:33 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[AMD64]]></category>

		<guid isPermaLink="false">http://tapdancinggoats.com/?p=8</guid>
		<description><![CDATA[Those of you in the know already know that Adobe recently released Flash 9 for Linux. An official, honest to god, up to date version. The best part? It actually works. I&#8217;ve had problems with Flash since I switched to Linux, because I foolishly chose the AMD64 version of Kubuntu. After messing around with a [...]]]></description>
			<content:encoded><![CDATA[<p>Those of you in the know already know that <a title="Flash 9 for Linux" href="http://blogs.adobe.com/penguin.swf/2007/01/flash_player_9_for_linux_x86.html">Adobe recently released Flash 9 for Linux</a>.  An official, honest to god, up to date version.  The best part?  It actually works.</p>

<p>I&#8217;ve had problems with Flash since I switched to Linux, because I foolishly chose the AMD64 version of Kubuntu.  After messing around with a 32-bit chroot for awhile, I finally discovered <a title="Swiftfox" href="http://getswiftfox.com/">Swiftfox</a>, a version of Firefox compiled to use 32-bit libraries but optimized for, and compatible with, 64-bit systems.  I could watch Flash movies again.  Sound didn&#8217;t work, but who needs to hear them anyway?  Oh, and since Macromedia never released Flash 8 for Linux, there were more and more SWF&#8217;s that I couldn&#8217;t watch.  And it crashed the browser a lot.</p>

<p>Okay, so it totally sucked.</p>

<p>Even so, I was pretty disappointed after I upgraded to Swiftfox 2 and found that Flash stopped working.  Imagine my surprise when I clicked on the missing plugin button and saw that Flash 9 was available.  I knew Flash 9 for Linux was out, but I&#8217;ve never had the plugin search feature actually work correctly.  Then, right before my eyes, Flash 9 installed, the page reloaded, and the SWF started playing.  With sound.  &#8220;Thus Spoke Zarathustra&#8221; came on the radio, the sun broke through the clouds of winter storms, and a chorus of angels heralded, or trumpeted, or whatever it is that choruses of angels do.</p>

<p>It&#8217;s almost as if big companies are starting to take Linux seriously.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tapdancinggoats.com/flash-9-in-linux.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
