<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Android 3D game tutorial &#8211; Part VI</title>
	<atom:link href="http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html</link>
	<description>Rapid android development from Berlin</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:50:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Ole</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-2#comment-2540</link>
		<dc:creator>Ole</dc:creator>
		<pubDate>Mon, 30 Jan 2012 14:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2540</guid>
		<description>Thanks Martin, I think it is, for this tutorial. I&#039;m new to Android, and here is weeks of studies.
And thanks to &quot;yokese&quot; for making things easy accesible.</description>
		<content:encoded><![CDATA[<p>Thanks Martin, I think it is, for this tutorial. I&#8217;m new to Android, and here is weeks of studies.<br />
And thanks to &#8220;yokese&#8221; for making things easy accesible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yokese</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-2#comment-2400</link>
		<dc:creator>yokese</dc:creator>
		<pubDate>Wed, 21 Dec 2011 14:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2400</guid>
		<description>Thanks for the introduction course. I&#039;ve made a Eclipse project with all the six parts accesible from a options menu in a single application, with all the code sepparated in six VortexView/VortexRenderer different classes too. Enjoy it:

http://www.fileserve.com/file/wAYFeaZ/Vortex.zip</description>
		<content:encoded><![CDATA[<p>Thanks for the introduction course. I&#8217;ve made a Eclipse project with all the six parts accesible from a options menu in a single application, with all the code sepparated in six VortexView/VortexRenderer different classes too. Enjoy it:</p>
<p><a href="http://www.fileserve.com/file/wAYFeaZ/Vortex.zip" rel="nofollow">http://www.fileserve.com/file/wAYFeaZ/Vortex.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yashraj</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-2#comment-2389</link>
		<dc:creator>Yashraj</dc:creator>
		<pubDate>Wed, 07 Dec 2011 17:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2389</guid>
		<description>Hey Martin awesome tutorial for beginners..Please post some example code with cocos2d and andengine....</description>
		<content:encoded><![CDATA[<p>Hey Martin awesome tutorial for beginners..Please post some example code with cocos2d and andengine&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tartuffe</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-2#comment-2387</link>
		<dc:creator>tartuffe</dc:creator>
		<pubDate>Sat, 03 Dec 2011 02:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2387</guid>
		<description>no offense, but it&#039;s not a 3D GAME tutorial. Where is the sound ?  the animation, menu system, state engine?   a game is way more than that.  having said that, Now,it&#039;s a nice 3D tutorial for beginners</description>
		<content:encoded><![CDATA[<p>no offense, but it&#8217;s not a 3D GAME tutorial. Where is the sound ?  the animation, menu system, state engine?   a game is way more than that.  having said that, Now,it&#8217;s a nice 3D tutorial for beginners</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darky</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-2#comment-2342</link>
		<dc:creator>Darky</dc:creator>
		<pubDate>Sat, 29 Oct 2011 15:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2342</guid>
		<description>Thanks a lot for this amazing code tutorial - it helped me a lot!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this amazing code tutorial &#8211; it helped me a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ch_mac</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-2#comment-2323</link>
		<dc:creator>ch_mac</dc:creator>
		<pubDate>Fri, 21 Oct 2011 16:07:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2323</guid>
		<description>Hello, your tutorial is amazing!

But have you meet something on OpenGL 3D ?

On OnDrawframe() will cause many of GC (Logcat can look this) and some time it cause game lag and latency.

I am try to resolve that issue, but seems like to use NDK.</description>
		<content:encoded><![CDATA[<p>Hello, your tutorial is amazing!</p>
<p>But have you meet something on OpenGL 3D ?</p>
<p>On OnDrawframe() will cause many of GC (Logcat can look this) and some time it cause game lag and latency.</p>
<p>I am try to resolve that issue, but seems like to use NDK.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-2#comment-2310</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Sun, 16 Oct 2011 15:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2310</guid>
		<description>Ged, thank you for the fix!</description>
		<content:encoded><![CDATA[<p>Ged, thank you for the fix!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ged</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-1#comment-2309</link>
		<dc:creator>Ged</dc:creator>
		<pubDate>Wed, 12 Oct 2011 15:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2309</guid>
		<description>In response to this coment:
    Hello Martin, great tutorial!
    I’ve tried to draw a pyramid with a square base, but the last face in my indices 
    array is never drawed. Can you help me? Below there is my code…

I have the same problem, and I fix it with this, in this line: 
            gl.glDrawElements(GL10.GL_TRIANGLES, _nrOfVertices, GL10.GL_UNSIGNED_SHORT,
              _indexBuffer);

the _nrOfVertices is lower than the count of vertices you need to draw, but if you look it carefully, I think the indices.lenth is exactly what you need. So change the
      _nrOfVertices = coords.length;  TO THIS   _nrOfVertices = indices.length;</description>
		<content:encoded><![CDATA[<p>In response to this coment:<br />
    Hello Martin, great tutorial!<br />
    I’ve tried to draw a pyramid with a square base, but the last face in my indices<br />
    array is never drawed. Can you help me? Below there is my code…</p>
<p>I have the same problem, and I fix it with this, in this line:<br />
            gl.glDrawElements(GL10.GL_TRIANGLES, _nrOfVertices, GL10.GL_UNSIGNED_SHORT,<br />
              _indexBuffer);</p>
<p>the _nrOfVertices is lower than the count of vertices you need to draw, but if you look it carefully, I think the indices.lenth is exactly what you need. So change the<br />
      _nrOfVertices = coords.length;  TO THIS   _nrOfVertices = indices.length;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malte baden</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-1#comment-2269</link>
		<dc:creator>malte baden</dc:creator>
		<pubDate>Mon, 26 Sep 2011 22:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2269</guid>
		<description>Great tutorials! When will the next part be released?</description>
		<content:encoded><![CDATA[<p>Great tutorials! When will the next part be released?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://www.droidnova.com/android-3d-game-tutorial-part-vi,436.html/comment-page-1#comment-2266</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Mon, 26 Sep 2011 10:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=436#comment-2266</guid>
		<description>Hello Martin, great tutorial!
I&#039;ve tried to draw a pyramid with a square base, but the last face in my indices array is never drawed. Can you help me? Below there is my code...
&lt;pre lang=&quot;java&quot; line=&quot;1&quot;&gt;
        float[] coords = {
                -0.5f, -0.5f, -0.5f,   // 0
        	0.5f, -0.5f, -0.5f,    // 1
                0.5f, -0.5f, 0.5f,     // 2
                -0.5f, -0.5f, 0.5f,    // 3
                0f, 0.5f, 0f           // 4
        };
        _nrOfVertices = coords.length;
        
        float[] colors = {
                1f, 0f, 0f, 1f, // red
                0f, 1f, 0f, 1f, // green
                0f, 0f, 1f, 1f, // blue
                1f, 1f, 1f, 1f, // white
                1f, 1f, 0f, 1f  // yellow
        };
        
        short[] indices = new short[] {
        		0, 3, 2, 0, 2, 1, // base
        		0, 1, 4,
        		1, 2, 4, 
        		2, 3, 4,
        		0, 4, 3
        };
&lt;/pre&gt;
Thank you!</description>
		<content:encoded><![CDATA[<p>Hello Martin, great tutorial!<br />
I&#8217;ve tried to draw a pyramid with a square base, but the last face in my indices array is never drawed. Can you help me? Below there is my code&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">        <span style="color: #000066; font-weight: bold;">float</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> coords <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #339933;">-</span>0.5f, <span style="color: #339933;">-</span>0.5f, <span style="color: #339933;">-</span>0.5f,   <span style="color: #666666; font-style: italic;">// 0</span>
        	0.5f, <span style="color: #339933;">-</span>0.5f, <span style="color: #339933;">-</span>0.5f,    <span style="color: #666666; font-style: italic;">// 1</span>
                0.5f, <span style="color: #339933;">-</span>0.5f, 0.5f,     <span style="color: #666666; font-style: italic;">// 2</span>
                <span style="color: #339933;">-</span>0.5f, <span style="color: #339933;">-</span>0.5f, 0.5f,    <span style="color: #666666; font-style: italic;">// 3</span>
                0f, 0.5f, 0f           <span style="color: #666666; font-style: italic;">// 4</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
        _nrOfVertices <span style="color: #339933;">=</span> coords.<span style="color: #006633;">length</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">float</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> colors <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
                1f, 0f, 0f, 1f, <span style="color: #666666; font-style: italic;">// red</span>
                0f, 1f, 0f, 1f, <span style="color: #666666; font-style: italic;">// green</span>
                0f, 0f, 1f, 1f, <span style="color: #666666; font-style: italic;">// blue</span>
                1f, 1f, 1f, 1f, <span style="color: #666666; font-style: italic;">// white</span>
                1f, 1f, 0f, 1f  <span style="color: #666666; font-style: italic;">// yellow</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">short</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> indices <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">short</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#123;</span>
        		<span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">3</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #666666; font-style: italic;">// base</span>
        		<span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">4</span>,
        		<span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">4</span>, 
        		<span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">3</span>, <span style="color: #cc66cc;">4</span>,
        		<span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">4</span>, <span style="color: #cc66cc;">3</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

