<?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>Games from Within &#187; demo</title>
	<atom:link href="http://gamesfromwithin.com/tag/demo/feed" rel="self" type="application/rss+xml" />
	<link>http://gamesfromwithin.com</link>
	<description>Living the indie life</description>
	<lastBuildDate>Sun, 20 May 2012 21:10:46 +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>Environment Mapping Demo With OpenGL ES 1.1</title>
		<link>http://gamesfromwithin.com/environment-mapping-demo-with-opengl-es-1-1</link>
		<comments>http://gamesfromwithin.com/environment-mapping-demo-with-opengl-es-1-1#comments</comments>
		<pubDate>Sat, 01 Aug 2009 15:16:04 +0000</pubDate>
		<dc:creator>Noel</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[demo]]></category>

		<guid isPermaLink="false">http://gamesfromwithin.com/?p=561</guid>
		<description><![CDATA[I just finished creating a graphics demo for a chapter I&#8217;m writing for the book iPhone Advanced Projects edited by Dave Mark. In the chapter I go over a few different lighting techniques and go in detail on how to &#8230; <a href="http://gamesfromwithin.com/environment-mapping-demo-with-opengl-es-1-1">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://gamesfromwithin.com/wp-content/uploads/2009/08/Car.jpg"><img class="alignright size-full wp-image-562" title="Car" src="http://gamesfromwithin.com/wp-content/uploads/2009/08/Car.jpg" alt="Car" width="300" height="200" /></a>I just finished creating a graphics demo for a chapter I&#8217;m writing for the book <a href="http://www.amazon.com/iPhone-Advanced-Projects-Joachim-Bondo/dp/1430224037">iPhone Advanced Projects</a> edited by Dave Mark. In the chapter I go over a few different lighting techniques and go in detail on how to do masked environment mapping on an iPhone 3G with OpenGL ES 1.1.</p>
<p>The demo ended up looking pretty good, so I decided to upload a quick video showing the different lighting modes:</p>
<ul>
<li>Diffuse texture only</li>
<li>Diffuse texture plus ambient and diffuse lighting</li>
<li>Diffuse texture plus ambient, diffuse, and specular lighting (as usually, per-vertex lighting looks pretty bad, even though this is a relatively high-poly model)</li>
<li>Fully reflective environment map (using the normal environment map technique)</li>
<li>Environment map added to the diffuse texture and lighting</li>
<li>Environment map with a reflection mask plus diffuse texture and lighting (two passes on an iPhone 3G&#8211;or one pass if you&#8217;re not using the diffuse alpha channel)</li>
</ul>
<p>The chapter in the book will go in detail into each of those techniques, building up to the last one. Full source code will be included as well.</p>
<p>Some of these techniques will also be covered in my upcoming <a href="http://www.mobileorchard.com/iphone-opengl-programming-training-class/">Two Day iPhone OpenGL Class</a> organized in collaboration with <a href="http://www.mobileorchard.com/">Mobile Orchard</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/uLavvowfsDE&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/uLavvowfsDE&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://gamesfromwithin.com/environment-mapping-demo-with-opengl-es-1-1/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

