<?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>bunnyhero dev &#187; ipod touch</title>
	<atom:link href="http://www.bunnyhero.org/tag/ipod-touch/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bunnyhero.org</link>
	<description>Notes on iPhone, Flash and Web development</description>
	<lastBuildDate>Fri, 23 Jul 2010 18:00:10 +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>iPhone VR: Viewing 3D panoramas in Safari using JavaScript and -webkit-transform</title>
		<link>http://www.bunnyhero.org/2008/10/13/iphone-vr-viewing-3d-panoramas-in-safari-using-javascript-and-webkit-transform/</link>
		<comments>http://www.bunnyhero.org/2008/10/13/iphone-vr-viewing-3d-panoramas-in-safari-using-javascript-and-webkit-transform/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 03:59:48 +0000</pubDate>
		<dc:creator>bunnyhero</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[ipod touch]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://www.bunnyhero.org/?p=81</guid>
		<description><![CDATA[Apple&#8217;s 2.0 iPhone update brought some interesting enhancements to Mobile Safari, including 3-D perspective and access to multitouch events. Armed with the documentation (of varying quality) from Apple&#8217;s Web Apps Dev Centre, and invaluable information from blog articles such as Idean&#8217;s &#8220;Spin the Bottle&#8221;, SitePen&#8217;s &#8220;Touching and Gesturing on the iPhone&#8221; and Paul Bakaus&#8217;s &#8220;3D CSS Transforms on the iPhone&#8221;, I put together a simple web app that displays a cubic panorama in Mobile Safari. Look left, right, up and down by dragging your finger across the display. No zoom, currently, though. It was pretty straightforward, but I did learn a few things while creating it. Go ahead, take a look :D Visit http://tinyurl.com/iphonevr on your iPhone or iPod Touch. The images used for the panorama are taken from one of the QuickTime VR movies in Apple&#8217;s Cubic VR gallery. I extracted the images from the movie using the procedure explained here (in French, but it&#8217;s easy to follow). I may write a full tutorial on this eventually, but for now I will just share a few notes (and the source code): It&#8217;s a lot easier to get the 3-d transforms right if the elements you want to transform start [...]]]></description>
			<content:encoded><![CDATA[<p>Apple&#8217;s 2.0 iPhone update brought some interesting enhancements to Mobile Safari, including 3-D perspective and access to multitouch events. Armed with the documentation (of varying quality) from <a href="http://developer.apple.com/webapps/">Apple&#8217;s Web Apps Dev Centre</a>, and invaluable information from blog articles such as <a href="http://www.idean.com/blog/spin-the-bottle/">Idean&#8217;s &#8220;Spin the Bottle&#8221;</a>, <a href="http://www.sitepen.com/blog/2008/07/10/touching-and-gesturing-on-the-iphone/">SitePen&#8217;s &#8220;Touching and Gesturing on the iPhone&#8221;</a> and <a href="http://paulbakaus.com/?p=15&#038;language=en">Paul Bakaus&#8217;s &#8220;3D CSS Transforms on the iPhone&#8221;</a>, I put together a <a href="http://tinyurl.com/iphonevr">simple web app</a> that displays a <a href="http://www.panoguide.com/howto/panoramas/types.jsp">cubic panorama</a> in Mobile Safari. Look left, right, up and down by dragging your finger across the display. No zoom, currently, though. It was pretty straightforward, but I did learn a few things while creating it.</p>
<p>Go ahead, take a look :D Visit <a href="http://tinyurl.com/iphonevr">http://tinyurl.com/iphonevr</a> on your iPhone or iPod Touch.</p>
<p><img src="http://www.bunnyhero.org/wp-content/uploads/2008/10/photo-1-200x300.jpg" alt="" title="iphone vr 1" width="200" height="300" class="alignnone size-medium wp-image-84" /> <img src="http://www.bunnyhero.org/wp-content/uploads/2008/10/photo-200x300.jpg" alt="" title="iphone vr 2" width="200" height="300" class="alignnone size-medium wp-image-86" /></p>
<p>The images used for the panorama are taken from one of the QuickTime VR movies in <a href="http://www.apple.com/quicktime/gallery/cubicvr/">Apple&#8217;s Cubic VR gallery</a>.  I extracted the images from the movie using <a href="http://www.qtbridge.com/LS/Tips/GetImagesFromVR/index.html">the procedure explained here</a> (in French, but it&#8217;s easy to follow).</p>
<p>I may write a full tutorial on this eventually, but for now I will just share a few notes (and the <a href="http://www.bunnyhero.org/static/iphonevr/iphone-vr.zip">source code</a>):</p>
<ul>
<li>It&#8217;s a lot easier to get the 3-d transforms right if the elements you want to transform start out centred in their containing block (so that they start at (0, 0, 0), essentially). I did this with regular CSS, but I suppose this could also be done as part of the transform.
</li>
<li>The above also applies (especially) to any DIV that contains nothing but other DIVs. At first my cube was spinning around its top edge, instead of its centre, because its children (the cube faces) were absolute-positioned, and thus the &#8220;cube&#8221; DIV itself had no height! Giving it an explicit width and height solved this.
</li>
<li>Touch events on 3-D transformed elements seemed to be little bit unreliable. I worked around this by putting a normal transparent DIV on top of the whole thing and listened to events on that instead.
</li>
</ul>
<p><a href="http://www.bunnyhero.org/static/iphonevr/iphone-vr.zip">Download the source code</a> (MIT Licence).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunnyhero.org/2008/10/13/iphone-vr-viewing-3d-panoramas-in-safari-using-javascript-and-webkit-transform/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
