<?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>Developer World &#187; 3d</title>
	<atom:link href="http://developer.sonymobile.com/wp/tag/3d/feed/" rel="self" type="application/rss+xml" />
	<link>http://developer.sonymobile.com/wp</link>
	<description>Sony Ericsson Developer World</description>
	<lastBuildDate>Wed, 16 May 2012 07:55:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Xperia™ phones first to support WebGL™</title>
		<link>http://developer.sonymobile.com/wp/2011/11/29/xperia-phones-first-to-support-webgl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xperia-phones-first-to-support-webgl</link>
		<comments>http://developer.sonymobile.com/wp/2011/11/29/xperia-phones-first-to-support-webgl/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 09:16:25 +0000</pubDate>
		<dc:creator>Tobias Nilsson</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Portal]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WebGL]]></category>
		<category><![CDATA[Xperia]]></category>

		<guid isPermaLink="false">http://developer.sonyericsson.com/wp/?p=4569</guid>
		<description><![CDATA[In the latest software upgrade  we did for the 2011 Xperia™ phones, we’ve included WebGL™ support. By doing so, Sony Ericsson is the first mobile phone manufacturer to support WebGL for the Android web browser. WebGL basically makes it possible to extend the capability of the JavaScript programming language to allow it to generate interactive [...]]]></description>
			<content:encoded><![CDATA[<p>In the latest <a title="Software upgrade for 2011 Xperia™ phones" href="http://blogs.sonyericsson.com/products/2011/10/28/global-roll-out-of-new-software/">software upgrade</a>  we did for the 2011 Xperia™ phones, we’ve included WebGL™ support. By doing so, Sony Ericsson is the first mobile phone manufacturer to support WebGL for the Android web browser. WebGL basically makes it possible to extend the capability of the JavaScript programming language to allow it to generate interactive 3D graphics within the web browser. Read more about Sony Ericsson’s WebGL support after the jump, and find out about special considerations to keep in mind when developing 3D web applications targeting touch-enabled devices.</p>
<p><span id="more-4569"></span></p>
<p>In this article, Anders Isberg from Sony Ericsson’s Technology Reseach department explains more about WebGL and what to think of when you develop 3D web applications for touch-enabled devices. If you scroll down, you will also find three WebGL examples that you can browse to from the Android browser, if you have the latest software on your 2011 Xperia™ phone. You can also check out how it looks in the video above.</p>
<p>***</p>
<p>Earlier this year, I made a blog post about an<a title="WebGL support in the Android™ browser" href="http://blogs.sonyericsson.com/wp/2011/02/24/webgl-support-in-the-android-web-browser/"> internal WebGL research project  </a>on how WebGL could be implemented in phones. Based on the feedback we received back then, we decided to launch support for WebGL in the latest <a title="Software upgrade for the 2011 Xperia™ phones" href="http://blogs.sonyericsson.com/products/2011/10/28/global-roll-out-of-new-software/">software upgrade  </a>we rolled out for the 2011 Xperia™ phones during this autumn and winter. Now let’s take a closer look at what WebGL support means for mobile.</p>
<div id="attachment_4574" class="wp-caption alignnone" style="width: 600px"><a href="http://developer.sonyericsson.com/wp/2011/11/29/xperia-phones-first-to-support-webgl/anders_isberg/" rel="attachment wp-att-4574"><img class="size-full wp-image-4574" src="http://developer.sonyericsson.com/wp/files/2011/11/anders_isberg.jpg" alt="" width="590" height="356" /></a><p class="wp-caption-text">Anders Isberg, Sony Ericsson.</p></div>
<p><strong>What is required to implement a WebGL application?<br />
</strong>Unlike other 3D web technologies, WebGL will not require any plug-in modules. Once the device is WebGL enabled, no further installations are required, and developers can go ahead and explore the WebGL™ functionality. To learn how to develop WebGL applications, we recommend visiting one of the following online resources that gives an introduction on WebGL application development, for example, <a title="Learning WebGL™" href="http://learningwebgl.com/" target="_blank"><em>Learning WebGL</em></a> or the <a title="Khronos WebGL tutorial" href="http://www.khronos.org/webgl/wiki/Tutorial" target="_blank"><em>Khronos WebGL Tutorial</em></a>.</p>
<p>Due to the fact that WebGL is a low level API, the technical threshold is rather high if you are new to developing WebGL applications. However, there is no reason to be scared by this. There are several JavaScript frameworks available that make it easier to create WebGL applications. Several of these can be found on the <a title="Khronos WebGL Wiki" href="http://www.khronos.org/webgl/wiki/User_Contributions#Frameworks" target="_blank"><em>Khronos WebGL Wiki</em></a><em>.</em></p>
<p><strong>Navigating and interacting with 3D web applications<br />
</strong>Most of the existing WebGL applications available on the web are tailored for a desktop environment. Consequently, those applications are making use of the W3C DOM Mouse and Keyboard events to navigate and control the WebGL application. However, on a mobile device, the touch events must be used to navigate and control the 3D scene. The Android web browser supports three basic touch events that can be used to navigate and control the WebGL application:</p>
<ul>
<li>touchstart: generated when the finger is placed on a selected DOM element.</li>
<li>touchmove: generated when a finger is moved over a DOM element.</li>
<li>touchend: generated when the finger is removed from a DOM element.</li>
</ul>
<p>The following code example shows how an event listener is assigned to touchmove event on a WebGL accelerated HTML Canvas element:</p>
<p><code>// Add an event listener on the WebGL™ canvas<br />
webglcanvas.addEventListener('touchmove', onTouchMove);<br />
function onTouchMove (event) {<br />
// Cancel the default event handler<br />
event.preventDefault();<br />
// Readout the current X and Y coordinate relative the viewport<br />
var currentX = event.targetTouches[0].clientX;<br />
var currentY = event.targetTouches[0].clientY;<br />
}</code></p>
<p>In many cases, the same code used to handle mouse movements can be reused for touch events. There are also frameworks available to simplify the handling of touch events. For example, there is a <a title="jQuery plugin" href="https://github.com/dotmaster/Touchable-jQuery-Plugin" target="_blank">jQuery plugin</a> that unifies touch and mouse events across platforms, as well as a <a title="Mobile jQuery" href="http://jquerymobile.com/" target="_blank">Mobile jQuery</a> that has support for high level events like swipe.</p>
<p><strong>Considerations when developing for mobile<br />
</strong>Devices such as Xperia™ PLAY, Xperia™ arc, Xperia™ neo and Xperia™ pro are equipped with a 1 GHz Snapdragon™ processor and an Adreno™ 205 graphics processor, so even if the processing power is not in parity with desktop computers, there are enough processing capabilities to create astonishing 3D web applications. Check out the video in the beginning to see some examples of WebGL running on a 2011 Xperia™ phone. You can also check out these examples by browsing to them from the Android browser on your 2011 Xperia™ phone, if you have the latest software. Just click one of the links to the demos below. Please be patient while the demos are loading, it might take some time. </p>
<ul>
<li>WebGL-based interactive 3D demo of the <a title="WebGL-based interactive 3D demo of the Sony Ericsson logo." href="http://dl-developer.sonyericsson.com/demo/webgl/blackcube/index.html">Sony Ericsson logo</a>. </li>
<li>WebGL-based interactive 3D demo of <a title="WebGL-based interactive 3D demo of Walt Disney." href="http://dl-developer.sonyericsson.com/demo/webgl/blog/webgl_materials_cubemap.html">Walt Disney</a>. </li>
<li>WebGL-based interactive 3D demo of <a title="WebGL-based interactive 3D demo of two Ninjas." href="http://dl-developer.sonyericsson.com/demo/webgl/blog/webgl_materials_normalmap.html">two Ninjas</a>.</li>
</ul>
<p>When working with WebGL in mobile devices, it is important to take a look under the hood to get good performance. It is essential to consider how the shaders are written, how many polygons that are used in the 3D model, and to select textures carefully. At Developer World, we have published a blog post called <a title="Optimising shader performance for the Xperia™ PLAY" href="http://blogs.sonyericsson.com/wp/2011/06/01/optimizing-shader-performance/">Optimising shader performance for the Xperia™ PLAY</a>, which includes several useful tips that can be used to enhance the performance.</p>
<p>One limitation in the Android browser is that web workers are not supported. For some WebGL frameworks that could be a limiting factor. For example, the WebGL framework <a href="https://github.com/mrdoob/three.js/">three.js</a> implements resource loading with web workers. In the WebGL examples listed earlier you can see how this can be solved by using a JavaScript shim layer that emulates web workers. More information about this topic is available at the <a title="Google Code Web Workers Emulation " href="http://code.google.com/p/fakeworker-js/" target="_blank"><em>Google Code Web Workers Emulation</em></a> project site.</p>
<p>Hopefully this has given you enough information (and confidence!) to get you started with your own WebGL project! Good luck!</p>
<p><em>Anders Isberg<br />
</em><em>Master Engineer Technology Research<br />
</em><em>Sony Ericsson</em></p>
<p><strong>More information:</strong></p>
<ul>
<li>Learn more about <a title="WebGL™ support in the Android™ web browser" href="http://developer.sonyericsson.com/wp/2011/02/24/webgl-support-in-the-android-web-browser/">WebGL</a>  in Anders Isberg’s previous post.</li>
<li>Check out the <a title="Learning WebGL" href="http://learningwebgl.com/blog/" target="_blank">Learning WebGL</a> website. </li>
<li>Find out more in the <a title="Khronos WebGL tutorial" href="http://www.khronos.org/webgl/wiki/Tutorial" target="_blank">Khronos WebGL tutorial</a>.</li>
<li>Find more information about our latest <a title="Software upgrade for the 2011 Xperia™ phones" href="http://blogs.sonyericsson.com/products/2011/10/28/global-roll-out-of-new-software/" target="_blank">software upgrade for the 2011 Xperia™ phones</a>.</li>
<li>Check out the WebGL-based interactive 3D demo of the <a title="WebGL-based interactive 3D demo of the Sony Ericsson logo" href="http://dl-developer.sonyericsson.com/demo/webgl/blackcube/index.html">Sony Ericsson logo</a>. </li>
<li>Check out the WebGL-based interactive 3D demo of <a title="WebGL-based interactive 3D demo of Walt Disney." href="http://dl-developer.sonyericsson.com/demo/webgl/blog/webgl_materials_cubemap.html">Walt Disney</a>. </li>
<li>Check out the WebGL-based interactive 3D demo of <a title="WebGL-based interactive 3D demo of two Ninjas." href="http://dl-developer.sonyericsson.com/demo/webgl/blog/webgl_materials_normalmap.html">two Ninjas</a>. </li>
<li>Find out more about the WebGL framework <a title="three.js" href="https://github.com/mrdoob/three.js/" target="_blank">three.js</a>.</li>
<li>Learn more about the <a title="Google Code Web Workers Emulation " href="http://code.google.com/p/fakeworker-js/" target="_blank">Google Code Web Workers Emulation </a>project.</li>
<li>Learn how to <a title="Optimise the shader performance for the Xperia PLAY" href="http://blogs.sonyericsson.com/wp/2011/06/01/optimizing-shader-performance/">optimise the shader performance for the Xperia PLAY</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://developer.sonymobile.com/wp/2011/11/29/xperia-phones-first-to-support-webgl/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>Announcing the Xperia™ neo V – our newest Android smartphone</title>
		<link>http://developer.sonymobile.com/wp/2011/08/25/announcing-the-xperia-neo-v-our-newest-android-smartphone/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=announcing-the-xperia-neo-v-our-newest-android-smartphone</link>
		<comments>http://developer.sonymobile.com/wp/2011/08/25/announcing-the-xperia-neo-v-our-newest-android-smartphone/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 14:08:25 +0000</pubDate>
		<dc:creator>Joe Padre</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[3D sweep]]></category>
		<category><![CDATA[Adreno]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[BRAVIA]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook inside Xperia]]></category>
		<category><![CDATA[gingerbread]]></category>
		<category><![CDATA[HD]]></category>
		<category><![CDATA[HDMI]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Qualcomm]]></category>
		<category><![CDATA[Reality Display]]></category>
		<category><![CDATA[SnapDragon]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[sony ericsson]]></category>
		<category><![CDATA[Xperia]]></category>
		<category><![CDATA[Xperia neo V]]></category>

		<guid isPermaLink="false">http://blogs.sonyericsson.com/wp/?p=3735</guid>
		<description><![CDATA[Today, we introduce the newest kid on our block, the Xperia™ neo V. As the next iteration of the Xperia™ neo, the neo V is just as beautiful as the first. Plus, this smartphone is packed with Sony multimedia technology and the latest from Android™. Developers for video-related apps will love multimedia experience this Android™ [...]]]></description>
			<content:encoded><![CDATA[<p>Today, we introduce the newest kid on our block, the Xperia™ neo V. As the next iteration of the Xperia™ neo, the neo V is just as beautiful as the first. Plus, this smartphone is packed with Sony multimedia technology and the latest from Android™.</p>
<p><span id="more-3735"></span></p>
<p><a href="http://blogs.sonyericsson.com/wp/2011/08/25/announcing-the-xperia-neo-v-our-newest-android-smartphone/xperia_neo_v_w_590x396/" rel="attachment wp-att-3737"><img class="alignnone size-medium wp-image-3737" src="http://blogs.sonyericsson.com/wp/files/2011/08/Xperia_neo_V_w_590x396-425x285.jpg" alt="Xperia neo V" width="425" height="285" /></a></p>
<p>Developers for video-related apps will love multimedia experience this Android™ smartphone is capable of delivering – recording camera and video in HD, true colour presentation on the Reality Display with Mobile BRAVIA® Engine, HD TV viewing via a built-in HDMI connection, and a front-facing camera for video chat. The highlight of the experience is the introduction of Sony’s groundbreaking 3D sweep panorama technology, which enables image capture and viewing in 3D by connecting the phone to a 3D TV using the HDMI output.</p>
<p>The multimedia interaction continues with Google Talk™ with Video Chat*, which is pre-installed for instant chatting with friends and family. Facebook inside Xperia™ is also included, which allows users to see, share, like and comment on all their favorite stuff – tracks from the music player, photos from the gallery, and even apps and games from the phone.</p>
<p>The fine performance of Xperia™ neo V lies in its 512 MB RAM and 1 GHz Snapdragon processor with Adreno 205 GPU (based on the Qualcomm MSM8255 platform). The smartphone runs the latest Android platform version (2.3), has a 5 megapixel camera with 16x digital zoom, and a 3.7 inch capacitive, multi-touch screen.</p>
<p><em>*for phones with front-facing cameras</em></p>
<p><strong>More information</strong></p>
<ul>
<li>Read more about the <a title="more information abour Xperia neo V" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/xperia-neo-v?cc=gb&amp;lc=en" target="_blank">Xperia™ neo V on the consumer website</a>.</li>
<li>Watch the <a title="Video clip of Xperia neo V" href="http://www.youtube.com/watch?v=49rwcWmnIc8" target="_blank">YouTube clip of the Xperia™ neo V</a>.</li>
<li>Download the <a title="Xperia neo V whitepaper" href="http://developer.sonyericsson.com/wportal/devworld/downloads/download/sonyericssonxperianeovwhitepaper?cc=gb&amp;lc=en" target="_blank">Xperia™ neo V whitepaper</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://developer.sonymobile.com/wp/2011/08/25/announcing-the-xperia-neo-v-our-newest-android-smartphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New software upgrade for Xperia™ 2011 smartphones announced</title>
		<link>http://developer.sonymobile.com/wp/2011/08/25/new-software-upgrade-for-xperia%e2%84%a2-2011-smartphones-announced/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-software-upgrade-for-xperia%25e2%2584%25a2-2011-smartphones-announced</link>
		<comments>http://developer.sonymobile.com/wp/2011/08/25/new-software-upgrade-for-xperia%e2%84%a2-2011-smartphones-announced/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 09:25:29 +0000</pubDate>
		<dc:creator>Joe Padre</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[3D sweep]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook inside Xperia]]></category>
		<category><![CDATA[gingerbread]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Chat]]></category>
		<category><![CDATA[livedock]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[sony ericsson]]></category>
		<category><![CDATA[video chat]]></category>
		<category><![CDATA[Xperia]]></category>

		<guid isPermaLink="false">http://blogs.sonyericsson.com/wp/?p=3753</guid>
		<description><![CDATA[We’ve just announced a major software upgrade for 2011 Xperia™ smartphones. The Xperia™ software upgrade provides users with: The latest version of Android software (Gingerbread) including Google Talk with Video Chat for smartphones with front-facing cameras. Updated Facebook inside Xperia™ which allows users to like, share, and discover on Facebook faster and easier; users also [...]]]></description>
			<content:encoded><![CDATA[<p>We’ve just announced a major software upgrade for 2011 Xperia™ smartphones. The Xperia™ software upgrade provides users with:</p>
<ul>
<li>The latest version of Android software (Gingerbread) including Google Talk with Video Chat for smartphones with front-facing cameras.</li>
<li>Updated <a title="Facebook inside Xperia" href="http://blogs.sonyericsson.com/wp/2011/08/19/facebook-inside-xperia-software-update-makes-mobile-gaming-more-social/" target="_blank">Facebook inside Xperia</a>™ which allows users to like, share, and discover on Facebook faster and easier; users also have the ability to share games, apps and songs directly to Facebook™.</li>
<li>Enhanced camera capabilities from Sony, including 3D sweep panorama</li>
<li>Connectivity to USB peripherals (mouse, keypad, or game controller) through the Sony Ericsson <a title="Sony Ericsson LiveDock" href="http://blogs.sonyericsson.com/wp/2011/06/22/adapt-your-apps-for-the-new-livesound%E2%84%A2-hi-fi-headset-and-the-livedock%E2%84%A2-multimedia-station/livedock_pp_03_arc/?comment_order=latestfirst">LiveDock</a>™ multimedia station.</li>
<li>Swipe to write which allows for text input by swiping the finger from one letter to the next.</li>
<li>Screen capture from anywhere on the phone.</li>
</ul>
<p><span id="more-3753"></span></p>
<p><a href="http://blogs.sonyericsson.com/wp/2011/08/25/new-software-upgrade-for-xperia%e2%84%a2-2011-smartphones-announced/xperia-neo_v_front40_white_590x396/" rel="attachment wp-att-3755"><img class="alignnone size-medium wp-image-3755" src="http://blogs.sonyericsson.com/wp/files/2011/08/Xperia-Neo_V_Front40_White_590x396-425x285.jpg" alt="Xperia neo V" width="425" height="285" /></a></p>
<p>The Xperia™ software update will be available for most Sony Ericsson devices launched in 2011. The software upgrade will be available in select markets through a phased roll out starting from October 2011, and applicable Xperia™ phone owners will receive a notification instructing them to download the software over the air via 3G or WiFi. Alternately, they have the option to connect to a computer and download it via PC Companion.</p>
<p>For more details on the Xperia™ software upgrade features, check out our <a title="Xperia software upgrade YouTube video" href="http://www.youtube.com/watch?v=ejP-zWWei3I" target="_blank">YouTube video</a>, or the official <a title="Sony Ericsson boosts 2011 Xperia™ family with new experiences and new software" href="http://www.sonyericsson.com/cws/corporate/press/pressreleases/pressreleasedetails/xperianeovfinal-20110825" target="_blank">press release</a>.</p>
<p><strong>More information</strong></p>
<ul>
<li>Read the official Sony Ericsson <a title="Sony Ericsson boosts 2011 Xperia™ family with new experiences and new software" href="http://www.sonyericsson.com/cws/corporate/press/pressreleases/pressreleasedetails/xperianeovfinal-20110825" target="_blank">press release for the Xperia™ software upgrade</a>.</li>
<li>Watch the YouTube clip <a title="Sony Ericsson Xperia software update features" href="http://www.youtube.com/watch?v=ejP-zWWei3I" target="_blank">demoing the features of the Xperia</a>™ software upgrade.</li>
<li>Learn more about <a title="Facebook inside Xperia" href="http://blogs.sonyericsson.com/wp/2011/08/19/facebook-inside-xperia-software-update-makes-mobile-gaming-more-social/">Facebook inside Xperia™</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://developer.sonymobile.com/wp/2011/08/25/new-software-upgrade-for-xperia%e2%84%a2-2011-smartphones-announced/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Updated: Glu’s 500Gs 3D Social Mobile Development Contest &#8211; contest discontinued</title>
		<link>http://developer.sonymobile.com/wp/2011/05/26/glu500gscontest/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=glu500gscontest</link>
		<comments>http://developer.sonymobile.com/wp/2011/05/26/glu500gscontest/#comments</comments>
		<pubDate>Thu, 26 May 2011 20:43:50 +0000</pubDate>
		<dc:creator>Joe Padre</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[android development]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[Glu]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[sony ericsson]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[Xperia]]></category>
		<category><![CDATA[xperia play]]></category>

		<guid isPermaLink="false">http://blogs.sonyericsson.com/wp/?p=2809</guid>
		<description><![CDATA[ Sony Ericsson is excited to be a co-sponsor of the Glu 500Gs 3D Social Mobile Development Contest. Through the partnership with Glu and Unity, we see this as an opportunity to reach indie developers and get to know about innovative and great games. Developers who have winning games that are optimized for the Xperia™ PLAY [...]]]></description>
			<content:encoded><![CDATA[<p><del><del> Sony Ericsson is excited to be a co-sponsor of the <a title="Glu's 500Gs 3D Social Mobile Development Contest" href="http://www.glu.com/gpartners-dev-contest" target="_blank">Glu 500Gs 3D Social Mobile Development Contest.</a> Through the partnership with Glu and Unity, we see this as an opportunity to reach indie developers and get to know about innovative and great games. Developers who have winning games that are optimized for the Xperia™ PLAY will also receive a device of their own, and their games will automatically be included in Sony Ericsson’s “<a title="Stand out from the crowd" href="http://www.sonyericsson.com/standout" target="_blank">Stand out from the crowd</a>” marketing program. Plus, winning games will then be further promoted in Xperia™ PLAY devices through a Game Recommender application, and may be featured in various marketing channels.</del></p>
<p><del><span id="more-2809"></span></p>
<p>Additional information on Sony Ericsson’s activities within Glu’s 500 Gs Game Development Competition is available on <a title="Sony Ericsson co-sponsoring Glu's 500Gs contest" href="http://developer.sonyericsson.com/wp/glus-500gs/">Sony Ericsson&#8217;s 500Gs contest page</a>. you can also find the <a title="Glu's 500Gs 3D Social Mobile Developmet Contest rules" href="http://www.glu.com/contests/gpartners-dev-contest-official-rules" target="_blank">complete contest rules</a> at Glu&#8217;s contest website.</p>
<p></del></p>
<p></del></p>
<p>This contest has been discontinued.</p>
<p><strong>More information</strong></p>
<ul>
<li><a title="Stand out from the crowd" href="http://www.sonyericsson.com/standout" target="_blank">Learn about the “Stand out from the crowd” marketing program&gt;&gt;&gt;</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://developer.sonymobile.com/wp/2011/05/26/glu500gscontest/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A new dimension of Android™ – Making a 3D UI for Android™ applications</title>
		<link>http://developer.sonymobile.com/wp/2011/03/24/3d-for-android/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=3d-for-android</link>
		<comments>http://developer.sonymobile.com/wp/2011/03/24/3d-for-android/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 00:58:57 +0000</pubDate>
		<dc:creator>Tobias Nilsson</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[erik hellman]]></category>
		<category><![CDATA[open gl]]></category>
		<category><![CDATA[sony ericsson]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blogs.sonyericsson.com/developerworld/?p=1898</guid>
		<description><![CDATA[Wouldn&#8217;t it be cool to have a 3D UI in your Android™ application? I&#8217;m Erik Hellman, Lead Software Architect for Android development at Sony Ericsson, and I&#8217;ll explain how to make this possible. In this article, I&#8217;ll describe how to incorporate 3D with Android&#8217;s UI API and OpenGL ES 2.0 graphics, and I provide a bitmap code example that can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.sonyericsson.com/developerworld/files/2011/03/DroidConPic.jpg"></a><a href="http://blogs.sonyericsson.com/developerworld/files/2011/03/androidlogo3d1.jpg"><img class="alignnone size-thumbnail wp-image-1902" src="http://blogs.sonyericsson.com/developerworld/files/2011/03/androidlogo3d1-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://blogs.sonyericsson.com/developerworld/files/2011/03/androidlogo3d.jpg"></a></p>
<p>Wouldn&#8217;t it be cool to have a 3D UI in your Android™ application? I&#8217;m Erik Hellman, Lead Software Architect for Android development at Sony Ericsson, and I&#8217;ll explain how to make this possible. In this article, I&#8217;ll describe how to incorporate 3D with Android&#8217;s UI API and OpenGL ES 2.0 graphics, and I provide a bitmap code example that can be used as input to a texture in OpenGL ES 2.0.</p>
<p><span id="more-1898"></span></p>
<p>Being a game developer for Android is getting easier every day. The devices are getting high-end GPUs, loads of memory and have nice multi-touch displays. There are also several game engines announcing their support for Android, making the time-to-market for game developers much less than it used to be. Creating advanced games for Android no longer requires a huge project involving hundreds of people and spanning over 2 years or more.</p>
<p>While game engines can help us create advanced 3D games, it is not as easy to create an application that uses 3D graphics to enhance the user experience. The engines are focused towards gaming and usually lack a tight integration with the existing Android API and services.</p>
<p>In this post, I will explain how you can combine the best from Android&#8217;s UI APIs with hardware accelerated OpenGL ES 2.0 3D graphics. At Droidcon 2011 in Berlin, I presented a session on this topic and showed some demos of how 3D graphics can enhance your applications.</p>
<p><em><img class="size-medium wp-image-1933 alignleft" src="http://blogs.sonyericsson.com/developerworld/files/2011/03/sony_ericsson_droidcon_berlin_2011-300x188.jpg" alt="Sony Ericsson droidcon Berlin 2011" width="300" height="188" /><br />
</em></p>
<p><em> </em> </p>
<p><em> </em> </p>
<p><em> </em> </p>
<div><em> </em></div>
<div><em><em> </em></em></div>
<div><em>Visitors in the Sony Ericsson booth at droidcon 2011 in Berlin, Germany.</em></div>
<p><em> </p>
<p></em></p>
<p>The main problem with doing 3D graphics in Android applications is that the Android API for UI (android.widget.* and android.view.*) has no solution for manipulating the View objects in 3D. OpenGL ES 2.0 on the other hand can do 3D very well, but has no knowledge about Android&#8217;s touch and input APIs, lacks layout managers and is really bad at rendering content such as text. The first thing I’ll show is how you can combine the two technologies in the best possible way.</p>
<p>All user-interface components in Android are based on the View class. Regardless if you show a button, text or a list of objects, you will use one of the many sub-classes of View. When a View, and all its children, is drawn there are two things happening. All Views in the hierarchy are first measured and then the layout manager in Android positions them as specified. This is done by a call to the measure and layout method in the View class. All this usually happens behind the scenes in standard Android 2D UI, but if you wish to use your Android View in a 3D scene you need to do this by yourself.</p>
<p>Once measure() and layout() have been called we can draw the View using the draw() method. This method takes a Canvas as a parameter. The Canvas, in turn, can be created to draw on a Bitmap. This is where we tie it all together in a nice utility method:</p>
<div><code>public static Bitmap drawViewToBitmap(View view, Bitmap bitmap) {</code></div>
<p><code>   bitmap.eraseColor(Color.TRANSPARENT);</p>
<p>   int bitmapWidth = bitmap.getWidth();</p>
<p>   int bitmapHeight = bitmap.getHeight();</p>
<p>   Canvas canvas = new Canvas(bitmap);</p>
<p>   int measureWidth = View.MeasureSpec.makeMeasureSpec(bitmapWidth, View.MeasureSpec.EXACTLY);</p>
<p>   int measuredHeight = View.MeasureSpec.makeMeasureSpec(bitmapHeight, View.MeasureSpec.EXACTLY);</p>
<p>   view.measure(measureWidth, measuredHeight);</p>
<p>   view.layout(0, 0, bitmapWidth, bitmapHeight);</p>
<p>   view.draw(canvas);</p>
<p>   return bitmap;</p>
<p>}</p>
<p></code></p>
<p>The above method lets you reuse the same Bitmap instance and thus reduces the amount of memory allocations you have to do (which takes time).</p>
<p>The Bitmap that we just drew our View to can be used as input to a texture in OpenGL ES 2.0 that can be placed on a 3D model (or, in the simplest case two triangles forming a flat quad).</p>
<p>For examples of how to create a simple OpenGL ES 2.0 application where we use bitmaps as textures, I suggest looking at the <a href="http://d.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/GLES20TriangleRenderer.html">samples in the official Android SDK</a>.</p>
<p>This method mainly solves the problem of mixing Android UI content with OpenGL ES 2.0 scenes. There is still a lot you need to build yourself, such a scene graph, handling user input and animations. However, you now have enough to start experimenting and I’ll be posting a follow up on this where we look at how to build a simple scene graph and handling user input.</p>
<p><strong>Note</strong>: Droidcon Berlin is a two day barcamp and conference that explores all aspects of developing for Android mobile devices. Happening in Berlin at the Urania Berlin on March 23 and 24, droidcon Berlin will host workshops on Android apps and game development. Over 1200 people are participating in this conference.</p>
<p><strong>More information</strong></p>
<ul>
<li><a href="http://http://d.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/GLES20TriangleRenderer.html">View OpenGL ES 2.0 samples from Android SDK&gt;&gt;&gt;</a></li>
<li><a href="http://www.khronos.org/opengles/sdk/docs/man/">View the OpenGL ES 2.0 reference pages from the Khronos Group&gt;&gt;&gt;</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://developer.sonymobile.com/wp/2011/03/24/3d-for-android/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

