<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Demo on Games From Within</title><link>https://gamesfromwithin.com/tag/demo/</link><description>Recent content in Demo on Games From Within</description><generator>Hugo</generator><language>en-us</language><copyright>2004–2026 Noel Llopis</copyright><lastBuildDate>Sat, 01 Aug 2009 00:00:00 +0000</lastBuildDate><atom:link href="https://gamesfromwithin.com/tag/demo/index.xml" rel="self" type="application/rss+xml"/><item><title>Environment Mapping Demo With OpenGL ES 1.1</title><link>https://gamesfromwithin.com/environment-mapping-demo-with-opengl-es-1-1/</link><pubDate>Sat, 01 Aug 2009 00:00:00 +0000</pubDate><guid>https://gamesfromwithin.com/environment-mapping-demo-with-opengl-es-1-1/</guid><description>&lt;p&gt;&lt;a href="https://gamesfromwithin.com/wp-content/uploads/2009/08/Car.jpg"&gt;&lt;img alt="Car" loading="lazy" src="https://gamesfromwithin.com/environment-mapping-demo-with-opengl-es-1-1/images/Car.jpg" title="Car"&gt;&lt;/a&gt;I just finished creating a graphics demo for a chapter I&amp;rsquo;m writing for the book &lt;a href="http://www.amazon.com/iPhone-Advanced-Projects-Joachim-Bondo/dp/1430224037"&gt;iPhone Advanced Projects&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;The demo ended up looking pretty good, so I decided to upload a quick video showing the different lighting modes:&lt;/p&gt;</description><content:encoded><![CDATA[<p><a href="/wp-content/uploads/2009/08/Car.jpg"><img alt="Car" loading="lazy" src="/environment-mapping-demo-with-opengl-es-1-1/images/Car.jpg" title="Car"></a>I just finished creating a graphics demo for a chapter I&rsquo;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&ndash;or one pass if you&rsquo;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>
]]></content:encoded></item></channel></rss>