<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>abi.exdream.com - Benjamin Nitschke's Blog - XNA</title>
    <link>http://exdream.no-ip.info/blog/</link>
    <description>Benjamin Nitschke's Blog about .NET, Game Development and my daily life.</description>
    <language>en-us</language>
    <copyright>abi.exdream.com</copyright>
    <lastBuildDate>Mon, 11 Feb 2008 23:48:36 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.9.6264.0</generator>
    <managingEditor>abi@exDream.com</managingEditor>
    <webMaster>abi@exDream.com</webMaster>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=5bab5e3e-0bde-4092-96cc-012bcee7656e</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,5bab5e3e-0bde-4092-96cc-012bcee7656e.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,5bab5e3e-0bde-4092-96cc-012bcee7656e.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=5bab5e3e-0bde-4092-96cc-012bcee7656e</wfw:commentRss>
      <slash:comments>11</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Even when I did not post much last week
I was very busy converting all the old XNA 1.0 games to XNA 2.0. I did not only convert
all projects (8 games in total, see below), but I also tested them extensively on
Windows XP, Vista (32 and 64 bit) and the Xbox 360. Additionally a lot of usability
improvements have been implemented in the games, for example the XNA Shooter is now
much easier (was almost impossible to even reach 50% of the level) and a lot more
fun due better balancing. The XNA Racing Game has now a better physic engine and will
not longer let the car fly out of the track or leave ground in loopings. Due the better
input control and fixed physics the cars drive now much faster and it is more challenging
to complete the tracks in shorter time frames.<br /><br />
Games in this article: 
<ul><li><a href="#Chapter1Game">Chapter1Game</a></li><li><a href="#XnaPong">Xna Pong</a></li><li><a href="#XnaBreakout">Xna Breakout</a></li><li><a href="#XnaTetris">Xna Tetris</a></li><li><a href="#RocketCommanderXna">Rocket Commander Xna</a></li><li><a href="#XnaShooter">Xna Shooter</a></li><li><a href="#XnaRacingGame">Xna Racing Game</a></li><li><a href="#DungeonQuestGDC">Dungeon Quest GDC</a></li></ul><br />
Please read my previous post about <a href="http://exdream.no-ip.info/blog/2008/02/01/ConvertingXNA10ProjectsToXNA20.aspx">Converting
XNA 1.0 games to XNA 2.0 for all technical tips</a>. All the games can also be found
on <a href="http://XnaProjects.net">http://XnaProjects.net</a>, but I will also make
them easier accessible on this blog soon, which has an update overdue (need to clean
up the left and right sides) ^^<br /><br />
Thanks to the great VS2005 support of XNA 2.0 all games have now just one single solution
file, which works on Windows and the Xbox 360. The projects can be opened in XNA Game
Studio 2.0 and Visual Studio 2005 without having to <a href="http://exdream.no-ip.info/blog/2007/07/19/XnaProjectChangerToolWithVS2008Support.aspx">convert
the files over and over again like in the past</a>. The Icons for all games were also
improved. Lets take a look at the Icons (.ico files) on Windows:<br /><br /><img src="http://exdream.no-ip.info/blog/content/binary/XnaIconsWindows.jpg" border="0" /><br />
For the Xbox 360 game icons the .png files (usually named GameThumbnail.png) are used:<br /><br /><img src="http://exdream.no-ip.info/blog/content/binary/XnaIconsXbox360.jpg" border="0" width="382" /><br />
Ok, let's take a look at the games and what has changed for them. Most games are pretty
much the same as for XNA 1.0, but a lot of smaller bugs were fixed and they have been
tested more.<br /><br /><ul><li><a name="Chapter1Game"></a><b>Chapter1Game</b>: This application is not really a game,
but a test project to check out if XNA 2.0 is properly working on both Windows and
the Xbox 360. It is from the first chapter of my book <a href="http://www.wrox.com/WileyCDA/WroxTitle/productCd-0470126779.html">"Professional
XNA Game Programming"</a>. BTW: The second edition of the book is coming out soon,
there are 3 more chapters about Multiplayer game programming and a cool new role playing
game.<br /><br /><ul><li>
Game Installer: <a href="http://arenawars.net/XnaProjects/Chapter1GameSetup.exe">Chapter1GameSetup.exe
(210 KB)</a></li><li>
Source Code and Game Content: <a href="http://arenawars.net/XnaProjects/Chapter1GameSourceCode.zip">Chapter1GameSourceCode.zip
(57 KB)</a></li><li>
Screenshot:<br /><a href="http://arenawars.net/XnaProjects/Chapter1GameScreenshot1.jpg"><img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;Height=200&amp;Link=Chapter1GameScreenshot1.jpg" border="0" /><br /><br /></a></li></ul></li><li><a name="XnaPong"></a><b>Xna Pong</b>: Xna Pong is a simple clone of the favorite
pong game from 1978. It is just a few hunderd lines of code and should be very easy
to understand.<br /><br />
This game is from the book "Professional XNA Game Programming" by Benjamin Nitschke.
For more information read chapter 2. (2008-02-10: Now updated to XNA 2.0)<br /><br /><ul><li>
Game Installer: <a href="http://arenawars.net/XnaProjects/XnaPongSetup.exe">XnaPongSetup.exe
(309 KB)</a></li><li>
Source Code and Game Content: <a href="http://arenawars.net/XnaProjects/XnaPongSourceCode.zip">XnaPongSourceCode.zip
(258 KB)</a></li><li>
Screenshot:<br /><a href="http://arenawars.net/XnaProjects/XNAPongScreenshot.jpg"><img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;Height=200&amp;Link=XNAPongScreenshot.jpg" border="0" /><br /><br /></a></li></ul></li><li><a name="XnaBreakout"></a><b>Xna Breakout</b>: XNA Breakout is a simple Breakout/Arcanoid
game based on the XNA Pong game from the previous chapter.<br /><br />
It is fully described and covered in Chapter 3 of my book "Professional XNA Game Programming".
The code is quite short and should be easy to understand. (2008-02-10: Now updated
to XNA 2.0)<br /><br /><ul><li>
Game Installer: <a href="http://arenawars.net/XnaProjects/XnaBreakoutSetup.exe">XnaBreakoutSetup.exe
(383 KB)</a></li><li>
Source Code and Game Content: <a href="http://arenawars.net/XnaProjects/XnaBreakoutSourceCode.zip">XnaBreakoutSourceCode.zip
(316 KB)</a></li><li>
Screenshot:<br /><a href="http://arenawars.net/XnaProjects/XNABreakoutScreenshot.jpg"><img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;Height=200&amp;Link=XNABreakoutScreenshot.jpg" border="0" /><br /><br /></a></li></ul></li><li><a name="XnaTetris"></a><b>Xna Tetris</b>: This is a simple, but highly addictive
Tetris game. You can control the blocks with your cursor keys, aswd or a game pad
and the game works both on Windows and the Xbox 360. Reaching levels above 5 is really
hard. My highest level was 9, try to reach more :) (2008-02-10: Now updated to XNA
2.0)<br /><br />
This game introduces the helper classes (chapter 4 of my book) and makes more use
of unit testing and game components in XNA.<br /><br /><ul><li>
Game Installer: <a href="http://arenawars.net/XnaProjects/XnaTetrisSetup.exe">XnaTetrisSetup.exe
(310 KB)</a></li><li>
Source Code and Game Content: <a href="http://arenawars.net/XnaProjects/XnaTetrisSourceCode.zip">XnaTetrisSourceCode.zip
(277 KB)</a></li><li>
Screenshot:<br /><a href="http://arenawars.net/XnaProjects/XNATetrisScreenshot1.jpg"><img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;Height=200&amp;Link=XNATetrisScreenshot1.jpg" border="0" /><br /><br /></a></li></ul></li><li><a name="RocketCommanderXna"></a><b>Rocket Commander Xna</b>: XNA port of the famous
Rocket Commander game. The game principle stayed the same, but the controls were a
little bit simplified to make it more fun on the Xbox 360.<br /><br />
If you want to learn more about the Rocket Commander game, check out its official
website <a href="http://www.RocketCommander.com">www.RocketCommander.com</a> and check
out the Video Tutorials on Coding4Fun by MSDN. (2008-02-10: Now updated to XNA 2.0,
also supports very big resolutions now and runs faster on the Xbox 360)<br /><br /><ul><li>
Game Installer: <a href="http://arenawars.net/XnaProjects/RocketCommanderXnaSetup.exe">RocketCommanderXnaSetup.exe
(16.5 MB)</a></li><li>
Source Code and Game Content: <a href="http://arenawars.net/XnaProjects/RocketCommanderXnaSourceCode.zip">RocketCommanderXnaSourceCode.zip
(52.8 MB)</a></li><li>
Screenshot:<br /><a href="http://arenawars.net/XnaProjects/RocketCommanderXnaScreenshot1.jpg"><img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;Height=200&amp;Link=RocketCommanderXnaScreenshot1.jpg" border="0" /><br /><br /></a></li></ul></li><li><a name="XnaShooter"></a><b>Xna Shooter</b>: Shoot'n'up game specifically created
for my book "Professional XNA Game Programming". It features full HDTV support, runs
on Windows and the Xbox 360, 5 weapon types, 5 enemy types, a powerful ship and some
power ups. It is quite fun to play and it gets harder and harder the longer you play.
Based partly on the Rocket Commander XNA engine, but also features lots of new effects
and shaders. (2008-02-10: Now updated to XNA 2.0, also much easier and balanced)<br /><br />
This game and the racing game are the most improved. The game works now much better
in high resolutions and on the Xbox 360. But most importantly the game is now much
easier, balanced and more fun. Additionally a level percentage is now visible on the
bottom and more EMP bombs can be picked up to make it easier at the end of the level. 
<br /><ul><li>
Game Installer: <a href="http://arenawars.net/XnaProjects/XnaShooterSetup.exe">XnaShooterSetup.exe
(14.9 MB)</a></li><li>
Source Code and Game Content: <a href="http://arenawars.net/XnaProjects/XnaShooterSourceCode.zip">XnaShooterSourceCode.zip
(32.2 MB)</a></li><li>
Screenshot:<br /><a href="http://arenawars.net/XnaProjects/XnaShooterScreenshot0014.jpg"><img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;Height=200&amp;Link=XnaShooterScreenshot0014.jpg" border="0" /><br /><br /></a></li></ul></li><li><a name="XnaRacingGame"></a><b>Xna Racing Game</b>: XNA Racing Game Starter Kit I
wrote for <a href="http://creators.xna.com">http://creators.xna.com</a>. More information
and more downloads can be found on <a href="http://XnaRacingGame.com">http://XnaRacingGame.com</a>.
It runs best on the Xbox 360 in HDTV (1920x1200), but it also runs fine on the PC.
(2008-02-10: Now updated to XNA 2.0, driving also improved a lot, better tested on
Xbox 360 and fixed some issues).<br /><br />
Following things were improved: Shadow mapping on very big resolutions works now (crashed
before), more options for lower quality settings, fixed physics, car now always stays
on the road, fixed loopings, cars are much faster now, winning conditions work better
now, and fixed several other bugs. 
<br /><ul><li>
Game Installer: <a href="http://arenawars.net/XnaProjects/XnaRacingGameSetup.exe">XnaRacingGameSetup.exe
(40.2 MB)</a></li><li>
Source Code and Game Content: <a href="http://arenawars.net/XnaProjects/XnaRacingGameSourceCode.zip">XnaRacingGameSourceCode.zip
(95.4 MB)</a></li><li>
Screenshot:<br /><a href="http://arenawars.net/XnaProjects/RacingGameScreenshotBig03.jpg"><img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;Height=200&amp;Link=RacingGameScreenshotBig03.jpg" border="0" /><br /><br /></a></li></ul></li><li><a name="DungeonQuestGDC"></a><b>Dungeon Quest GDC</b>: And finally the Dungeon Quest
XNA Game, which was developed in just 4 days on the GDC 2007 at the XNA Contest. Dungeon
Quest GDC is a relatively complex 3D role playing game (at least for just 4 days of
work). An early version even supported coop multiplayer on the Xbox 360 via splitscreen.
The game was developed by Benjamin Nitschke (abi.exDream.com) and Christoph Rienaecker
(WAII). (2008-02-10: Now updated to XNA 2.0). This is NOT the full Dungeon Quest game
(see www.DungeonQuestGame.com for that), this is just the GDC version.<br /><br />
Please note that the level was reduced to allow loading on the Xbox 360 (which otherwise
crashes with an OutOfMemoryException), the game is not fully playable, only the first
part is implemented. You can also press F2 to toggle the Options menu and some minor
bugs were fixed. But this game is no longer supported, I will not improve it anymore!
Please check out the new Dungeon Quest game from www.DungeonQuestGame.com, which is
coming in a month or so.<br /><ul><li>
Game Installer: <a href="http://arenawars.net/XnaProjects/DungeonQuestGDCSetup.exe">DungeonQuestGDCSetup.exe
(25.6 MB)</a></li><li>
Source Code and Game Content: <a href="http://arenawars.net/XnaProjects/DungeonQuestGDCSourceCode.zip">DungeonQuestGDCSourceCode.zip
(67.2 MB)</a></li><li>
Screenshot:<br /><a href="http://arenawars.net/XnaProjects/DungeonQuest_Day4_01.jpg"><img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;Height=200&amp;Link=DungeonQuest_Day4_01.jpg" border="0" /><br /><br /></a></li></ul></li></ul>
Have fun with all the games :)<img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=5bab5e3e-0bde-4092-96cc-012bcee7656e" /></body>
      <title>All XNA Games converted to XNA 2.0 from Rocket Commander to the Racing Game.</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,5bab5e3e-0bde-4092-96cc-012bcee7656e.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2008/02/11/AllXNAGamesConvertedToXNA20FromRocketCommanderToTheRacingGame.aspx</link>
      <pubDate>Mon, 11 Feb 2008 23:48:36 GMT</pubDate>
      <description>Even when I did not post much last week I was very busy converting all the old XNA 1.0 games to XNA 2.0. I did not only convert all projects (8 games in total, see below), but I also tested them extensively on Windows XP, Vista (32 and 64 bit) and the Xbox 360. Additionally a lot of usability improvements have been implemented in the games, for example the XNA Shooter is now much easier (was almost impossible to even reach 50% of the level) and a lot more fun due better balancing. The XNA Racing Game has now a better physic engine and will not longer let the car fly out of the track or leave ground in loopings. Due the better input control and fixed physics the cars drive now much faster and it is more challenging to complete the tracks in shorter time frames.&lt;br&gt;
&lt;br&gt;
Games in this article: 
&lt;ul&gt;
&lt;li&gt;
&lt;a href="#Chapter1Game"&gt;Chapter1Game&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#XnaPong"&gt;Xna Pong&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#XnaBreakout"&gt;Xna Breakout&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#XnaTetris"&gt;Xna Tetris&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#RocketCommanderXna"&gt;Rocket Commander Xna&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#XnaShooter"&gt;Xna Shooter&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#XnaRacingGame"&gt;Xna Racing Game&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#DungeonQuestGDC"&gt;Dungeon Quest GDC&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
Please read my previous post about &lt;a href="http://exdream.no-ip.info/blog/2008/02/01/ConvertingXNA10ProjectsToXNA20.aspx"&gt;Converting
XNA 1.0 games to XNA 2.0 for all technical tips&lt;/a&gt;. All the games can also be found
on &lt;a href="http://XnaProjects.net"&gt;http://XnaProjects.net&lt;/a&gt;, but I will also make
them easier accessible on this blog soon, which has an update overdue (need to clean
up the left and right sides) ^^&lt;br&gt;
&lt;br&gt;
Thanks to the great VS2005 support of XNA 2.0 all games have now just one single solution
file, which works on Windows and the Xbox 360. The projects can be opened in XNA Game
Studio 2.0 and Visual Studio 2005 without having to &lt;a href="http://exdream.no-ip.info/blog/2007/07/19/XnaProjectChangerToolWithVS2008Support.aspx"&gt;convert
the files over and over again like in the past&lt;/a&gt;. The Icons for all games were also
improved. Lets take a look at the Icons (.ico files) on Windows:&lt;br&gt;
&lt;br&gt;
&lt;img src="http://exdream.no-ip.info/blog/content/binary/XnaIconsWindows.jpg" border="0"&gt; 
&lt;br&gt;
For the Xbox 360 game icons the .png files (usually named GameThumbnail.png) are used:&lt;br&gt;
&lt;br&gt;
&lt;img src="http://exdream.no-ip.info/blog/content/binary/XnaIconsXbox360.jpg" border="0" width="382"&gt; 
&lt;br&gt;
Ok, let's take a look at the games and what has changed for them. Most games are pretty
much the same as for XNA 1.0, but a lot of smaller bugs were fixed and they have been
tested more.&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a name="Chapter1Game"&gt;&lt;/a&gt;&lt;b&gt;Chapter1Game&lt;/b&gt;: This application is not really a game,
but a test project to check out if XNA 2.0 is properly working on both Windows and
the Xbox 360. It is from the first chapter of my book &lt;a href="http://www.wrox.com/WileyCDA/WroxTitle/productCd-0470126779.html"&gt;"Professional
XNA Game Programming"&lt;/a&gt;. BTW: The second edition of the book is coming out soon,
there are 3 more chapters about Multiplayer game programming and a cool new role playing
game.&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Game Installer: &lt;a href="http://arenawars.net/XnaProjects/Chapter1GameSetup.exe"&gt;Chapter1GameSetup.exe
(210 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Source Code and Game Content: &lt;a href="http://arenawars.net/XnaProjects/Chapter1GameSourceCode.zip"&gt;Chapter1GameSourceCode.zip
(57 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Screenshot:&lt;br&gt;
&lt;a href="http://arenawars.net/XnaProjects/Chapter1GameScreenshot1.jpg"&gt;&lt;img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;amp;Height=200&amp;amp;Link=Chapter1GameScreenshot1.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a name="XnaPong"&gt;&lt;/a&gt;&lt;b&gt;Xna Pong&lt;/b&gt;: Xna Pong is a simple clone of the favorite
pong game from 1978. It is just a few hunderd lines of code and should be very easy
to understand.&lt;br&gt;
&lt;br&gt;
This game is from the book "Professional XNA Game Programming" by Benjamin Nitschke.
For more information read chapter 2. (2008-02-10: Now updated to XNA 2.0)&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Game Installer: &lt;a href="http://arenawars.net/XnaProjects/XnaPongSetup.exe"&gt;XnaPongSetup.exe
(309 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Source Code and Game Content: &lt;a href="http://arenawars.net/XnaProjects/XnaPongSourceCode.zip"&gt;XnaPongSourceCode.zip
(258 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Screenshot:&lt;br&gt;
&lt;a href="http://arenawars.net/XnaProjects/XNAPongScreenshot.jpg"&gt;&lt;img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;amp;Height=200&amp;amp;Link=XNAPongScreenshot.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a name="XnaBreakout"&gt;&lt;/a&gt;&lt;b&gt;Xna Breakout&lt;/b&gt;: XNA Breakout is a simple Breakout/Arcanoid
game based on the XNA Pong game from the previous chapter.&lt;br&gt;
&lt;br&gt;
It is fully described and covered in Chapter 3 of my book "Professional XNA Game Programming".
The code is quite short and should be easy to understand. (2008-02-10: Now updated
to XNA 2.0)&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Game Installer: &lt;a href="http://arenawars.net/XnaProjects/XnaBreakoutSetup.exe"&gt;XnaBreakoutSetup.exe
(383 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Source Code and Game Content: &lt;a href="http://arenawars.net/XnaProjects/XnaBreakoutSourceCode.zip"&gt;XnaBreakoutSourceCode.zip
(316 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Screenshot:&lt;br&gt;
&lt;a href="http://arenawars.net/XnaProjects/XNABreakoutScreenshot.jpg"&gt;&lt;img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;amp;Height=200&amp;amp;Link=XNABreakoutScreenshot.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a name="XnaTetris"&gt;&lt;/a&gt;&lt;b&gt;Xna Tetris&lt;/b&gt;: This is a simple, but highly addictive
Tetris game. You can control the blocks with your cursor keys, aswd or a game pad
and the game works both on Windows and the Xbox 360. Reaching levels above 5 is really
hard. My highest level was 9, try to reach more :) (2008-02-10: Now updated to XNA
2.0)&lt;br&gt;
&lt;br&gt;
This game introduces the helper classes (chapter 4 of my book) and makes more use
of unit testing and game components in XNA.&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Game Installer: &lt;a href="http://arenawars.net/XnaProjects/XnaTetrisSetup.exe"&gt;XnaTetrisSetup.exe
(310 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Source Code and Game Content: &lt;a href="http://arenawars.net/XnaProjects/XnaTetrisSourceCode.zip"&gt;XnaTetrisSourceCode.zip
(277 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Screenshot:&lt;br&gt;
&lt;a href="http://arenawars.net/XnaProjects/XNATetrisScreenshot1.jpg"&gt;&lt;img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;amp;Height=200&amp;amp;Link=XNATetrisScreenshot1.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a name="RocketCommanderXna"&gt;&lt;/a&gt;&lt;b&gt;Rocket Commander Xna&lt;/b&gt;: XNA port of the famous
Rocket Commander game. The game principle stayed the same, but the controls were a
little bit simplified to make it more fun on the Xbox 360.&lt;br&gt;
&lt;br&gt;
If you want to learn more about the Rocket Commander game, check out its official
website &lt;a href="http://www.RocketCommander.com"&gt;www.RocketCommander.com&lt;/a&gt; and check
out the Video Tutorials on Coding4Fun by MSDN. (2008-02-10: Now updated to XNA 2.0,
also supports very big resolutions now and runs faster on the Xbox 360)&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Game Installer: &lt;a href="http://arenawars.net/XnaProjects/RocketCommanderXnaSetup.exe"&gt;RocketCommanderXnaSetup.exe
(16.5 MB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Source Code and Game Content: &lt;a href="http://arenawars.net/XnaProjects/RocketCommanderXnaSourceCode.zip"&gt;RocketCommanderXnaSourceCode.zip
(52.8 MB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Screenshot:&lt;br&gt;
&lt;a href="http://arenawars.net/XnaProjects/RocketCommanderXnaScreenshot1.jpg"&gt;&lt;img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;amp;Height=200&amp;amp;Link=RocketCommanderXnaScreenshot1.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a name="XnaShooter"&gt;&lt;/a&gt;&lt;b&gt;Xna Shooter&lt;/b&gt;: Shoot'n'up game specifically created
for my book "Professional XNA Game Programming". It features full HDTV support, runs
on Windows and the Xbox 360, 5 weapon types, 5 enemy types, a powerful ship and some
power ups. It is quite fun to play and it gets harder and harder the longer you play.
Based partly on the Rocket Commander XNA engine, but also features lots of new effects
and shaders. (2008-02-10: Now updated to XNA 2.0, also much easier and balanced)&lt;br&gt;
&lt;br&gt;
This game and the racing game are the most improved. The game works now much better
in high resolutions and on the Xbox 360. But most importantly the game is now much
easier, balanced and more fun. Additionally a level percentage is now visible on the
bottom and more EMP bombs can be picked up to make it easier at the end of the level. 
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Game Installer: &lt;a href="http://arenawars.net/XnaProjects/XnaShooterSetup.exe"&gt;XnaShooterSetup.exe
(14.9 MB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Source Code and Game Content: &lt;a href="http://arenawars.net/XnaProjects/XnaShooterSourceCode.zip"&gt;XnaShooterSourceCode.zip
(32.2 MB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Screenshot:&lt;br&gt;
&lt;a href="http://arenawars.net/XnaProjects/XnaShooterScreenshot0014.jpg"&gt;&lt;img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;amp;Height=200&amp;amp;Link=XnaShooterScreenshot0014.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a name="XnaRacingGame"&gt;&lt;/a&gt;&lt;b&gt;Xna Racing Game&lt;/b&gt;: XNA Racing Game Starter Kit I
wrote for &lt;a href="http://creators.xna.com"&gt;http://creators.xna.com&lt;/a&gt;. More information
and more downloads can be found on &lt;a href="http://XnaRacingGame.com"&gt;http://XnaRacingGame.com&lt;/a&gt;.
It runs best on the Xbox 360 in HDTV (1920x1200), but it also runs fine on the PC.
(2008-02-10: Now updated to XNA 2.0, driving also improved a lot, better tested on
Xbox 360 and fixed some issues).&lt;br&gt;
&lt;br&gt;
Following things were improved: Shadow mapping on very big resolutions works now (crashed
before), more options for lower quality settings, fixed physics, car now always stays
on the road, fixed loopings, cars are much faster now, winning conditions work better
now, and fixed several other bugs. 
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Game Installer: &lt;a href="http://arenawars.net/XnaProjects/XnaRacingGameSetup.exe"&gt;XnaRacingGameSetup.exe
(40.2 MB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Source Code and Game Content: &lt;a href="http://arenawars.net/XnaProjects/XnaRacingGameSourceCode.zip"&gt;XnaRacingGameSourceCode.zip
(95.4 MB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Screenshot:&lt;br&gt;
&lt;a href="http://arenawars.net/XnaProjects/RacingGameScreenshotBig03.jpg"&gt;&lt;img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;amp;Height=200&amp;amp;Link=RacingGameScreenshotBig03.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a name="DungeonQuestGDC"&gt;&lt;/a&gt;&lt;b&gt;Dungeon Quest GDC&lt;/b&gt;: And finally the Dungeon Quest
XNA Game, which was developed in just 4 days on the GDC 2007 at the XNA Contest. Dungeon
Quest GDC is a relatively complex 3D role playing game (at least for just 4 days of
work). An early version even supported coop multiplayer on the Xbox 360 via splitscreen.
The game was developed by Benjamin Nitschke (abi.exDream.com) and Christoph Rienaecker
(WAII). (2008-02-10: Now updated to XNA 2.0). This is NOT the full Dungeon Quest game
(see www.DungeonQuestGame.com for that), this is just the GDC version.&lt;br&gt;
&lt;br&gt;
Please note that the level was reduced to allow loading on the Xbox 360 (which otherwise
crashes with an OutOfMemoryException), the game is not fully playable, only the first
part is implemented. You can also press F2 to toggle the Options menu and some minor
bugs were fixed. But this game is no longer supported, I will not improve it anymore!
Please check out the new Dungeon Quest game from www.DungeonQuestGame.com, which is
coming in a month or so.&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Game Installer: &lt;a href="http://arenawars.net/XnaProjects/DungeonQuestGDCSetup.exe"&gt;DungeonQuestGDCSetup.exe
(25.6 MB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Source Code and Game Content: &lt;a href="http://arenawars.net/XnaProjects/DungeonQuestGDCSourceCode.zip"&gt;DungeonQuestGDCSourceCode.zip
(67.2 MB)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Screenshot:&lt;br&gt;
&lt;a href="http://arenawars.net/XnaProjects/DungeonQuest_Day4_01.jpg"&gt;&lt;img src="http://arenawars.net/XnaProjects/Photo.aspx?Width=320&amp;amp;Height=200&amp;amp;Link=DungeonQuest_Day4_01.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
Have fun with all the games :)&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=5bab5e3e-0bde-4092-96cc-012bcee7656e" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,5bab5e3e-0bde-4092-96cc-012bcee7656e.aspx</comments>
      <category>All;Development;Game Development;Other;Programming;Racing Game;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=7597edbd-a105-4d85-98a9-ced60522acf9</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,7597edbd-a105-4d85-98a9-ced60522acf9.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,7597edbd-a105-4d85-98a9-ced60522acf9.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=7597edbd-a105-4d85-98a9-ced60522acf9</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://exdream.no-ip.info/blog/content/binary/Xna1toXna2.jpg" border="0" />
        <br />
When I wrote this (a little bit each day while working on converting the old XNA projects)
I was very aware about the disappointment of my blog readers about the fact that I
did not blog much in the last couple of months, especially on XNA. I not only got
a lot of emails about that, but also quite a lot of questions, especially since XNA
2.0 was released. I made yet another promise to myself to change that and finally
blog more, maybe not only when something very interesting pops up, but instead about
the everyday issues I run into.<br /><br />
Some Notes about <b>XNA 2.0</b>: More solid, lots of little new features, networking,
while it may not be a very complete solution, at least it is now possible on the Xbox
360 and overall I have the feeling even more people are interested in XNA than a year
ago. Plus the guys at the XNA Team doing a great job and are constantly improving
the <a href="http://creators.xna.com/">XNA Creators Club</a> website for us game programmers
and artists :)<a href="http://creators.xna.com"><br /><img src="http://creators.xna.com/Themes/default/images/common/logo_xna.png" border="0" /></a><br /><br />
Several people had problems using the old XNA 1.0 code of my games and make them work
with XNA 2.0, so here is a little help in case you want to convert XNA 1.0 projects
to XNA 2.0. You will also notice this if you go to any XNA community site as most
samples will still be in XNA 1.0 and not work out of the box in XNA 2.0, and many
of those will probably never be changed since they are not longer actively being developed.<br /><br />
For most games almost all of the code can stay unchanged, you just have to poke at
a few things that have changed in the framework or were improved. <a href="http://creators.xna.com/Education/whatsnew.aspx">More
information about converting projects can be found here</a> (read this first, this
article is based on the stuff there). You can also use the <a href="http://msdn2.microsoft.com/en-us/library/bb976061.aspx">Cross-Platform
Game Project Converter from XNA 2.0</a> to add a Xbox 360 project to your existing
Windows XNA project without having to create a separate project (it is helpful, but
I used pretty much the same trick for all of my XNA 1.0 games anyway).<br /><br />
Let's go through the steps:<br /><br /><ol><li>
Either use the <a href="http://creators.xna.com/GameStudio2/ProjectUpgradeWizardForXNAGameStudio2.htm">XNA
project conversion utility</a> (can be found on the XNA Creators Club website) or
just create a new XNA 2.0 project in VS 2005.<br /><br /></li><li>
If you created a new project, drag all source code files into the project and seperate
the content files out and put them all in the existing <b>Content </b>directory (only
there the content pipeline is activated). If you just converted a project and the
content files did not move, move them yourself to the content directory. Gladly all
my projects with more than 5 content files had a special content directory anyway,
so no need to change anything content-wise for them. If you don't want some of the
files to be compiled to .xnb files, you have to change the build action from "<b>compile</b>"
to "<b>content</b>" (and then use the "<b>copy to output directory</b>" switch) or
to "<b>none</b>" if you want them to be ignored like for .wav files, which are automatically
processed by the .xct (XACT) file for you.<br /><br /></li><li>
Find the line <b>content = new ContentManager(Services);</b> and replace it with <b>Content.RootDirectory
= "Content";</b>. If you do that, get rid of the content manager in your game class
since you can now use the build-in Content property to access the underlying Game
content manager. In case you don't want to do that or if you need an extra variable,
replace the above line with <b>content = new ContentManager(Services, "Content");</b>.
Both ways will make sure all the content is now loaded from the content directory
instead from the main directory of the application. In more complex XNA games you
can also change the BaseGameDirectory to the content directory, but then you would
also have to move all other resource files to this directory (config files, save games,
levels, etc.). It is usually a good idea to separate the compiled (.xnb) content from
the content the user can change (config, levels, etc.), so I suggest just redirecting
the content directory of the content manager.<br /><br /></li><li>
Replace the <b>LoadGraphicsContent(bool)</b> method with <b>LoadContent</b>, remove
all the <b>if (loadAllContent)</b> commands (was never false anyway, just let the
content of the if loop stay) and also remove the call to <b>base.LoadGraphicsContent(bool)</b> (does
not do anything like all the Load or Unload methods in the XNA Game class, they are
just empty virtual methods). You can also ignore this and the next step since it will
only generate depreciated warnings, but I suggest cleaning up your source code whenever
an opportunity like this presents itself. I also added some missing region blocks
to the code and some comments here and there were they were missing.<br /><br /></li><li>
Finally delete the <b>UnloadGraphicsContent</b> method unless it did anything beside <b>base.Unload</b> and <b>base.UnloadGraphicsContent</b>.
In my XNA games the <b>UnloadGraphicsContent</b> usually looked like this and can
be safely removed now (at least if nothing else is in there):</li></ol><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;">///
&lt;summary&gt;</span><br /><span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;">///
Unload graphic content if the device gets lost.</span><br /><span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;">///
&lt;/summary&gt;</span><br /><span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;">///
&lt;param name="unloadAllContent"&gt;Unload everything?&lt;/param&gt;</span><br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">protected</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">override</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">void</span> UnloadGraphicsContent(<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">bool</span> unloadAllContent)<br />
{<br />
  <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">if</span> (unloadAllContent
== <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">true</span>)<br />
    content.Unload();<br /><br />
  <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">base</span>.UnloadGraphicsContent(unloadAllContent);<br />
} <span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;">//
UnloadGraphicsContent(loadAllContent)</span></span></p><br /><li>
In case you load sound and music via the AudioEngine, you have to change the directory
to the content directory too, which will not be done automatically for you since you
load the .xct file directly in the AudioEngine constructor. Basically just exchange
the following code:<br /><br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"> audioEngine <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">new</span> AudioEngine(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"YourSound.xgs"</span>);<br />
waveBank <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">new</span> WaveBank(audioEngine, <span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"Wave
Bank.xwb"</span>);<br />
soundBank <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">new</span> SoundBank(audioEngine, <span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"Sound
Bank.xsb"</span>);<br /></span></p>
with:<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"> audioEngine <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">new</span> AudioEngine(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"Content\\YourSound.xgs"</span>);<br />
waveBank <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">new</span> WaveBank(audioEngine, <span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"Content\\Wave
Bank.xwb"</span>);<br />
soundBank <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">new</span> SoundBank(audioEngine, <span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"Content\\Sound
Bank.xsb"</span>);</span></p>
   <br /></li><li>
In case you have used the <b>StorageDevice </b>and specifically the <b>ShowStorageDeviceGuide </b>helper
method, it is gone now in XNA 2.0. I had it in some helper classes, but never actually
used it. In case you want to show a save game dialog (or some network game select
dialog for example), please follow the XNA 2.0 help instructions to do this asynchronously
now.<br /><br /></li><li>
In case you use any <b>ResourceUsage </b>enum, replace it with <b>TextureUsage </b>instead
or remove it if the issue is not texture related. You can also safely remove any <b>ResourceManagementMode</b>.<b>Automatic </b>parameters,
which are not longer supported. Everything is now automatic anyway. Just if you have
been using <b>ResourceUsage</b>.<b>RenderTarget </b>you will need to change the <b>Texture2D </b>class
to a <b>ResolveTexture2D</b> class in order to archive the same behaviour as before.
Some calls to the device (e.g. <b>ResolveBackBuffer</b>) have also changed and require
a <b>ResolveTexture2D </b>now. You may also want to check if you have any manual texture
management or disposing, which you can remove or simplify.<br /><br /></li><li>
For simpler games (2D) games you should be done now. More complex games using render
targets and other features that have changed in XNA 2.0 will require some more changes,
but after you have done them once (or know where to change what) this is also a quick
process.</li><br />
The following only applies to the <b>RocketCommanderXna</b>, <b>XnaShooter </b>and <b>XnaRacingGame </b>engines,
but you might find similarities with other XNA games and the converting process:<br /><br /><ol><li>
First of all make sure the old XNA 1.1 code gets compileable by going though the changes
mentioned above (e.g. replacing <b>ResourceUsage </b>with <b>TextureUsage </b>or <b>BufferUsage</b>)
and removing everything that does not exist anymore (like <b>ResourceManagementMode</b>.<b>Automatic</b>).
If a method is non-existent in XNA 2.0 like <b>ResolveRenderTarget</b>, comment it
out and remember where it happened.<br /><br /></li><li>
You might go through other issues, but you have to come back to the RenderTarget issue.
This took the most time in the converting process for me (probably half of all my
issues come by something related to changes with <b>RenderTargets </b>in XNA 2.0).
For that reason always make sure that rendering to textures still works while you
make changing. I always used the <b>TestCreateRenderToTexture </b>unit test inside
the <b>RenderToTexture </b>class to figure things out.<br /><br /></li><li>
Additionally to making some changes in the <b>BaseGame </b>class (loading content
via <b>LoadContent</b>, using the <b>base.Content</b> instead of creating a new content
manager, etc.) I also removed all the <b>RenderTarget </b>helper methods and fields
from the BaseGame class (<b>SetRenderTarget</b>, <b>ResetRenderTarget</b>, etc.) and
moved them into the <b>RenderToTexture </b>class. While this makes the code more clean
and restructured by making a few more fields private, if you do not call the new <b>InitializeDepthBufferFormatAndMultisampling </b>of
the <b>RenderToTexture </b>class the calls to <b>SetRenderTarget </b>and <b>ResetRenderTarget </b>will
not work correctly and will not restore the default depth buffer (which has to be
remembered first). If you get the following exception it means the <b>DepthBuffer
Device.DepthStencilBuffer</b> was set to null, but is obviously still used. In order
to fix that make sure the <b>remDepthBuffer </b>variable is set to a correct value
in the <b>InitializeDepthBufferFormatAndMultisampling </b>method!<br /></li></ol><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><br />
An error has occurred during the Clear operation <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">while</span> trying
to clear the depth or stencil buffer, no DepthStencilBuffer surface exists.<br />
System.InvalidOperationException: An error has occurred during the Clear operation <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">while</span> trying
to clear the depth or stencil buffer, no DepthStencilBuffer surface exists.<br />
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Color
color, Single depth, Int32 stencil, Rectangle[] regions)<br />
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(Color color)</span></p>
    
<br /><li>
4. Even if you have now done everything, the app may still crash when you are trying
to clear a render target (which usually happens at the start of each pre or post screen
shader). The reason for the following error is the multi sampling format, which might
be set to the background buffer, but not to the render targets:<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><br />
The active render target and depth stencil surface must have the same pixel size and
multisampling type.<br />
System.InvalidOperationException: The active render target and depth stencil surface
must have the same pixel size and multisampling type.<br />
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.VerifyDepthRenderTargetCompat()<br />
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Color
color, Single depth, Int32 stencil, Rectangle[] regions)</span></p>
    
<br />
In order to get rid of this error without changing the <b>RenderToTexture </b>class
a lot, you can just comment out the line where multi sampling is activated in <b>BaseGame</b>:<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;">//this.graphics.PreferMultiSampling
= true;</span></span></p></li>
There are probably even more things that I forgot while converting the projects (converted
8 games and about 15 projects in total now), but the above list should be helpful.
Especially for me because I always forget some of those little things and having this
checklist is very helpful.<br /><br />
Tomorrow I will probably test all the XNA 2.0 games on my Xbox 360 and make some final
adjustments and then post them all on <a href="http://XnaProjects.net">http://XnaProjects.net</a> (and
here).<br /><br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=7597edbd-a105-4d85-98a9-ced60522acf9" /></body>
      <title>Converting XNA 1.0 Projects to XNA 2.0</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,7597edbd-a105-4d85-98a9-ced60522acf9.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2008/02/01/ConvertingXNA10ProjectsToXNA20.aspx</link>
      <pubDate>Fri, 01 Feb 2008 00:32:32 GMT</pubDate>
      <description>&lt;img src="http://exdream.no-ip.info/blog/content/binary/Xna1toXna2.jpg" border="0"&gt;
&lt;br&gt;
When I wrote this (a little bit each day while working on converting the old XNA projects)
I was very aware about the disappointment of my blog readers about the fact that I
did not blog much in the last couple of months, especially on XNA. I not only got
a lot of emails about that, but also quite a lot of questions, especially since XNA
2.0 was released. I made yet another promise to myself to change that and finally
blog more, maybe not only when something very interesting pops up, but instead about
the everyday issues I run into.&lt;br&gt;
&lt;br&gt;
Some Notes about &lt;b&gt;XNA 2.0&lt;/b&gt;: More solid, lots of little new features, networking,
while it may not be a very complete solution, at least it is now possible on the Xbox
360 and overall I have the feeling even more people are interested in XNA than a year
ago. Plus the guys at the XNA Team doing a great job and are constantly improving
the &lt;a href="http://creators.xna.com/"&gt;XNA Creators Club&lt;/a&gt; website for us game programmers
and artists :)&lt;a href="http://creators.xna.com"&gt;
&lt;br&gt;
&lt;img src="http://creators.xna.com/Themes/default/images/common/logo_xna.png" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Several people had problems using the old XNA 1.0 code of my games and make them work
with XNA 2.0, so here is a little help in case you want to convert XNA 1.0 projects
to XNA 2.0. You will also notice this if you go to any XNA community site as most
samples will still be in XNA 1.0 and not work out of the box in XNA 2.0, and many
of those will probably never be changed since they are not longer actively being developed.&lt;br&gt;
&lt;br&gt;
For most games almost all of the code can stay unchanged, you just have to poke at
a few things that have changed in the framework or were improved. &lt;a href="http://creators.xna.com/Education/whatsnew.aspx"&gt;More
information about converting projects can be found here&lt;/a&gt; (read this first, this
article is based on the stuff there). You can also use the &lt;a href="http://msdn2.microsoft.com/en-us/library/bb976061.aspx"&gt;Cross-Platform
Game Project Converter from XNA 2.0&lt;/a&gt; to add a Xbox 360 project to your existing
Windows XNA project without having to create a separate project (it is helpful, but
I used pretty much the same trick for all of my XNA 1.0 games anyway).&lt;br&gt;
&lt;br&gt;
Let's go through the steps:&lt;br&gt;
&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;
Either use the &lt;a href="http://creators.xna.com/GameStudio2/ProjectUpgradeWizardForXNAGameStudio2.htm"&gt;XNA
project conversion utility&lt;/a&gt; (can be found on the XNA Creators Club website) or
just create a new XNA 2.0 project in VS 2005.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
If you created a new project, drag all source code files into the project and seperate
the content files out and put them all in the existing &lt;b&gt;Content &lt;/b&gt;directory (only
there the content pipeline is activated). If you just converted a project and the
content files did not move, move them yourself to the content directory. Gladly all
my projects with more than 5 content files had a special content directory anyway,
so no need to change anything content-wise for them. If you don't want some of the
files to be compiled to .xnb files, you have to change the build action from "&lt;b&gt;compile&lt;/b&gt;"
to "&lt;b&gt;content&lt;/b&gt;" (and then use the "&lt;b&gt;copy to output directory&lt;/b&gt;" switch) or
to "&lt;b&gt;none&lt;/b&gt;" if you want them to be ignored like for .wav files, which are automatically
processed by the .xct (XACT) file for you.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Find the line &lt;b&gt;content = new ContentManager(Services);&lt;/b&gt; and replace it with &lt;b&gt;Content.RootDirectory
= "Content";&lt;/b&gt;. If you do that, get rid of the content manager in your game class
since you can now use the build-in Content property to access the underlying Game
content manager. In case you don't want to do that or if you need an extra variable,
replace the above line with &lt;b&gt;content = new ContentManager(Services, "Content");&lt;/b&gt;.
Both ways will make sure all the content is now loaded from the content directory
instead from the main directory of the application. In more complex XNA games you
can also change the BaseGameDirectory to the content directory, but then you would
also have to move all other resource files to this directory (config files, save games,
levels, etc.). It is usually a good idea to separate the compiled (.xnb) content from
the content the user can change (config, levels, etc.), so I suggest just redirecting
the content directory of the content manager.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Replace the &lt;b&gt;LoadGraphicsContent(bool)&lt;/b&gt; method with &lt;b&gt;LoadContent&lt;/b&gt;, remove
all the &lt;b&gt;if (loadAllContent)&lt;/b&gt; commands (was never false anyway, just let the
content of the if loop stay) and also remove the call to &lt;b&gt;base.LoadGraphicsContent(bool)&lt;/b&gt; (does
not do anything like all the Load or Unload methods in the XNA Game class, they are
just empty virtual methods). You can also ignore this and the next step since it will
only generate depreciated warnings, but I suggest cleaning up your source code whenever
an opportunity like this presents itself. I also added some missing region blocks
to the code and some comments here and there were they were missing.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Finally delete the &lt;b&gt;UnloadGraphicsContent&lt;/b&gt; method unless it did anything beside &lt;b&gt;base.Unload&lt;/b&gt; and &lt;b&gt;base.UnloadGraphicsContent&lt;/b&gt;.
In my XNA games the &lt;b&gt;UnloadGraphicsContent&lt;/b&gt; usually looked like this and can
be safely removed now (at least if nothing else is in there):&lt;/li&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt; &lt;span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;///
&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;///
Unload graphic content if the device gets lost.&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;///
&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;///
&amp;lt;param name="unloadAllContent"&amp;gt;Unload everything?&amp;lt;/param&amp;gt;&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;protected&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;override&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;void&lt;/span&gt; UnloadGraphicsContent(&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;bool&lt;/span&gt; unloadAllContent)&lt;br&gt;
{&lt;br&gt;
&amp;nbsp; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;if&lt;/span&gt; (unloadAllContent
== &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;true&lt;/span&gt;)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; content.Unload();&lt;br&gt;
&lt;br&gt;
&amp;nbsp; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;base&lt;/span&gt;.UnloadGraphicsContent(unloadAllContent);&lt;br&gt;
} &lt;span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;//
UnloadGraphicsContent(loadAllContent)&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;br&gt;
&lt;li&gt;
In case you load sound and music via the AudioEngine, you have to change the directory
to the content directory too, which will not be done automatically for you since you
load the .xct file directly in the AudioEngine constructor. Basically just exchange
the following code:&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt; audioEngine &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;new&lt;/span&gt; AudioEngine(&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"YourSound.xgs"&lt;/span&gt;);&lt;br&gt;
waveBank &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;new&lt;/span&gt; WaveBank(audioEngine, &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"Wave
Bank.xwb"&lt;/span&gt;);&lt;br&gt;
soundBank &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;new&lt;/span&gt; SoundBank(audioEngine, &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"Sound
Bank.xsb"&lt;/span&gt;);&lt;br&gt;
&lt;/span&gt;
&lt;/p&gt;
with:&lt;br&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt; audioEngine &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;new&lt;/span&gt; AudioEngine(&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"Content\\YourSound.xgs"&lt;/span&gt;);&lt;br&gt;
waveBank &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;new&lt;/span&gt; WaveBank(audioEngine, &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"Content\\Wave
Bank.xwb"&lt;/span&gt;);&lt;br&gt;
soundBank &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;new&lt;/span&gt; SoundBank(audioEngine, &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"Content\\Sound
Bank.xsb"&lt;/span&gt;);&lt;/span&gt;
&lt;/p&gt;
&amp;nbsp; &amp;nbsp;&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
In case you have used the &lt;b&gt;StorageDevice &lt;/b&gt;and specifically the &lt;b&gt;ShowStorageDeviceGuide &lt;/b&gt;helper
method, it is gone now in XNA 2.0. I had it in some helper classes, but never actually
used it. In case you want to show a save game dialog (or some network game select
dialog for example), please follow the XNA 2.0 help instructions to do this asynchronously
now.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
In case you use any &lt;b&gt;ResourceUsage &lt;/b&gt;enum, replace it with &lt;b&gt;TextureUsage &lt;/b&gt;instead
or remove it if the issue is not texture related. You can also safely remove any &lt;b&gt;ResourceManagementMode&lt;/b&gt;.&lt;b&gt;Automatic &lt;/b&gt;parameters,
which are not longer supported. Everything is now automatic anyway. Just if you have
been using &lt;b&gt;ResourceUsage&lt;/b&gt;.&lt;b&gt;RenderTarget &lt;/b&gt;you will need to change the &lt;b&gt;Texture2D &lt;/b&gt;class
to a &lt;b&gt;ResolveTexture2D&lt;/b&gt; class in order to archive the same behaviour as before.
Some calls to the device (e.g. &lt;b&gt;ResolveBackBuffer&lt;/b&gt;) have also changed and require
a &lt;b&gt;ResolveTexture2D &lt;/b&gt;now. You may also want to check if you have any manual texture
management or disposing, which you can remove or simplify.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
For simpler games (2D) games you should be done now. More complex games using render
targets and other features that have changed in XNA 2.0 will require some more changes,
but after you have done them once (or know where to change what) this is also a quick
process.&lt;/li&gt;&gt;
&lt;br&gt;
The following only applies to the &lt;b&gt;RocketCommanderXna&lt;/b&gt;, &lt;b&gt;XnaShooter &lt;/b&gt;and &lt;b&gt;XnaRacingGame &lt;/b&gt;engines,
but you might find similarities with other XNA games and the converting process:&lt;br&gt;
&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;
First of all make sure the old XNA 1.1 code gets compileable by going though the changes
mentioned above (e.g. replacing &lt;b&gt;ResourceUsage &lt;/b&gt;with &lt;b&gt;TextureUsage &lt;/b&gt;or &lt;b&gt;BufferUsage&lt;/b&gt;)
and removing everything that does not exist anymore (like &lt;b&gt;ResourceManagementMode&lt;/b&gt;.&lt;b&gt;Automatic&lt;/b&gt;).
If a method is non-existent in XNA 2.0 like &lt;b&gt;ResolveRenderTarget&lt;/b&gt;, comment it
out and remember where it happened.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
You might go through other issues, but you have to come back to the RenderTarget issue.
This took the most time in the converting process for me (probably half of all my
issues come by something related to changes with &lt;b&gt;RenderTargets &lt;/b&gt;in XNA 2.0).
For that reason always make sure that rendering to textures still works while you
make changing. I always used the &lt;b&gt;TestCreateRenderToTexture &lt;/b&gt;unit test inside
the &lt;b&gt;RenderToTexture &lt;/b&gt;class to figure things out.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Additionally to making some changes in the &lt;b&gt;BaseGame &lt;/b&gt;class (loading content
via &lt;b&gt;LoadContent&lt;/b&gt;, using the &lt;b&gt;base.Content&lt;/b&gt; instead of creating a new content
manager, etc.) I also removed all the &lt;b&gt;RenderTarget &lt;/b&gt;helper methods and fields
from the BaseGame class (&lt;b&gt;SetRenderTarget&lt;/b&gt;, &lt;b&gt;ResetRenderTarget&lt;/b&gt;, etc.) and
moved them into the &lt;b&gt;RenderToTexture &lt;/b&gt;class. While this makes the code more clean
and restructured by making a few more fields private, if you do not call the new &lt;b&gt;InitializeDepthBufferFormatAndMultisampling &lt;/b&gt;of
the &lt;b&gt;RenderToTexture &lt;/b&gt;class the calls to &lt;b&gt;SetRenderTarget &lt;/b&gt;and &lt;b&gt;ResetRenderTarget &lt;/b&gt;will
not work correctly and will not restore the default depth buffer (which has to be
remembered first). If you get the following exception it means the &lt;b&gt;DepthBuffer
Device.DepthStencilBuffer&lt;/b&gt; was set to null, but is obviously still used. In order
to fix that make sure the &lt;b&gt;remDepthBuffer &lt;/b&gt;variable is set to a correct value
in the &lt;b&gt;InitializeDepthBufferFormatAndMultisampling &lt;/b&gt;method!&lt;br&gt;
&lt;/li&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;
&lt;br&gt;
An error has occurred during the Clear operation &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;while&lt;/span&gt; trying
to clear the depth or stencil buffer, no DepthStencilBuffer surface exists.&lt;br&gt;
System.InvalidOperationException: An error has occurred during the Clear operation &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;while&lt;/span&gt; trying
to clear the depth or stencil buffer, no DepthStencilBuffer surface exists.&lt;br&gt;
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Color
color, Single depth, Int32 stencil, Rectangle[] regions)&lt;br&gt;
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(Color color)&lt;/span&gt;
&lt;/p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;br&gt;
&lt;li&gt;
4. Even if you have now done everything, the app may still crash when you are trying
to clear a render target (which usually happens at the start of each pre or post screen
shader). The reason for the following error is the multi sampling format, which might
be set to the background buffer, but not to the render targets:&lt;br&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;
&lt;br&gt;
The active render target and depth stencil surface must have the same pixel size and
multisampling type.&lt;br&gt;
System.InvalidOperationException: The active render target and depth stencil surface
must have the same pixel size and multisampling type.&lt;br&gt;
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.VerifyDepthRenderTargetCompat()&lt;br&gt;
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Color
color, Single depth, Int32 stencil, Rectangle[] regions)&lt;/span&gt;
&lt;/p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;br&gt;
In order to get rid of this error without changing the &lt;b&gt;RenderToTexture &lt;/b&gt;class
a lot, you can just comment out the line where multi sampling is activated in &lt;b&gt;BaseGame&lt;/b&gt;:&lt;br&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;//this.graphics.PreferMultiSampling
= true;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;/li&gt;&gt;
There are probably even more things that I forgot while converting the projects (converted
8 games and about 15 projects in total now), but the above list should be helpful.
Especially for me because I always forget some of those little things and having this
checklist is very helpful.&lt;br&gt;
&lt;br&gt;
Tomorrow I will probably test all the XNA 2.0 games on my Xbox 360 and make some final
adjustments and then post them all on &lt;a href="http://XnaProjects.net"&gt;http://XnaProjects.net&lt;/a&gt; (and
here).&lt;br&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=7597edbd-a105-4d85-98a9-ced60522acf9" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,7597edbd-a105-4d85-98a9-ced60522acf9.aspx</comments>
      <category>All;Development;Game Development;Other;Programming;Racing Game;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=c81aabe2-e19c-4639-9b09-908378bf1fb1</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,c81aabe2-e19c-4639-9b09-908378bf1fb1.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,c81aabe2-e19c-4639-9b09-908378bf1fb1.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=c81aabe2-e19c-4639-9b09-908378bf1fb1</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Hi everyone,<br /><br />
I prepared some new exciting blog posts, especially about XNA and I will post them
shortly and also quite a few things will change at this blog. Stay tuned.<br /><br />
Recently one of my companies (namely <a href="http://realis-communities.com">realis</a>)
moved to Hamburg and I have a new PC at the new office, where I installed Visual Studio
2008 and everything else I needed. After I downloaded the latest source code files
from <a href="http://msdn2.microsoft.com/en-us/teamsystem/default.aspx">Team System</a>,
I ran into some problems. BTW: The Team System trial will end next month and I will
probably not switch back to <a href="http://subversion.tigris.org/">SubVersion</a>,
but instead go back to <a href="http://msdn2.microsoft.com/en-us/vs2005/aa718670.aspx">Visual
SourceSafe</a> since the integration is the best in Visual Studio. Team System is
nice to have but absolutely not something important for me as I'm most of the time
the only guy using it anyways.<br /><br />
Back to the Problem. After I loaded the main solution the 2 web applications in it
were unable to be loaded. The rest of the projects did load fine and worked after
a while until I had all the missing Assemblies installed (<a href="http://www.codeplex.com/xunit">xunit</a>, <a href="http://www.asp.net/ajax/">Ajax
stuff</a>, <a href="http://silverlight.net/">Silverlight</a>, <a href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython">IronPython</a>, <a href="http://www.entityspaces.net/Portal/Default.aspx">EntitySpaces</a>,
etc.). But even after making sure Silverlight and the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=25144C27-6514-4AD4-8BCB-E2E051416E03&amp;displaylang=en">Silverlight
Tools for Visual Studio Alpha</a> was installed and working (checked it by creating
a new Silverlight project, which worked fine), I was still unable to load those projects.
I thought at first maybe something went wrong when I checked in or out all the files,
but after testing it on my laptop this was not the issue, all files are intact. Everything
worked just fine on my laptop, where I had done most of my work during the move and
first weeks until everything was finally working here.<br /><br />
After digging around a bit I went back to the IIS were those 2 websites should run
on and they did not run yet (not compiled yet, no wonder). But even after I pointed
to some dummy website the IIS did throw out some errors (first some dlls were missing,
they were quickly replaced, then some security issues with Vista, also easy). Then
I pointed back to the location of the projects and made sure IIS was working this
time. Now I could go back to Visual Studio and finally load the web projects.<br /><br />
If you have such a <b>InteropServices.COMException</b>, try to see if you have missed
something like the Silverlight Tools for Visual Studio Alpha and then figure out if
your IIS is working. You can also edit the .csproj file and remove the references
to IIS at the very end of the file to see if the project can then be loaded (using
IIS again is not hard through the project properties).<br /><br />
Hope this helps (phase stolen from <a href="http://weblogs.asp.net/scottgu/">ScottGu</a>,
btw: really cool stuff going on over there, the <a href="http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-mvc-framework-part-4-handling-form-edit-and-post-scenarios.aspx">ASP.NET
MVC framework</a> is nice and <a href="http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx">the
.NET Framework SourceCode</a> is very helpful!)<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=c81aabe2-e19c-4639-9b09-908378bf1fb1" /></body>
      <title>What to do if you receive the System.Runtime. InteropServices.COMException error in Visual Studio</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,c81aabe2-e19c-4639-9b09-908378bf1fb1.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2008/01/28/WhatToDoIfYouReceiveTheSystemRuntimeInteropServicesCOMExceptionErrorInVisualStudio.aspx</link>
      <pubDate>Mon, 28 Jan 2008 15:21:17 GMT</pubDate>
      <description>Hi everyone,&lt;br&gt;
&lt;br&gt;
I prepared some new exciting blog posts, especially about XNA and I will post them
shortly and also quite a few things will change at this blog. Stay tuned.&lt;br&gt;
&lt;br&gt;
Recently one of my companies (namely &lt;a href="http://realis-communities.com"&gt;realis&lt;/a&gt;)
moved to Hamburg and I have a new PC at the new office, where I installed Visual Studio
2008 and everything else I needed. After I downloaded the latest source code files
from &lt;a href="http://msdn2.microsoft.com/en-us/teamsystem/default.aspx"&gt;Team System&lt;/a&gt;,
I ran into some problems. BTW: The Team System trial will end next month and I will
probably not switch back to &lt;a href="http://subversion.tigris.org/"&gt;SubVersion&lt;/a&gt;,
but instead go back to &lt;a href="http://msdn2.microsoft.com/en-us/vs2005/aa718670.aspx"&gt;Visual
SourceSafe&lt;/a&gt; since the integration is the best in Visual Studio. Team System is
nice to have but absolutely not something important for me as I'm most of the time
the only guy using it anyways.&lt;br&gt;
&lt;br&gt;
Back to the Problem. After I loaded the main solution the 2 web applications in it
were unable to be loaded. The rest of the projects did load fine and worked after
a while until I had all the missing Assemblies installed (&lt;a href="http://www.codeplex.com/xunit"&gt;xunit&lt;/a&gt;, &lt;a href="http://www.asp.net/ajax/"&gt;Ajax
stuff&lt;/a&gt;, &lt;a href="http://silverlight.net/"&gt;Silverlight&lt;/a&gt;, &lt;a href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython"&gt;IronPython&lt;/a&gt;, &lt;a href="http://www.entityspaces.net/Portal/Default.aspx"&gt;EntitySpaces&lt;/a&gt;,
etc.). But even after making sure Silverlight and the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=25144C27-6514-4AD4-8BCB-E2E051416E03&amp;amp;displaylang=en"&gt;Silverlight
Tools for Visual Studio Alpha&lt;/a&gt; was installed and working (checked it by creating
a new Silverlight project, which worked fine), I was still unable to load those projects.
I thought at first maybe something went wrong when I checked in or out all the files,
but after testing it on my laptop this was not the issue, all files are intact. Everything
worked just fine on my laptop, where I had done most of my work during the move and
first weeks until everything was finally working here.&lt;br&gt;
&lt;br&gt;
After digging around a bit I went back to the IIS were those 2 websites should run
on and they did not run yet (not compiled yet, no wonder). But even after I pointed
to some dummy website the IIS did throw out some errors (first some dlls were missing,
they were quickly replaced, then some security issues with Vista, also easy). Then
I pointed back to the location of the projects and made sure IIS was working this
time. Now I could go back to Visual Studio and finally load the web projects.&lt;br&gt;
&lt;br&gt;
If you have such a &lt;b&gt;InteropServices.COMException&lt;/b&gt;, try to see if you have missed
something like the Silverlight Tools for Visual Studio Alpha and then figure out if
your IIS is working. You can also edit the .csproj file and remove the references
to IIS at the very end of the file to see if the project can then be loaded (using
IIS again is not hard through the project properties).&lt;br&gt;
&lt;br&gt;
Hope this helps (phase stolen from &lt;a href="http://weblogs.asp.net/scottgu/"&gt;ScottGu&lt;/a&gt;,
btw: really cool stuff going on over there, the &lt;a href="http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-mvc-framework-part-4-handling-form-edit-and-post-scenarios.aspx"&gt;ASP.NET
MVC framework&lt;/a&gt; is nice and &lt;a href="http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx"&gt;the
.NET Framework SourceCode&lt;/a&gt; is very helpful!)&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=c81aabe2-e19c-4639-9b09-908378bf1fb1" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,c81aabe2-e19c-4639-9b09-908378bf1fb1.aspx</comments>
      <category>Ajax;All;Development;IronPython;Programming;Reviews;Silverlight;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=11a36dbc-948c-4de6-94c6-58210ce0936b</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,11a36dbc-948c-4de6-94c6-58210ce0936b.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,11a36dbc-948c-4de6-94c6-58210ce0936b.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=11a36dbc-948c-4de6-94c6-58210ce0936b</wfw:commentRss>
      <slash:comments>6</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://www.gamesindustry.biz/images/xna%20new.jpg" style="float:right; margin:5px;" /> As
mentioned <a href="http://www.microsoft.com/Presspass/press/2007/dec07/12-12XNAGS20PR.mspx">here
in the official press message from Microsoft</a> XNA 2.0 was released today after
a very short beta phase which did only run for a few weeks.<br /><br />
You can download <a href="http://creators.xna.com/Education/GettingStarted.aspx">XNA
2.0 from Creators.Xna.Com</a>, but for now it just says "<span id="ctl00_ctl00_bcr_ContentPart3"><font color="#eb7337">XNA
Game Studio 2.0 will be available early morning, Thursday Dec 13th, 2007 PST.</font></span>".
This will hopefully change soon ^^<br /><br /><a href="http://creators.xna.com/Education/GettingStarted.aspx">http://creators.xna.com/Education/GettingStarted.aspx</a><br /><p></p>
Since XNA 2.0 is now out I will talk about some of its new features shortly and comment
a little bit about the new networking API and Xbox LIVE features. Stay tuned.<img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=11a36dbc-948c-4de6-94c6-58210ce0936b" /></body>
      <title>XNA 2.0 released</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,11a36dbc-948c-4de6-94c6-58210ce0936b.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/12/13/XNA20Released.aspx</link>
      <pubDate>Thu, 13 Dec 2007 08:35:44 GMT</pubDate>
      <description>&lt;img src='http://www.gamesindustry.biz/images/xna%20new.jpg' style='float:right; margin:5px;' /&gt; As
mentioned &lt;a href="http://www.microsoft.com/Presspass/press/2007/dec07/12-12XNAGS20PR.mspx"&gt;here
in the official press message from Microsoft&lt;/a&gt; XNA 2.0 was released today after
a very short beta phase which did only run for a few weeks.&lt;br&gt;
&lt;br&gt;
You can download &lt;a href="http://creators.xna.com/Education/GettingStarted.aspx"&gt;XNA
2.0 from Creators.Xna.Com&lt;/a&gt;, but for now it just says "&lt;span id="ctl00_ctl00_bcr_ContentPart3"&gt;&lt;font color="#eb7337"&gt;XNA
Game Studio 2.0 will be available early morning, Thursday Dec 13th, 2007 PST.&lt;/font&gt;&lt;/span&gt;".
This will hopefully change soon ^^&lt;br&gt;
&lt;br&gt;
&lt;a href="http://creators.xna.com/Education/GettingStarted.aspx"&gt;http://creators.xna.com/Education/GettingStarted.aspx&lt;/a&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
Since XNA 2.0 is now out I will talk about some of its new features shortly and comment
a little bit about the new networking API and Xbox LIVE features. Stay tuned.&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=11a36dbc-948c-4de6-94c6-58210ce0936b" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,11a36dbc-948c-4de6-94c6-58210ce0936b.aspx</comments>
      <category>All;Development;Programming;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=780f02f6-ba94-4410-baf6-cafc5c098367</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,780f02f6-ba94-4410-baf6-cafc5c098367.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,780f02f6-ba94-4410-baf6-cafc5c098367.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=780f02f6-ba94-4410-baf6-cafc5c098367</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://www.gamesindustry.biz/images/xna%20new.jpg" style="float:right; margin-left:10px" /> The
long awaited XNA Game Studio 2.0 beta is now available and can be downloaded from
the XNA Creators Club website: <a href="http://creators.xna.com/beta/betahome.aspx">http://creators.xna.com/beta/betahome.aspx</a><br /><br />
My first impression of the new multiplayer API is not that good. While it is very
nice to have the ability to use networking on the Xbox 360, it is not only too hard
to make it work on just a Windows PC and secondly you cannot expect that your gamers
will both have a Xbox LIVE Gold membership AND a XNA Creators Club membership (both
cost money). This means if you really want to do networking on a Windows XNA 2.0 game,
you have to use System.Net and write it all yourself or no one will ever play your
game on Windows except some XNA developers maybe.<br /><br />
Other than that XNA 2.0 is a great improvement, but it does only work with VS2005
yet, maybe they missed the VS2008 release earlier yesterday ^^ But it will probably
be possible to modify the .csproj files again to make it work in VS2008 (without the
extra XNA features and content pipeline).<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=780f02f6-ba94-4410-baf6-cafc5c098367" /></body>
      <title>XNA Game Studio 2.0 beta is now available</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,780f02f6-ba94-4410-baf6-cafc5c098367.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/11/20/XNAGameStudio20BetaIsNowAvailable.aspx</link>
      <pubDate>Tue, 20 Nov 2007 12:24:41 GMT</pubDate>
      <description>&lt;img src='http://www.gamesindustry.biz/images/xna%20new.jpg' style='float:right; margin-left:10px' /&gt; The
long awaited XNA Game Studio 2.0 beta is now available and can be downloaded from
the XNA Creators Club website: &lt;a href="http://creators.xna.com/beta/betahome.aspx"&gt;http://creators.xna.com/beta/betahome.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
My first impression of the new multiplayer API is not that good. While it is very
nice to have the ability to use networking on the Xbox 360, it is not only too hard
to make it work on just a Windows PC and secondly you cannot expect that your gamers
will both have a Xbox LIVE Gold membership AND a XNA Creators Club membership (both
cost money). This means if you really want to do networking on a Windows XNA 2.0 game,
you have to use System.Net and write it all yourself or no one will ever play your
game on Windows except some XNA developers maybe.&lt;br&gt;
&lt;br&gt;
Other than that XNA 2.0 is a great improvement, but it does only work with VS2005
yet, maybe they missed the VS2008 release earlier yesterday ^^ But it will probably
be possible to modify the .csproj files again to make it work in VS2008 (without the
extra XNA features and content pipeline).&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=780f02f6-ba94-4410-baf6-cafc5c098367" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,780f02f6-ba94-4410-baf6-cafc5c098367.aspx</comments>
      <category>All;Development;Game Development;Programming;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=1f011f48-dedb-4ea5-bc5d-51245bb6f52e</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,1f011f48-dedb-4ea5-bc5d-51245bb6f52e.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,1f011f48-dedb-4ea5-bc5d-51245bb6f52e.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=1f011f48-dedb-4ea5-bc5d-51245bb6f52e</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Ziggyware has a good overview of the XNA 2.0 announcements and GameFest conference
sessions in the following post. Check it out if you are interested in the new XNA
2.0 features (mainly networking, which is really a big step forward). It is also nice
to see so many new XNA games and development efforts :)
</p>
        <p>
          <a href="http://www.ziggyware.com/news.php?readmore=407">http://www.ziggyware.com/news.php?readmore=407</a>
        </p>
        <img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=1f011f48-dedb-4ea5-bc5d-51245bb6f52e" />
      </body>
      <title>Lots of Information about XNA 2.0</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,1f011f48-dedb-4ea5-bc5d-51245bb6f52e.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/08/16/LotsOfInformationAboutXNA20.aspx</link>
      <pubDate>Thu, 16 Aug 2007 20:59:02 GMT</pubDate>
      <description>&lt;p&gt;
Ziggyware has a good overview of the XNA 2.0 announcements and GameFest conference
sessions in the following post. Check it out if you are interested in the new XNA
2.0 features (mainly networking, which is really a big step forward). It is also nice
to see so many new XNA games and development efforts :)
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.ziggyware.com/news.php?readmore=407"&gt;http://www.ziggyware.com/news.php?readmore=407&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=1f011f48-dedb-4ea5-bc5d-51245bb6f52e" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,1f011f48-dedb-4ea5-bc5d-51245bb6f52e.aspx</comments>
      <category>All;Development;Game Development;Programming;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=005392e3-336b-4237-ab63-ab366a1fcefe</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,005392e3-336b-4237-ab63-ab366a1fcefe.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,005392e3-336b-4237-ab63-ab366a1fcefe.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=005392e3-336b-4237-ab63-ab366a1fcefe</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
          <span id="article_content">
            <font color="darkblue" face="Verdana, Arial, Helvetica, sans-serif" size="5">
              <b>
                <a href="http://www.code-magazine.com/article.aspx?quickid=0709041&amp;page=1">Microsoft
XNA: Ready for Prime Time?</a>
                <br />
                <br />
              </b>
            </font>
          </span>
        </font> is the name of the Article of the CoDe Magazine. It is very
well written and a really long (9 pages) read with tons of information in it.<br />
Together with 6 other guys I was interviewed about my experiences with XNA and the
development process of the<br />
XNA Racing Game and Dungeon Quest, which are 2 of the best looking XNA games so far
:)<br /><br />
Check it out, good work Nick Landry.<br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=005392e3-336b-4237-ab63-ab366a1fcefe" /></body>
      <title>CoDe Magazine: Microsoft XNA: Ready for Prime Time?</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,005392e3-336b-4237-ab63-ab366a1fcefe.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/08/09/CoDeMagazineMicrosoftXNAReadyForPrimeTime.aspx</link>
      <pubDate>Thu, 09 Aug 2007 18:43:04 GMT</pubDate>
      <description>&lt;font face="Verdana, Arial, Helvetica, sans-serif" size="2"&gt;&lt;span id="article_content"&gt;&lt;font color="darkblue" face="Verdana, Arial, Helvetica, sans-serif" size="5"&gt;&lt;b&gt;&lt;a href="http://www.code-magazine.com/article.aspx?quickid=0709041&amp;amp;page=1"&gt;Microsoft
XNA: Ready for Prime Time?&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt; is the name of the Article of the CoDe Magazine. It is very
well written and a really long (9 pages) read with tons of information in it.&lt;br&gt;
Together with 6 other guys I was interviewed about my experiences with XNA and the
development process of the&lt;br&gt;
XNA Racing Game and Dungeon Quest, which are 2 of the best looking XNA games so far
:)&lt;br&gt;
&lt;br&gt;
Check it out, good work Nick Landry.&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=005392e3-336b-4237-ab63-ab366a1fcefe" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,005392e3-336b-4237-ab63-ab366a1fcefe.aspx</comments>
      <category>All;Development;Game Development;Programming;Racing Game;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=30ba6cdc-0565-4701-8b72-643700a2cedf</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,30ba6cdc-0565-4701-8b72-643700a2cedf.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,30ba6cdc-0565-4701-8b72-643700a2cedf.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=30ba6cdc-0565-4701-8b72-643700a2cedf</wfw:commentRss>
      <slash:comments>11</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Hey! Finally some News about Game Development
again. All this Silverlight and VS2008 stuff is nice, but XNA has become pretty popular
recently (lots of posts in blogs, more articles everywhere and a lot more news).<br /><br />
Anyway, I wanted to release the Dungeon Quest Source Code for several months now,
but I never found the time to package everything up, do some cleanup and release it.
Recently some people have requested the source code and emails keep coming in. To
finally make everyone happy, here is the new Dungeon Quest version with some nice
additions, much cleaner code with quite a lot of refactoring and some nice unit tests
(see below). This version also does not require PS3.0 anymore, you can now run Dungeon
Quest on a PS2.0 graphic card!<br /><br />
First of all: The downloads, all of them can be found on <a href="http://XnaProjects.net">XnaProjects.net</a> too:<br /><ul><li><a href="http://ArenaWars.net/XnaProjects/DungeonQuestSetup.exe">DungeonQuestSetup.exe
(40 MB)</a>: Game installer for Windows with everything you need to play.<br /><br /></li><li><a href="http://ArenaWars.net/XnaProjects/DungeonQuestSourceCodeAndContent.zip">DungeonQuestSourceCodeAndContent.zip
(103 MB)</a>: Full Dungeon Quest source code with all content files.<br />
Please note that the collada files (xml text format) and the sound/music are very
big (extracted ~200 MB).<br />
This download also contains the full game in the bin/debug/ directory, you only need
to download this file<br />
for development and testing.<br />
Contains solution and project files for VS2005, VC# Express (XNA Express) and Xbox
360!<br /><br /></li><li><a href="http://ArenaWars.net/XnaProjects/DungeonQuest.wmv">DungeonQuest.wmv (21 MB)</a>:
Higher quality version of the YouTube video below<br /><br /></li></ul>
Here is the good old YouTube video from the game to give you a first view if you don't
know about Dungeon Quest yet.<br /><object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/FO1PNgIwjB4" /><param name="wmode" value="transparent" /><embed src="http://www.youtube.com/v/FO1PNgIwjB4" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"></embed></object><br /><br /><br />
If you want to drive into the source code I highly recommend starting all the unit
tests in Program.cs after checking out the directory structure of the project:<br /><br /><ul><li><b>UIManager.TestUI();<br /></b>Show the graphical user interface of the game (boxes for health, player values,
rpg levels, etc.)<br /><br /></li></ul><ul><li><b>ShaderTests.TestNormalMappingShader();<br /></b>Test the normal mapping shader, for more shader tests check out the XNA Rocket
Commander and XNA Racing Game projects.<br /><br /></li></ul><ul><li><b>ColladaModel.TestCaveColladaModelScene();<br /></b>This tests the big cave collada file (80 MB) and renders it with the cave shader.
Looks very nice.<br /><br /></li></ul><ul><li><b>ColladaModel.TestLoadStaticModel();<br /></b>This is straight from the SkiningColladaModelsWithXNA project from February. This
test show shows a static collada model.<br /><br /></li></ul><ul><li><b>AnimatedColladaModel.TestPlayerColladaModelScene();<br /></b>Also from the SkinningColladaModelsWithXNA project. This shows the player or the
goblins running, dying, staying, etc.<br />
This is a useful unit test to test animations for skinned collada models.<br /><br /></li></ul><ul><li><b>PostScreenGlow.TestPostScreenGlow();<br /></b>Test post screen glow, more details can be found in the Rocket Commander tutorials
and most of my XNA projects.<br /><b><br /></b></li></ul><ul><li><b>PlaneRenderer.TestRenderingPlaneXY();<br /></b>Test to render a plane on the ground, which is also used in some other tests.
Also good for testing shaders.<br /><b><br /></b></li></ul><ul><li><b>ShadowMapShader.TestShadowMapping();<br /></b>Test Shadow Mapping unit test, pretty complex stuff, but kinda nice for this game.
More details can be found in my book, this is a complex topic and involves a lot of
finetuning to get it right.<br /><b><br /></b></li></ul><ul><li><b>EffectManager.TestEffects();<br /></b>Since DungeonQuest uses some effects for fire, smoke, blood, etc. it has a simple
effect system build in. Use this test to see whats possible and to extend the effect
system.<br /><b><br /></b></li></ul><ul><li><b>StringHelper.TestConvertStringToFloatArray();<br /></b>An example of a dynamic unit test, which can also be started from NUnit or TestDriven.Net
(right click if you have the addin installed).<br /><br /></li></ul><ul><li><b>Sound.TestPlaySounds();<br /></b>And another test to play the sound effects used in the game, just press A, B,
1, 2, 3, etc. to play sounds.<br /><b><br /></b></li></ul><ul><li><b>ColladaModel.TestCaveColladaModelSceneSplitScreen();<br /></b>This test shows how the engine supports split screen support, but it was never
fully implemented into the game itself yet.<br />
To finish this the game logic + handling input from 2nd player has to be implemented.</li></ul><br />
Some Screenshots from the <a href="http://exdream.no-ip.info/blog/2007/03/16/TheDungeonQuestGame.aspx">last
post on my blog about Dungeon Quest</a>:<br /><p><a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0001.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0001small.jpg" border="0" /></a><br />
Ok, let's get started. What is this guy doing there. He doesn't look very friendly,
maybe it is better to hit him in the head!<br /></p><p><a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0004.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0004small.jpg" border="0" /></a><br />
First quest completed. This key is important to open the door to the second level.<br /></p><p><a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0006.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0006small.jpg" border="0" /></a><br />
Nonstop fighting action. Well, at least if you don't lose your way.<br /></p><p><a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0009.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0009small.jpg" border="0" /></a><br />
This is how it looks like after I got angry. I told those guys, don't start any fights!<br /></p><p><a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0011.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0011small.jpg" border="0" /></a><br />
Ohh no. I did not use all my skills (see right side) and this Ogre killed me too quickly.
I guess I have to start over.<br /></p><p><a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0012.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0012small.jpg" border="0" /></a><br />
The credit screen when the game ends. Notice my book :)<br /></p><a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0016.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0016small.jpg" border="0" /></a><br />
No reason to stop, let's start over and try again. The fight is continuing. The game
is not that hard, you just have to use all skills and avoid being hit by fireballs
or big enemies when you have low hit points.<br /><br />
I hope you like Dungeon Quest and that the source code can be useful for your XNA
projects. Enjoy!<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=30ba6cdc-0565-4701-8b72-643700a2cedf" /></body>
      <title>Dungeon Quest Updated with Source Code now</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,30ba6cdc-0565-4701-8b72-643700a2cedf.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/07/31/DungeonQuestUpdatedWithSourceCodeNow.aspx</link>
      <pubDate>Tue, 31 Jul 2007 06:35:30 GMT</pubDate>
      <description>Hey! Finally some News about Game Development again. All this Silverlight and VS2008 stuff is nice, but XNA has become pretty popular recently (lots of posts in blogs, more articles everywhere and a lot more news).&lt;br&gt;
&lt;br&gt;
Anyway, I wanted to release the Dungeon Quest Source Code for several months now,
but I never found the time to package everything up, do some cleanup and release it.
Recently some people have requested the source code and emails keep coming in. To
finally make everyone happy, here is the new Dungeon Quest version with some nice
additions, much cleaner code with quite a lot of refactoring and some nice unit tests
(see below). This version also does not require PS3.0 anymore, you can now run Dungeon
Quest on a PS2.0 graphic card!&lt;br&gt;
&lt;br&gt;
First of all: The downloads, all of them can be found on &lt;a href="http://XnaProjects.net"&gt;XnaProjects.net&lt;/a&gt; too:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://ArenaWars.net/XnaProjects/DungeonQuestSetup.exe"&gt;DungeonQuestSetup.exe
(40 MB)&lt;/a&gt;: Game installer for Windows with everything you need to play.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://ArenaWars.net/XnaProjects/DungeonQuestSourceCodeAndContent.zip"&gt;DungeonQuestSourceCodeAndContent.zip
(103 MB)&lt;/a&gt;: Full Dungeon Quest source code with all content files.&lt;br&gt;
Please note that the collada files (xml text format) and the sound/music are very
big (extracted ~200 MB).&lt;br&gt;
This download also contains the full game in the bin/debug/ directory, you only need
to download this file&lt;br&gt;
for development and testing.&lt;br&gt;
Contains solution and project files for VS2005, VC# Express (XNA Express) and Xbox
360!&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://ArenaWars.net/XnaProjects/DungeonQuest.wmv"&gt;DungeonQuest.wmv (21 MB)&lt;/a&gt;:
Higher quality version of the YouTube video below&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
Here is the good old YouTube video from the game to give you a first view if you don't
know about Dungeon Quest yet.&lt;br&gt;
&lt;object height="350" width="425"&gt;
&lt;param name="movie" value="http://www.youtube.com/v/FO1PNgIwjB4"&gt;
&lt;param name="wmode" value="transparent"&gt;&lt;embed src="http://www.youtube.com/v/FO1PNgIwjB4" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"&gt;
&lt;/object&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
If you want to drive into the source code I highly recommend starting all the unit
tests in Program.cs after checking out the directory structure of the project:&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;UIManager.TestUI();&lt;br&gt;
&lt;/b&gt;Show the graphical user interface of the game (boxes for health, player values,
rpg levels, etc.)&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;ShaderTests.TestNormalMappingShader();&lt;br&gt;
&lt;/b&gt;Test the normal mapping shader, for more shader tests check out the XNA Rocket
Commander and XNA Racing Game projects.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;ColladaModel.TestCaveColladaModelScene();&lt;br&gt;
&lt;/b&gt;This tests the big cave collada file (80 MB) and renders it with the cave shader.
Looks very nice.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;ColladaModel.TestLoadStaticModel();&lt;br&gt;
&lt;/b&gt;This is straight from the SkiningColladaModelsWithXNA project from February. This
test show shows a static collada model.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;AnimatedColladaModel.TestPlayerColladaModelScene();&lt;br&gt;
&lt;/b&gt;Also from the SkinningColladaModelsWithXNA project. This shows the player or the
goblins running, dying, staying, etc.&lt;br&gt;
This is a useful unit test to test animations for skinned collada models.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;PostScreenGlow.TestPostScreenGlow();&lt;br&gt;
&lt;/b&gt;Test post screen glow, more details can be found in the Rocket Commander tutorials
and most of my XNA projects.&lt;br&gt;
&lt;b&gt;
&lt;br&gt;
&lt;/b&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;PlaneRenderer.TestRenderingPlaneXY();&lt;br&gt;
&lt;/b&gt;Test to render a plane on the ground, which is also used in some other tests.
Also good for testing shaders.&lt;br&gt;
&lt;b&gt;
&lt;br&gt;
&lt;/b&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;ShadowMapShader.TestShadowMapping();&lt;br&gt;
&lt;/b&gt;Test Shadow Mapping unit test, pretty complex stuff, but kinda nice for this game.
More details can be found in my book, this is a complex topic and involves a lot of
finetuning to get it right.&lt;br&gt;
&lt;b&gt;
&lt;br&gt;
&lt;/b&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;EffectManager.TestEffects();&lt;br&gt;
&lt;/b&gt;Since DungeonQuest uses some effects for fire, smoke, blood, etc. it has a simple
effect system build in. Use this test to see whats possible and to extend the effect
system.&lt;br&gt;
&lt;b&gt;
&lt;br&gt;
&lt;/b&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;StringHelper.TestConvertStringToFloatArray();&lt;br&gt;
&lt;/b&gt;An example of a dynamic unit test, which can also be started from NUnit or TestDriven.Net
(right click if you have the addin installed).&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;Sound.TestPlaySounds();&lt;br&gt;
&lt;/b&gt;And another test to play the sound effects used in the game, just press A, B,
1, 2, 3, etc. to play sounds.&lt;br&gt;
&lt;b&gt;
&lt;br&gt;
&lt;/b&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;ColladaModel.TestCaveColladaModelSceneSplitScreen();&lt;br&gt;
&lt;/b&gt;This test shows how the engine supports split screen support, but it was never
fully implemented into the game itself yet.&lt;br&gt;
To finish this the game logic + handling input from 2nd player has to be implemented.&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
Some Screenshots from the &lt;a href="http://exdream.no-ip.info/blog/2007/03/16/TheDungeonQuestGame.aspx"&gt;last
post on my blog about Dungeon Quest&lt;/a&gt;:&lt;br&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0001.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0001small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
Ok, let's get started. What is this guy doing there. He doesn't look very friendly,
maybe it is better to hit him in the head!&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0004.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0004small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
First quest completed. This key is important to open the door to the second level.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0006.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0006small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
Nonstop fighting action. Well, at least if you don't lose your way.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0009.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0009small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
This is how it looks like after I got angry. I told those guys, don't start any fights!&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0011.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0011small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
Ohh no. I did not use all my skills (see right side) and this Ogre killed me too quickly.
I guess I have to start over.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0012.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0012small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
The credit screen when the game ends. Notice my book :)&lt;br&gt;
&lt;/p&gt;
&lt;a href="http://exdream.no-ip.info/blog/ct.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b&amp;amp;url=http%3a%2f%2fexdream.no-ip.info%2fblog%2fcontent%2fbinary%2fDungeonQuestScreenshot0016.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0016small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
No reason to stop, let's start over and try again. The fight is continuing. The game
is not that hard, you just have to use all skills and avoid being hit by fireballs
or big enemies when you have low hit points.&lt;br&gt;
&lt;br&gt;
I hope you like Dungeon Quest and that the source code can be useful for your XNA
projects. Enjoy!&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=30ba6cdc-0565-4701-8b72-643700a2cedf" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,30ba6cdc-0565-4701-8b72-643700a2cedf.aspx</comments>
      <category>All;Development;Game Development;Programming;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=753a7839-18ed-4623-8a79-6c9f81dff953</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,753a7839-18ed-4623-8a79-6c9f81dff953.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,753a7839-18ed-4623-8a79-6c9f81dff953.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=753a7839-18ed-4623-8a79-6c9f81dff953</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">I wrote a little tool almost a year ago
to help me coding XNA directly in VS 2005 instead of using XNA Game Studio Express,
which does not support addins. I wrote a little bit about that back then, but for
some strange reason I never published my tool. I also wrote about it in my book "Professional
XNA Game Programming" in chapter 1 at the end.<br /><br />
Recently I got some emails requesting this tool and I still had to test it for the
final XNA version and I also want to add support for VS 2008 (also called orcas; vs
2008 beta 2 comes next week hopefully, yay!).<br /><br />
This tool does not do much, but it is still very useful like the <a href="http://exdream.no-ip.info/blog/2007/04/06/AnnoyingFilesRemoverTool.aspx">AnnoyingFilesRemover</a>.
I use it almost daily when developing and testing XNA projects. It converts projects
from VS Express to VS 2005 and VS 2008 and back, you can also use it for VS 2008 (Orcas)
projects, which can be openend in VS 2005 again (and compile if you don't use .NET
3.5, but even that works to a certain degree with the LINQ May 2006 CTP). I will try
to update this tool when newer versions of XNA (like the XNA Game Studio 2.0) and
VS 2008 (like the beta 2 next week) come out, exciting times are ahead :)<br /><br />
The tool looks like this, the most useful button is "Save and Open Project", which
convert and then starts the selected VS version:<br /><p></p><a href="http://exdream.no-ip.info/blog/content/binary/XnaProjectChangerSetup.zip"><img src="http://exdream.no-ip.info/blog/content/binary/XnaProjectChanger.png" border="0" /></a><br /><br />
And here is the installer plus source code:<br /><ul><li><a href="http://exdream.no-ip.info/blog/content/binary/XnaProjectChangerSetup.zip">XnaProjectChangerSetup.zip
(79.76 KB)</a></li></ul><ul><li><a href="http://exdream.no-ip.info/blog/content/binary/XnaProjectChanger.zip">XnaProjectChanger.zip
(34.95 KB)</a></li></ul><br />
PS: VS2005 and VS2008 both do NOT support the XNA Content Pipeline. I suggest just
starting to write XNA games in VS2005/VS2008 and then switch to XNA Game Studio Express
when you need and want to use the content pipeline (or use a library in VS2005 and
write the game with XNA Game Studio Express).<br /><br />
You can also use the also use the XNA Content Builder to create .xnb files yourself:<br /><a href="http://www.codeplex.com/xnadevru/Wiki/View.aspx?title=XNA%20Content%20Builder%20%28XCB%29">http://www.codeplex.com/xnadevru/Wiki/View.aspx?title=XNA%20Content%20Builder%20(XCB)</a><br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=753a7839-18ed-4623-8a79-6c9f81dff953" /></body>
      <title>Xna Project Changer Tool (with VS 2008 support)</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,753a7839-18ed-4623-8a79-6c9f81dff953.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/07/19/XnaProjectChangerToolWithVS2008Support.aspx</link>
      <pubDate>Thu, 19 Jul 2007 03:21:43 GMT</pubDate>
      <description>I wrote a little tool almost a year ago to help me coding XNA directly in VS 2005 instead of using XNA Game Studio Express, which does not support addins. I wrote a little bit about that back then, but for some strange reason I never published my tool. I also wrote about it in my book "Professional XNA Game Programming" in chapter 1 at the end.&lt;br&gt;
&lt;br&gt;
Recently I got some emails requesting this tool and I still had to test it for the
final XNA version and I also want to add support for VS 2008 (also called orcas; vs
2008 beta 2 comes next week hopefully, yay!).&lt;br&gt;
&lt;br&gt;
This tool does not do much, but it is still very useful like the &lt;a href="http://exdream.no-ip.info/blog/2007/04/06/AnnoyingFilesRemoverTool.aspx"&gt;AnnoyingFilesRemover&lt;/a&gt;.
I use it almost daily when developing and testing XNA projects. It converts projects
from VS Express to VS 2005 and VS 2008 and back, you can also use it for VS 2008 (Orcas)
projects, which can be openend in VS 2005 again (and compile if you don't use .NET
3.5, but even that works to a certain degree with the LINQ May 2006 CTP). I will try
to update this tool when newer versions of XNA (like the XNA Game Studio 2.0) and
VS 2008 (like the beta 2 next week) come out, exciting times are ahead :)&lt;br&gt;
&lt;br&gt;
The tool looks like this, the most useful button is "Save and Open Project", which
convert and then starts the selected VS version:&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/XnaProjectChangerSetup.zip"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/XnaProjectChanger.png" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
And here is the installer plus source code:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/XnaProjectChangerSetup.zip"&gt;XnaProjectChangerSetup.zip
(79.76 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/XnaProjectChanger.zip"&gt;XnaProjectChanger.zip
(34.95 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
PS: VS2005 and VS2008 both do NOT support the XNA Content Pipeline. I suggest just
starting to write XNA games in VS2005/VS2008 and then switch to XNA Game Studio Express
when you need and want to use the content pipeline (or use a library in VS2005 and
write the game with XNA Game Studio Express).&lt;br&gt;
&lt;br&gt;
You can also use the also use the XNA Content Builder to create .xnb files yourself:&lt;br&gt;
&lt;a href="http://www.codeplex.com/xnadevru/Wiki/View.aspx?title=XNA%20Content%20Builder%20%28XCB%29"&gt;http://www.codeplex.com/xnadevru/Wiki/View.aspx?title=XNA%20Content%20Builder%20(XCB)&lt;/a&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=753a7839-18ed-4623-8a79-6c9f81dff953" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,753a7839-18ed-4623-8a79-6c9f81dff953.aspx</comments>
      <category>All;Development;Game Development;Other;Programming;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=5580d6e4-f031-429e-95dd-a9bee7c1769f</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,5580d6e4-f031-429e-95dd-a9bee7c1769f.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,5580d6e4-f031-429e-95dd-a9bee7c1769f.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=5580d6e4-f031-429e-95dd-a9bee7c1769f</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
        </p>
        <img src="http://exdream.no-ip.info/blog/content/binary/wired.jpg" border="0" />
        <br />
        <br />
Today I got the Wired Magazine in my mail and on site 80 there is a nice article about
the development process of the XNA Challenge game Dungeon Quest from the GDC 2007.
It was written by <a href="http://blog.wired.com/games/">Mary Jane Irwin from the
Wired Games Blog</a>, thanks :). There is also a <a href="http://www.wired.com/gaming/gamingreviews/multimedia/2007/04/pl_games?slide=1&amp;slideView=4">nice
picture gallery with 21 images</a> from the 4 days, which nicely shows the advancements
we made each day. Enjoy!<br /><br />
PS: There is probably more information on this and other XNA projects on the huge
Wired.com website, but every time I search for XNA or my name, I just find too many
articles. Test for yourself.<br /><a href="http://www.wired.com/gaming/gamingreviews/multimedia/2007/04/pl_games?slide=1&amp;slideView=4"><br /><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestPics.jpg" border="0" /></a><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=5580d6e4-f031-429e-95dd-a9bee7c1769f" /></body>
      <title>Article in Wired about Dungeon Quest from the GDC 2007</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,5580d6e4-f031-429e-95dd-a9bee7c1769f.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/05/09/ArticleInWiredAboutDungeonQuestFromTheGDC2007.aspx</link>
      <pubDate>Wed, 09 May 2007 03:45:04 GMT</pubDate>
      <description>&lt;p&gt;
&lt;/p&gt;
&lt;img src="http://exdream.no-ip.info/blog/content/binary/wired.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
Today I got the Wired Magazine in my mail and on site 80 there is a nice article about
the development process of the XNA Challenge game Dungeon Quest from the GDC 2007.
It was written by &lt;a href="http://blog.wired.com/games/"&gt;Mary Jane Irwin from the
Wired Games Blog&lt;/a&gt;, thanks :). There is also a &lt;a href="http://www.wired.com/gaming/gamingreviews/multimedia/2007/04/pl_games?slide=1&amp;amp;slideView=4"&gt;nice
picture gallery with 21 images&lt;/a&gt; from the 4 days, which nicely shows the advancements
we made each day. Enjoy!&lt;br&gt;
&lt;br&gt;
PS: There is probably more information on this and other XNA projects on the huge
Wired.com website, but every time I search for XNA or my name, I just find too many
articles. Test for yourself.&lt;br&gt;
&lt;a href="http://www.wired.com/gaming/gamingreviews/multimedia/2007/04/pl_games?slide=1&amp;amp;slideView=4"&gt;
&lt;br&gt;
&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestPics.jpg" border="0"&gt;&lt;/a&gt;&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=5580d6e4-f031-429e-95dd-a9bee7c1769f" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,5580d6e4-f031-429e-95dd-a9bee7c1769f.aspx</comments>
      <category>All;Development;Game Development;Other;Programming;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=96983850-cc43-4572-a54a-453ced39db25</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,96983850-cc43-4572-a54a-453ced39db25.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,96983850-cc43-4572-a54a-453ced39db25.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=96983850-cc43-4572-a54a-453ced39db25</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <a href="http://www.microsoft.com/silverlight/">
          <img src="http://www.microsoft.com/silverlight/images/logo_main_sl.gif" border="0" />
        </a>
        <br />
I heard about all the <a href="http://www.microsoft.com/silverlight/">Silverlight </a>fuss
from the MIX2007 conference last week, but I did not have time to check it out with
all the stress and projects I'm currently involved in. I already use VS Orcas for
a while (see post from last month) and I played around with WPF in the past (formerly
Avalon, now <a href="http://www.microsoft.com/silverlight/">Silverlight</a>, which
is still in beta, but will be released this summer finally), but I did not find anything
compelling for a game programmer since we use DirectX or XNA anyway. But with the
ability to build websites with Silverlight and still allowing the .NET framework to
exist in that environment while simplifying the development process and getting away
from building static html like pages with some dynamic features (ajax or not, it is
still somewhat static and hard to do), Silverlight gets much sexier than just WPF
on a windows app by itself.<br /><br />
Why is Silverlight cool? It is .NET, it runs on Firefox, IE, Safari, Mac, etc. it
is just 2 MB download, it is amazingly fast, it has many cool new features, it allows
many windows-only apps to be developed for the browser in a more natural way, it will
be pushed like crazy and a lot of people will have it till the end of this year, there
are already some cool tools out there including the Expression toolkit and Visual
Studio Orcas, and probably <a href="http://www.microsoft.com/silverlight/why-compelling.aspx">a
lot of other reasons you can checkout yourself</a>!<br /><br />
Maybe it is even possible to interop with some DirectX or XNA stuff somehow. I have
no idea if this is possible at all or if there are security issues or this kind of
functionality is not possible at all, but instead of waiting for another week until
I find a few minutes to test this out, why not announce it here first that this would
be cool and maybe someone else can test it for me :)<br /><br />
Even for just doing websites, Silverlight will definitely become a BIG competitor
to Flash based websites, developing in .NET will be a lot easier than working with
Flash/Actionscript/whatever and I would bet that there are more VB/C# developers that
can now do some great websites without having to learn much while creating Flash sites
or even doing ASP.NET (with or without Ajax) development is much harder and less compelling
for certain kinds of applications. Great examples are the <a href="http://go.microsoft.com/fwlink/?linkid=89068&amp;clcid=0x409">FOX
Movies site</a> and some <a href="http://go.microsoft.com/fwlink/?linkid=89367&amp;clcid=0x409">widgets
on MSDN</a> or <a href="http://www.telerik.com/products/silverlight/overview.aspx">some
early test controls from Telerik</a>.<br /><br />
BTW: <a href="http://games.archor.com/">Archor </a>wrote me an email about his <a href="http://xbox360.archor.com/">Cyber
Car XNA</a> game he wanted to submit to the XnaProjects.Net site I made last week.
This is actually a Racing Game Mod, I first guessed he used the simple racing game
version, but this one is based on the full racing game from the XNA creators website.
Pretty cool style in my opinion. Thanks Archor!<br /><br /><a href="http://xbox360.archor.com/">http://xbox360.archor.com/</a><br /><br /><a href="http://xbox360.archor.com/"><img src="http://www.archorwright.com/games/xbox360/cybercar1s.jpg" border="0" /></a><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=96983850-cc43-4572-a54a-453ced39db25" /></body>
      <title>Silverlight and I spotted A Racing Game Mod: Cyber Car</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,96983850-cc43-4572-a54a-453ced39db25.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/05/08/SilverlightAndISpottedARacingGameModCyberCar.aspx</link>
      <pubDate>Tue, 08 May 2007 03:55:20 GMT</pubDate>
      <description>&lt;a href="http://www.microsoft.com/silverlight/"&gt;&lt;img src="http://www.microsoft.com/silverlight/images/logo_main_sl.gif" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
I heard about all the &lt;a href="http://www.microsoft.com/silverlight/"&gt;Silverlight &lt;/a&gt;fuss
from the MIX2007 conference last week, but I did not have time to check it out with
all the stress and projects I'm currently involved in. I already use VS Orcas for
a while (see post from last month) and I played around with WPF in the past (formerly
Avalon, now &lt;a href="http://www.microsoft.com/silverlight/"&gt;Silverlight&lt;/a&gt;, which
is still in beta, but will be released this summer finally), but I did not find anything
compelling for a game programmer since we use DirectX or XNA anyway. But with the
ability to build websites with Silverlight and still allowing the .NET framework to
exist in that environment while simplifying the development process and getting away
from building static html like pages with some dynamic features (ajax or not, it is
still somewhat static and hard to do), Silverlight gets much sexier than just WPF
on a windows app by itself.&lt;br&gt;
&lt;br&gt;
Why is Silverlight cool? It is .NET, it runs on Firefox, IE, Safari, Mac, etc. it
is just 2 MB download, it is amazingly fast, it has many cool new features, it allows
many windows-only apps to be developed for the browser in a more natural way, it will
be pushed like crazy and a lot of people will have it till the end of this year, there
are already some cool tools out there including the Expression toolkit and Visual
Studio Orcas, and probably &lt;a href="http://www.microsoft.com/silverlight/why-compelling.aspx"&gt;a
lot of other reasons you can checkout yourself&lt;/a&gt;!&lt;br&gt;
&lt;br&gt;
Maybe it is even possible to interop with some DirectX or XNA stuff somehow. I have
no idea if this is possible at all or if there are security issues or this kind of
functionality is not possible at all, but instead of waiting for another week until
I find a few minutes to test this out, why not announce it here first that this would
be cool and maybe someone else can test it for me :)&lt;br&gt;
&lt;br&gt;
Even for just doing websites, Silverlight will definitely become a BIG competitor
to Flash based websites, developing in .NET will be a lot easier than working with
Flash/Actionscript/whatever and I would bet that there are more VB/C# developers that
can now do some great websites without having to learn much while creating Flash sites
or even doing ASP.NET (with or without Ajax) development is much harder and less compelling
for certain kinds of applications. Great examples are the &lt;a href="http://go.microsoft.com/fwlink/?linkid=89068&amp;amp;clcid=0x409"&gt;FOX
Movies site&lt;/a&gt; and some &lt;a href="http://go.microsoft.com/fwlink/?linkid=89367&amp;amp;clcid=0x409"&gt;widgets
on MSDN&lt;/a&gt; or &lt;a href="http://www.telerik.com/products/silverlight/overview.aspx"&gt;some
early test controls from Telerik&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
BTW: &lt;a href="http://games.archor.com/"&gt;Archor &lt;/a&gt;wrote me an email about his &lt;a href="http://xbox360.archor.com/"&gt;Cyber
Car XNA&lt;/a&gt; game he wanted to submit to the XnaProjects.Net site I made last week.
This is actually a Racing Game Mod, I first guessed he used the simple racing game
version, but this one is based on the full racing game from the XNA creators website.
Pretty cool style in my opinion. Thanks Archor!&lt;br&gt;
&lt;br&gt;
&lt;a href="http://xbox360.archor.com/"&gt;http://xbox360.archor.com/&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href="http://xbox360.archor.com/"&gt;&lt;img src="http://www.archorwright.com/games/xbox360/cybercar1s.jpg" border="0"&gt;&lt;/a&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=96983850-cc43-4572-a54a-453ced39db25" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,96983850-cc43-4572-a54a-453ced39db25.aspx</comments>
      <category>Ajax;All;Development;Game Development;Other;Programming;Racing Game;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=3d592154-492b-4b20-891a-da296f00e61b</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,3d592154-492b-4b20-891a-da296f00e61b.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,3d592154-492b-4b20-891a-da296f00e61b.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=3d592154-492b-4b20-891a-da296f00e61b</wfw:commentRss>
      <slash:comments>10</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Yes. <a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779">My
XNA book</a> is finally out and some people even got an early version last week. There
is also some discussion going on in the XNA Forums and on the <a href="http://p2p.wrox.com/forum.asp?FORUM_ID=322">official
Wrox forum for the book</a>. 
<p></p>
The coolest thing yesterday that my book was on Rank #16 for Computer/Technical books
on Amazon.com and on Rank 500 something for all books. Quite impressive if you ask
me, hopefully it will continue to stay high and make me filthy rich .. just kidding. 
<p><a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"><img src="http://exdream.no-ip.info/blog/images/XnaBookSmall.jpg" border="0" /></a></p><p>
Yesterday I wanted to put all the samples from the book on my blog, but it is already
way to overloaded here with screenshots and games, adding another 10 games will not
make anything better. Instead I had a crazy idea to create a XNA Community site in
one day. It is called <a href="http://XnaProjects.net/">XnaProjects.Net</a>. The idea
is for everyone to submit their games and links. News are grabbed with <a href="http://blogsearch.google.com/">Google
Blog Search</a> and more features will come in July 2007 when I got more than 5 minutes
time in a row. 
</p><p>
Anyway, check out this great new website, submit your games and links and check out
whats already submitted by me (10 Games so far, yes, thats a lot of XNA games I did
in the past few months): 
</p><ul><li>
XNA Pong 
</li><li>
XNA Breakout 
</li><li>
XNA Tetris 
</li><li>
Rocket Commander XNA 
</li><li>
XNA Shooter 
</li><li>
XNA Racing Game 
</li><li>
SimpleRacingGame 
</li><li>
SpeedyRacer 
</li><li>
Dungeon Quest 
</li><li>
Skinning with Collada Models in XNA 
</li></ul>
You can find source code and game installers for all of these games, including some
nice screenshots and a YouTube video for each of them on the <a href="http://XnaProjects.net/">XnaProjects.Net</a> website.
Check it out:<br /><a href="http://XnaProjects.net/"><img src="http://exdream.no-ip.info/blog/content/binary/XnaProjectsNet.PNG" border="0" /></a><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=3d592154-492b-4b20-891a-da296f00e61b" /></body>
      <title>My XNA book is out and XnaProjects.Net launches</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,3d592154-492b-4b20-891a-da296f00e61b.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/05/04/MyXNABookIsOutAndXnaProjectsNetLaunches.aspx</link>
      <pubDate>Fri, 04 May 2007 13:29:43 GMT</pubDate>
      <description>Yes. &lt;a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"&gt;My XNA
book&lt;/a&gt; is finally out and some people even got an early version last week. There
is also some discussion going on in the XNA Forums and on the &lt;a href="http://p2p.wrox.com/forum.asp?FORUM_ID=322"&gt;official
Wrox forum for the book&lt;/a&gt;. 
&lt;p&gt;
&lt;/p&gt;
The coolest thing yesterday that my book was on Rank #16 for Computer/Technical books
on Amazon.com and on Rank 500 something for all books. Quite impressive if you ask
me, hopefully it will continue to stay high and make me filthy rich .. just kidding. 
&lt;p&gt;
&lt;a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"&gt;&lt;img src="http://exdream.no-ip.info/blog/images/XnaBookSmall.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Yesterday I wanted to put all the samples from the book on my blog, but it is already
way to overloaded here with screenshots and games, adding another 10 games will not
make anything better. Instead I had a crazy idea to create a XNA Community site in
one day. It is called &lt;a href="http://XnaProjects.net/"&gt;XnaProjects.Net&lt;/a&gt;. The idea
is for everyone to submit their games and links. News are grabbed with &lt;a href="http://blogsearch.google.com/"&gt;Google
Blog Search&lt;/a&gt; and more features will come in July 2007 when I got more than 5 minutes
time in a row. 
&lt;/p&gt;
&lt;p&gt;
Anyway, check out this great new website, submit your games and links and check out
whats already submitted by me (10 Games so far, yes, thats a lot of XNA games I did
in the past few months): 
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
XNA Pong 
&lt;/li&gt;
&lt;li&gt;
XNA Breakout 
&lt;/li&gt;
&lt;li&gt;
XNA Tetris 
&lt;/li&gt;
&lt;li&gt;
Rocket Commander XNA 
&lt;/li&gt;
&lt;li&gt;
XNA Shooter 
&lt;/li&gt;
&lt;li&gt;
XNA Racing Game 
&lt;/li&gt;
&lt;li&gt;
SimpleRacingGame 
&lt;/li&gt;
&lt;li&gt;
SpeedyRacer 
&lt;/li&gt;
&lt;li&gt;
Dungeon Quest 
&lt;/li&gt;
&lt;li&gt;
Skinning with Collada Models in XNA 
&lt;/li&gt;
&lt;/ul&gt;
You can find source code and game installers for all of these games, including some
nice screenshots and a YouTube video for each of them on the &lt;a href="http://XnaProjects.net/"&gt;XnaProjects.Net&lt;/a&gt; website.
Check it out:&lt;br&gt;
&lt;a href="http://XnaProjects.net/"&gt; &lt;img src="http://exdream.no-ip.info/blog/content/binary/XnaProjectsNet.PNG" border="0"&gt; &lt;/a&gt;&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=3d592154-492b-4b20-891a-da296f00e61b" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,3d592154-492b-4b20-891a-da296f00e61b.aspx</comments>
      <category>All;Development;Game Development;Other;Programming;Racing Game;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=e77763fe-625d-4cb3-9d1e-e91c7e9c7f36</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,e77763fe-625d-4cb3-9d1e-e91c7e9c7f36.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,e77763fe-625d-4cb3-9d1e-e91c7e9c7f36.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e77763fe-625d-4cb3-9d1e-e91c7e9c7f36</wfw:commentRss>
      <slash:comments>14</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
        </p>
I have put together a little website for the XNA Racing Game Starter Kit released
yesterday on<br /><a href="http://creators.xna.com/Education/StarterKits.aspx">http://creators.xna.com/Education/StarterKits.aspx</a><br /><br />
Here you go: <a href="http://www.XnaRacingGame.com">http://www.XnaRacingGame.com</a><br /><br /><a href="http://www.XnaRacingGame.com"><img src="http://exdream.no-ip.info/blog/content/binary/XnaRacingGameWebsite.png" border="0" /></a><br /><br /><br />
A little rant about the XNA Racing Game Starter Kit download: The download file is
130 MB in size and will eat up almost 290 MB of your hard disk space extracted. It
is also only available in the .vsi format and can't be used in anything but XNA Game
Studio Express or Visual C# Express. The main reason for this incredible size is the
Textures directory, with uses mainly uncompressed .TGA files. The original Racing
Game version had only about 50-70 MB in total with DDS textures and the Simple Racing
Game version from my book is even smaller (30 MB I think, but a lot of content is
not in there, its a also a much smaller and simplified project).<br /><br />
Microsoft has also removed all credits of me, all readmes, all unit tests, most comments,
some screens like the credit screens. It's a little bit sad for me because all references
to me or my website were removed and I'm not even mentioned on the starter kit download
page :( I think the starter kit is now much harder to understand because there are
no unit tests in the code to test anything out. Anyway, I just hope the XNA Racing
Game Starter Kit is useful for you guys, it helps XNA and everyone wins :-)<br /><br /><b>Update 2007-05-01: I'm now mentioned on <a href="http://creators.xna.com/Education/StarterKits.aspx">http://creators.xna.com</a> and
happy :)</b><br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=e77763fe-625d-4cb3-9d1e-e91c7e9c7f36" /></body>
      <title>XnaRacingGame.com goes online</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,e77763fe-625d-4cb3-9d1e-e91c7e9c7f36.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/04/27/XnaRacingGamecomGoesOnline.aspx</link>
      <pubDate>Fri, 27 Apr 2007 19:24:34 GMT</pubDate>
      <description>&lt;p&gt;
&lt;/p&gt;
I have put together a little website for the XNA Racing Game Starter Kit released
yesterday on&lt;br&gt;
&lt;a href="http://creators.xna.com/Education/StarterKits.aspx"&gt;http://creators.xna.com/Education/StarterKits.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Here you go: &lt;a href="http://www.XnaRacingGame.com"&gt;http://www.XnaRacingGame.com&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.XnaRacingGame.com"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/XnaRacingGameWebsite.png" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
A little rant about the XNA Racing Game Starter Kit download: The download file is
130 MB in size and will eat up almost 290 MB of your hard disk space extracted. It
is also only available in the .vsi format and can't be used in anything but XNA Game
Studio Express or Visual C# Express. The main reason for this incredible size is the
Textures directory, with uses mainly uncompressed .TGA files. The original Racing
Game version had only about 50-70 MB in total with DDS textures and the Simple Racing
Game version from my book is even smaller (30 MB I think, but a lot of content is
not in there, its a also a much smaller and simplified project).&lt;br&gt;
&lt;br&gt;
Microsoft has also removed all credits of me, all readmes, all unit tests, most comments,
some screens like the credit screens. It's a little bit sad for me because all references
to me or my website were removed and I'm not even mentioned on the starter kit download
page :( I think the starter kit is now much harder to understand because there are
no unit tests in the code to test anything out. Anyway, I just hope the XNA Racing
Game Starter Kit is useful for you guys, it helps XNA and everyone wins :-)&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Update 2007-05-01: I'm now mentioned on &lt;a href="http://creators.xna.com/Education/StarterKits.aspx"&gt;http://creators.xna.com&lt;/a&gt; and
happy :)&lt;/b&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=e77763fe-625d-4cb3-9d1e-e91c7e9c7f36" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,e77763fe-625d-4cb3-9d1e-e91c7e9c7f36.aspx</comments>
      <category>All;Development;Game Development;Programming;Racing Game;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=fbff73eb-6107-4163-8f29-3d6694780687</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,fbff73eb-6107-4163-8f29-3d6694780687.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,fbff73eb-6107-4163-8f29-3d6694780687.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=fbff73eb-6107-4163-8f29-3d6694780687</wfw:commentRss>
      <slash:comments>5</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <a href="http://creators.xna.com/Education/StarterKits.aspx">
          <img src="http://creators.xna.com/themes/default/images/common/skits_racer_template.png" border="0" />
        </a>
        <br />
Nice one. The Racing Game Starter kit for XNA Game Studio Express I made last year
is now available on<br /><a href="http://creators.xna.com/Education/StarterKits.aspx">http://creators.xna.com/Education/StarterKits.aspx</a><br /><br />
More information will be available shortly on the in-official website for the Racing
Game (link to the xna creators club, screenshots, mod support and forums later):<br /><a href="http://www.XnaRacingGame.com">http://www.XnaRacingGame.com</a><br /><br />
Enjoy the Racing Game ;-)<br /><br />
My book <b>Professional XNA Game Programming</b> for the Xbox 360 and Windows seems
to be out too. I have not received a copy myself yet, but I received some emails about
other guys already holding it in their hands ^^ If you try to download the source
code for the book from the Wrox website and encounter problems, please be aware that
the download link is currently pointing to an older version, which still has some
issues. I will try to sort that out as soon as possible. The official release date
was 11 May, 2007, but <a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779">Amazon
says it is already available</a>, while their own release date is stated as 30 April,
2007. Confusing, isn't it?<br /><br />
If you find any issues with the starter kit or the book download please write me a
message so I can fix it as soon as possible. Many thanks to <a href="http://thezbuffer.com">ZMan
(Andy Dunn) </a>for an early bug report.<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=fbff73eb-6107-4163-8f29-3d6694780687" /></body>
      <title>XNA Racing Game downloads now available on creators.xna.com</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,fbff73eb-6107-4163-8f29-3d6694780687.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/04/27/XNARacingGameDownloadsNowAvailableOnCreatorsxnacom.aspx</link>
      <pubDate>Fri, 27 Apr 2007 09:28:15 GMT</pubDate>
      <description>&lt;a href="http://creators.xna.com/Education/StarterKits.aspx"&gt;&lt;img src="http://creators.xna.com/themes/default/images/common/skits_racer_template.png" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
Nice one. The Racing Game Starter kit for XNA Game Studio Express I made last year
is now available on&lt;br&gt;
&lt;a href="http://creators.xna.com/Education/StarterKits.aspx"&gt;http://creators.xna.com/Education/StarterKits.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
More information will be available shortly on the in-official website for the Racing
Game (link to the xna creators club, screenshots, mod support and forums later):&lt;br&gt;
&lt;a href="http://www.XnaRacingGame.com"&gt;http://www.XnaRacingGame.com&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Enjoy the Racing Game ;-)&lt;br&gt;
&lt;br&gt;
My book &lt;b&gt;Professional XNA Game Programming&lt;/b&gt; for the Xbox 360 and Windows seems
to be out too. I have not received a copy myself yet, but I received some emails about
other guys already holding it in their hands ^^ If you try to download the source
code for the book from the Wrox website and encounter problems, please be aware that
the download link is currently pointing to an older version, which still has some
issues. I will try to sort that out as soon as possible. The official release date
was 11 May, 2007, but &lt;a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"&gt;Amazon
says it is already available&lt;/a&gt;, while their own release date is stated as 30 April,
2007. Confusing, isn't it?&lt;br&gt;
&lt;br&gt;
If you find any issues with the starter kit or the book download please write me a
message so I can fix it as soon as possible. Many thanks to &lt;a href="http://thezbuffer.com"&gt;ZMan
(Andy Dunn) &lt;/a&gt;for an early bug report.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=fbff73eb-6107-4163-8f29-3d6694780687" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,fbff73eb-6107-4163-8f29-3d6694780687.aspx</comments>
      <category>Development;Game Development;Other;Programming;XNA;Racing Game</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,ff31f4b8-bea4-456b-8e87-68ba7cb2b07b.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,ff31f4b8-bea4-456b-8e87-68ba7cb2b07b.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b</wfw:commentRss>
      <slash:comments>10</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">I originally wanted to finish this at Monday
or Tuesday, but I had not enough time this week to improve much on the Dungeon Quest
game. Many of the cool features of the game were already implemented in some unit
tests at the GDC like splitscreen support and shadow mapping, but we had not time
to test and finetune all that. There were also a lot of bugs and smaller issues in
the beta version. Below is a long list of all changes and some new screenshots. When
the XNA Update is available that allows deploying to the Xbox 360 with just binaries
I will provide an updated version that runs on the Xbox 360 too and supports splitscreen
multiplayer gaming. 
<p>
Download the game installer here (40 MB): <a href="http://www.unifaces.de/DungeonQuest/DungeonQuestSetup.zip">DungeonQuestSetup.zip</a><br />
Alternative download (slow! from this site): <a href="http://exdream.no-ip.info/blog/DungeonQuestSetup.zip">DungeonQuestSetup.zip</a><br /><br />
Note: This game requires a Shader Model 3.0 GPU as it was build for the Xbox 360 and
optimized that way. For lower end PCs it pushes way too many polygons each frame anyway
so that it will be too slow. If you have a low end SM 3.0 GPU (like the Nvidia GeForce
6600), make sure you run in a lower resolution (see below for details). 
</p><p>
Here is a little video from the current version of the game. Enjoy! <a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"></a><a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"></a><a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"></a><a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"></a><a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"></a><object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/FO1PNgIwjB4" /><embed src="http://www.youtube.com/v/FO1PNgIwjB4" type="application/x-shockwave-flash" height="350" width="425"></embed></object></p><p><b>Screenshots:</b><br /><a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0001.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0001small.jpg" border="0" /></a><br />
Ok, let's get started. What is this guy doing there. He doesn't look very friendly,
maybe it is better to hit him in the head!<br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0004.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0004small.jpg" border="0" /></a><br />
First quest completed. This key is important to open the door to the second level.<br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0006.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0006small.jpg" border="0" /></a><br />
Nonstop fighting action. Well, at least if you don't lose your way.<br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0009.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0009small.jpg" border="0" /></a><br />
This is how it looks like after I got angry. I told those guys, don't start any fights!<br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0011.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0011small.jpg" border="0" /></a><br />
Ohh no. I did not use all my skills (see right side) and this Ogre killed me too quickly.
I guess I have to start over.<br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0012.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0012small.jpg" border="0" /></a><br />
The credit screen when the game ends. Notice my book :)<br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0016.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0016small.jpg" border="0" /></a><br />
No reason to stop, let's start over and try again. The fight is continuing. The game
is not that hard, you just have to use all skills and avoid being hit by fireballs
or big enemies when you have low hit points.<br /></p><p><b>Improvements:</b></p><ul><li>
Improved performance a lot by optimizing some internal code and using all ps3.0 shaders
now (sad thing is it only runs with ps3.0 hardware now).<br />
TIPP: If you have a low spec ps3.0 graphic card (like the GeForce 6600 or lower) use
a smaller resolution, the game will run much faster. Use the DungeonQuestSettings.xml
file and enter a smaller resolution there (e.g. 800x600). The game is heavily GPU
bound (like all my games) and it pushes several million polygons each frame (scene
alone has almost a million polygons, but it has to be rendered 3 times for all shadow
mapping and post processing effects). Runs on XBox 360 or GeForce 7x hardware very
good with 100fps and more. 
</li><li>
Fixed parallax mapping for the cave and improved the specular effects, looks much
nicer now. Also increased view distance and light affect range. 
</li><li>
Improved the music and sound effects, also added a lot more events and little sounds. 
</li><li>
Added many text messages to help the player understand the game better 
</li><li>
Check if computer can do ps 3.0, else shows big message on screen. 
</li><li>
Support for 64 bit systems (did not start before) 
</li><li>
Reduced glow in post screen (see comments of beta version) 
</li><li>
Fixed game logic and quests (did not work at all in the beta) 
</li><li>
All game actions get a nice message now in the center (killed ogre, got key, quest
complete, new weapon, etc.) 
</li><li>
Implemented several new animations for hitting and dying 
</li><li>
Fixed text size in 3:4 resolutions (did only look correct in 16:9) 
</li><li>
Improved gravity (much stronger now) and fixed several collision bugs 
</li><li>
Fixed collecting key, added it to the UI and also allowing dropping weapons now 
</li><li>
Allow switching weapons (right/left shoulder buttons or Q/E or Mouse wheel) 
</li><li>
Selected enemy ring to help you see which enemy is attacted 
</li><li>
Rumble Xbox 360 controller when hit/getting hit 
</li><li>
Added end screen and credits with book link, credits 
</li><li>
Improved weapons, damages and made the game more balanced. 
</li><li>
Show high score list when game over 
</li><li>
Mouse support for dungeon quest (shooter like, just asdw for moving) 
</li><li>
Block door when we don't got key! Also added sphere collision for monsters (they don't
intersect anymore) 
</li><li>
Fixed shadow mapping and added a lot of cool shadow effects and pseudo point light
sources. 
</li><li>
Added nice looking vista compatible icon, also tested the whole game on vista, runs
fine :) 
</li><li>
Added some grunt sounds and an ambient theme in the background! 
</li><li>
And many more .. 
</li></ul>
The source code is not yet released. I will probably work a little bit more on on
when the XNA Update comes out and then maybe release it. Sorry for now, I know many
people want to take a look right now ^^<img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b" /></body>
      <title>The Dungeon Quest Game</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,ff31f4b8-bea4-456b-8e87-68ba7cb2b07b.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/03/16/TheDungeonQuestGame.aspx</link>
      <pubDate>Fri, 16 Mar 2007 13:19:59 GMT</pubDate>
      <description>I originally wanted to finish this at Monday or Tuesday, but I had not enough time this week to improve much on the Dungeon Quest game. Many of the cool features of the game were already implemented in some unit tests at the GDC like splitscreen support and shadow mapping, but we had not time to test and finetune all that. There were also a lot of bugs and smaller issues in the beta version. Below is a long list of all changes and some new screenshots. When the XNA Update is available that allows deploying to the Xbox 360 with just binaries I will provide an updated version that runs on the Xbox 360 too and supports splitscreen multiplayer gaming.
&lt;p&gt;
Download the game installer here (40 MB): &lt;a href="http://www.unifaces.de/DungeonQuest/DungeonQuestSetup.zip"&gt;DungeonQuestSetup.zip&lt;/a&gt;
&lt;br&gt;
Alternative download (slow! from this site): &lt;a href="http://exdream.no-ip.info/blog/DungeonQuestSetup.zip"&gt;DungeonQuestSetup.zip&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Note: This game requires a Shader Model 3.0 GPU as it was build for the Xbox 360 and
optimized that way. For lower end PCs it pushes way too many polygons each frame anyway
so that it will be too slow. If you have a low end SM 3.0 GPU (like the Nvidia GeForce
6600), make sure you run in a lower resolution (see below for details). 
&lt;/p&gt;
&lt;p&gt;
Here is a little video from the current version of the game. Enjoy! &lt;a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"&gt;&lt;/a&gt;&lt;a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"&gt;&lt;/a&gt;&lt;a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"&gt;&lt;/a&gt;&lt;a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"&gt;&lt;/a&gt;&lt;a style="left: 434px ! important; top: -3px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/FO1PNgIwjB4"&gt;&lt;/a&gt;
&lt;object height="350" width="425"&gt;
&lt;param name="movie" value="http://www.youtube.com/v/FO1PNgIwjB4"&gt;&lt;embed src="http://www.youtube.com/v/FO1PNgIwjB4" type="application/x-shockwave-flash" height="350" width="425"&gt;
&lt;/object&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;Screenshots:&lt;/b&gt;
&lt;br&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0001.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0001small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
Ok, let's get started. What is this guy doing there. He doesn't look very friendly,
maybe it is better to hit him in the head!&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0004.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0004small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
First quest completed. This key is important to open the door to the second level.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0006.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0006small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
Nonstop fighting action. Well, at least if you don't lose your way.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0009.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0009small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
This is how it looks like after I got angry. I told those guys, don't start any fights!&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0011.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0011small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
Ohh no. I did not use all my skills (see right side) and this Ogre killed me too quickly.
I guess I have to start over.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0012.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0012small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
The credit screen when the game ends. Notice my book :)&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0016.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshot0016small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
No reason to stop, let's start over and try again. The fight is continuing. The game
is not that hard, you just have to use all skills and avoid being hit by fireballs
or big enemies when you have low hit points.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;Improvements:&lt;/b&gt; 
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Improved performance a lot by optimizing some internal code and using all ps3.0 shaders
now (sad thing is it only runs with ps3.0 hardware now).&lt;br&gt;
TIPP: If you have a low spec ps3.0 graphic card (like the GeForce 6600 or lower) use
a smaller resolution, the game will run much faster. Use the DungeonQuestSettings.xml
file and enter a smaller resolution there (e.g. 800x600). The game is heavily GPU
bound (like all my games) and it pushes several million polygons each frame (scene
alone has almost a million polygons, but it has to be rendered 3 times for all shadow
mapping and post processing effects). Runs on XBox 360 or GeForce 7x hardware very
good with 100fps and more. 
&lt;/li&gt;
&lt;li&gt;
Fixed parallax mapping for the cave and improved the specular effects, looks much
nicer now. Also increased view distance and light affect range. 
&lt;/li&gt;
&lt;li&gt;
Improved the music and sound effects, also added a lot more events and little sounds. 
&lt;/li&gt;
&lt;li&gt;
Added many text messages to help the player understand the game better 
&lt;/li&gt;
&lt;li&gt;
Check if computer can do ps 3.0, else shows big message on screen. 
&lt;/li&gt;
&lt;li&gt;
Support for 64 bit systems (did not start before) 
&lt;/li&gt;
&lt;li&gt;
Reduced glow in post screen (see comments of beta version) 
&lt;/li&gt;
&lt;li&gt;
Fixed game logic and quests (did not work at all in the beta) 
&lt;/li&gt;
&lt;li&gt;
All game actions get a nice message now in the center (killed ogre, got key, quest
complete, new weapon, etc.) 
&lt;/li&gt;
&lt;li&gt;
Implemented several new animations for hitting and dying 
&lt;/li&gt;
&lt;li&gt;
Fixed text size in 3:4 resolutions (did only look correct in 16:9) 
&lt;/li&gt;
&lt;li&gt;
Improved gravity (much stronger now) and fixed several collision bugs 
&lt;/li&gt;
&lt;li&gt;
Fixed collecting key, added it to the UI and also allowing dropping weapons now 
&lt;/li&gt;
&lt;li&gt;
Allow switching weapons (right/left shoulder buttons or Q/E or Mouse wheel) 
&lt;/li&gt;
&lt;li&gt;
Selected enemy ring to help you see which enemy is attacted 
&lt;/li&gt;
&lt;li&gt;
Rumble Xbox 360 controller when hit/getting hit 
&lt;/li&gt;
&lt;li&gt;
Added end screen and credits with book link, credits 
&lt;/li&gt;
&lt;li&gt;
Improved weapons, damages and made the game more balanced. 
&lt;/li&gt;
&lt;li&gt;
Show high score list when game over 
&lt;/li&gt;
&lt;li&gt;
Mouse support for dungeon quest (shooter like, just asdw for moving) 
&lt;/li&gt;
&lt;li&gt;
Block door when we don't got key! Also added sphere collision for monsters (they don't
intersect anymore) 
&lt;/li&gt;
&lt;li&gt;
Fixed shadow mapping and added a lot of cool shadow effects and pseudo point light
sources. 
&lt;/li&gt;
&lt;li&gt;
Added nice looking vista compatible icon, also tested the whole game on vista, runs
fine :) 
&lt;/li&gt;
&lt;li&gt;
Added some grunt sounds and an ambient theme in the background! 
&lt;/li&gt;
&lt;li&gt;
And many more .. 
&lt;/li&gt;
&lt;/ul&gt;
The source code is not yet released. I will probably work a little bit more on on
when the XNA Update comes out and then maybe release it. Sorry for now, I know many
people want to take a look right now ^^&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=ff31f4b8-bea4-456b-8e87-68ba7cb2b07b" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,ff31f4b8-bea4-456b-8e87-68ba7cb2b07b.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=a2fb8f72-4edf-4c59-9181-af324287a48c</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,a2fb8f72-4edf-4c59-9181-af324287a48c.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,a2fb8f72-4edf-4c59-9181-af324287a48c.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=a2fb8f72-4edf-4c59-9181-af324287a48c</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Here are some more pictures from the last
few days of the GDC. We did not have enough time to go through all the pictures in
the last days.<br /><br />
Chris and me are currently working on the last issues with Dungeon Quest, an updated
version will be finished soon.<br /><br /><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest01.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest01small.jpg" border="0" /></a><br />
This was at the beginning of Day 3, when we still got over 14 hours left. You can
see our sign from the XNA Challenge and a little sign for my upcoming book :)<br /><br /><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest02.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest02small.jpg" border="0" /></a></p><p>
The Lobby of the Moscone North Building, which was also the XNA Lobby and the place
we stayed all day to finish our game. The Gears of War theme music was getting annoying
after hearing it a few times, but after hearing it for 4 straight days I guess I need
a few weeks of silence before I can ever play Gears of War again ^^<br /></p><p><br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest03.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest03small.jpg" border="0" /></a></p><p>
Two of the other teams working hard on their XNA games.
</p><p><br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest04.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest04small.jpg" border="0" /></a></p><p>
Gabe Ahn from Sony introducing us at the COLLADA round table I was speaking at on
Wednesday (left to right): Shaun Leach from Zipper Interactive, Ken Normann from EA
(working on the Sims team) and me (some XNA guy from exDream in Germany? ^^)
</p><p>
The panel discussion was good IMO, hopefully more and more people get attracted to <a href="http://collada.org">COLLADA</a> and
start using it for their tools.
</p><p><br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest05.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest05small.jpg" border="0" /></a></p><p>
The outside world at day 4, it might not look very bright to you, but after 2 days
with just 2-3 hours of sleep this looked incredible bright and it was hard to open
the eyes out here. But the weather was nice all week and it was warm enough to wear
t-shirts all the time except at night.
</p><p><br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest06.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest06small.jpg" border="0" /></a></p><p>
A picture from Microsoft's XNA Party at Thursday evening. It was still early and we
prepared our presentation of the XNA game we did in 4 days: Dungeon Quest. We had
many problems in the last two days and just skipped some of our features, but we got
it done and it looks really good, especially for the short time frame we had to develop
the game.
</p><p><br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest07.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest07small.jpg" border="0" /></a></p><p>
Christoph and me standing proudly in front of our game at the XNA Party. Many people
came and played and congratulated us on the great result.
</p><p><br /></p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest08.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest08small.jpg" border="0" /></a></p><p>
One final picture from Saturday morning before we were leaving to the airport to head
back to Germany. The trip was 25 hours for me and after that I felt as tired as Friday,
I probably need to sleep for a week now .. but I got work to do ..<br /></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=a2fb8f72-4edf-4c59-9181-af324287a48c" /></body>
      <title>Rest of GDC Pics</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,a2fb8f72-4edf-4c59-9181-af324287a48c.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/03/12/RestOfGDCPics.aspx</link>
      <pubDate>Mon, 12 Mar 2007 11:07:05 GMT</pubDate>
      <description>Here are some more pictures from the last few days of the GDC. We did not have enough time to go through all the pictures in the last days.&lt;br&gt;
&lt;br&gt;
Chris and me are currently working on the last issues with Dungeon Quest, an updated
version will be finished soon.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest01.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest01small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
This was at the beginning of Day 3, when we still got over 14 hours left. You can
see our sign from the XNA Challenge and a little sign for my upcoming book :)&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest02.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest02small.jpg" border="0"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The Lobby of the Moscone North Building, which was also the XNA Lobby and the place
we stayed all day to finish our game. The Gears of War theme music was getting annoying
after hearing it a few times, but after hearing it for 4 straight days I guess I need
a few weeks of silence before I can ever play Gears of War again ^^&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest03.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest03small.jpg" border="0"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Two of the other teams working hard on their XNA games.
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest04.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest04small.jpg" border="0"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Gabe Ahn from Sony introducing us at the COLLADA round table I was speaking at on
Wednesday (left to right): Shaun Leach from Zipper Interactive, Ken Normann from EA
(working on the Sims team) and me (some XNA guy from exDream in Germany? ^^)
&lt;/p&gt;
&lt;p&gt;
The panel discussion was good IMO, hopefully more and more people get attracted to &lt;a href="http://collada.org"&gt;COLLADA&lt;/a&gt; and
start using it for their tools.
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest05.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest05small.jpg" border="0"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The outside world at day 4, it might not look very bright to you, but after 2 days
with just 2-3 hours of sleep this looked incredible bright and it was hard to open
the eyes out here. But the weather was nice all week and it was warm enough to wear
t-shirts all the time except at night.
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest06.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest06small.jpg" border="0"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
A picture from Microsoft's XNA Party at Thursday evening. It was still early and we
prepared our presentation of the XNA game we did in 4 days: Dungeon Quest. We had
many problems in the last two days and just skipped some of our features, but we got
it done and it looks really good, especially for the short time frame we had to develop
the game.
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest07.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest07small.jpg" border="0"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Christoph and me standing proudly in front of our game at the XNA Party. Many people
came and played and congratulated us on the great result.
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest08.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_rest08small.jpg" border="0"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
One final picture from Saturday morning before we were leaving to the airport to head
back to Germany. The trip was 25 hours for me and after that I felt as tired as Friday,
I probably need to sleep for a week now .. but I got work to do ..&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=a2fb8f72-4edf-4c59-9181-af324287a48c" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,a2fb8f72-4edf-4c59-9181-af324287a48c.aspx</comments>
      <category>All;Game Development;Other;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=de511cd1-12ee-4450-ade2-b64c17872c26</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,de511cd1-12ee-4450-ade2-b64c17872c26.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,de511cd1-12ee-4450-ade2-b64c17872c26.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=de511cd1-12ee-4450-ade2-b64c17872c26</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Just a couple of quick notes. I have been
awake for over 25 hours now (all that traveling) and my PC at home does not like my
anymore (it just won't go on). I probably have to repair it first thing tomorrow.<br /><br />
- This server (handling this website) was not prepared for the huge number of people
trying to log on here and especially not for all the download request. I added a faster
server below for the Dungeon Quest Beta download<br /><br />
- The Dungeon Quest game has not been tested well and we turned many features off
(multiplayer splitscreen, xbox testing, some shadow mapping, quest solving, etc.)
just to make it run at the party at Thursday. Tomorrow we are going to fix all that
issues and test a little bit more and then will release the full version, which is
hopefully more fun :)<br /><br />
- I need sleep and a computer that works, grml :(<br /><p></p><br />
- All the photos we made will be posted tomorrow too (well, not all, its like 200,
but we got some nice ones in the last few days).<br /><br /><br />
Thanks to Microsoft for the contest and opportunity and the GDC was a nice event overall
(was Chris and my first time going over there). We did not check out many sessions,
but there are many clips on GameTrailers, YouTube and probably a lot of papers from
the usual sites (gamedev, nvidia, ati, etc.).<br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=de511cd1-12ee-4450-ade2-b64c17872c26" /></body>
      <title>After the GDC</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,de511cd1-12ee-4450-ade2-b64c17872c26.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/03/11/AfterTheGDC.aspx</link>
      <pubDate>Sun, 11 Mar 2007 17:30:14 GMT</pubDate>
      <description>Just a couple of quick notes. I have been awake for over 25 hours now (all that traveling) and my PC at home does not like my anymore (it just won't go on). I probably have to repair it first thing tomorrow.&lt;br&gt;
&lt;br&gt;
- This server (handling this website) was not prepared for the huge number of people
trying to log on here and especially not for all the download request. I added a faster
server below for the Dungeon Quest Beta download&lt;br&gt;
&lt;br&gt;
- The Dungeon Quest game has not been tested well and we turned many features off
(multiplayer splitscreen, xbox testing, some shadow mapping, quest solving, etc.)
just to make it run at the party at Thursday. Tomorrow we are going to fix all that
issues and test a little bit more and then will release the full version, which is
hopefully more fun :)&lt;br&gt;
&lt;br&gt;
- I need sleep and a computer that works, grml :(&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;br&gt;
- All the photos we made will be posted tomorrow too (well, not all, its like 200,
but we got some nice ones in the last few days).&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks to Microsoft for the contest and opportunity and the GDC was a nice event overall
(was Chris and my first time going over there). We did not check out many sessions,
but there are many clips on GameTrailers, YouTube and probably a lot of papers from
the usual sites (gamedev, nvidia, ati, etc.).&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=de511cd1-12ee-4450-ade2-b64c17872c26" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,de511cd1-12ee-4450-ade2-b64c17872c26.aspx</comments>
      <category>All;Game Development;Other;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=aacf9b5a-b152-4a21-9445-90626d8690c8</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,aacf9b5a-b152-4a21-9445-90626d8690c8.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,aacf9b5a-b152-4a21-9445-90626d8690c8.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=aacf9b5a-b152-4a21-9445-90626d8690c8</wfw:commentRss>
      <slash:comments>13</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Hey everyone, we finally finished the game
yesterday for the Microsoft XNA Party here at the GDC.<br /><br />
For some strange reason my main server in germany went offline today and I finally
got it up and running again (thanks to Leif, he had to run over to the office and
restart the server in the middle of the night ^^).<br /><br />
Here is a little screenshot of the final game. I will post more later and do a video
too.<br /><p></p><p><a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestDay4_0001.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestDay4_0001small.jpg" border="0" /></a><br /><br />
If you want an real early preview of the version so far, you can download it here
(with installer and everything, about 38 MB). We will fix some issues today and make
an update this weekend. There are many more features we had implemented (splitscreen,
shadowing, quest solving), but we removed all that to just make the version run because
there were still some issues. Anyway, enjoy the game so far. Thanks for all the nice
comments.<br /><br /><strong>Update: </strong>Fast Download from new Server: <a href="http://unifaces.de/DungeonQuest/DungeonQuestBetaSetup.zip">Dungeon
Quest Beta (38 MB) (Day 4 GDC version)</a><br />
Original Server (slow): <a href="http://exdream.no-ip.info/blog/DungeonQuestBetaSetup.zip">Dungeon
Quest Beta (38 MB) (Day 4 GDC version)</a> (WARNING: slow download from this
website)<br /></p><p>
Tomorrow there will be an update and all the beta issues will be fixed + more features
will come, stay tuned!
</p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=aacf9b5a-b152-4a21-9445-90626d8690c8" /></body>
      <title>GDC Day 4 - The Game is done</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,aacf9b5a-b152-4a21-9445-90626d8690c8.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/03/09/GDCDay4TheGameIsDone.aspx</link>
      <pubDate>Fri, 09 Mar 2007 23:20:35 GMT</pubDate>
      <description>Hey everyone, we finally finished the game yesterday for the Microsoft XNA Party here at the GDC.&lt;br&gt;
&lt;br&gt;
For some strange reason my main server in germany went offline today and I finally
got it up and running again (thanks to Leif, he had to run over to the office and
restart the server in the middle of the night ^^).&lt;br&gt;
&lt;br&gt;
Here is a little screenshot of the final game. I will post more later and do a video
too.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestDay4_0001.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestDay4_0001small.jpg" border=0&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
If you want an real early preview of the version so far, you can download it here
(with installer and everything, about 38 MB). We will fix some issues today and make
an update this weekend. There are many more features we had implemented (splitscreen,
shadowing, quest solving), but we removed all that to just make the version run because
there were still some issues. Anyway, enjoy the game so far. Thanks for all the nice
comments.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Update: &lt;/strong&gt;Fast Download from new Server: &lt;a href="http://unifaces.de/DungeonQuest/DungeonQuestBetaSetup.zip"&gt;Dungeon
Quest Beta (38 MB) (Day 4 GDC version)&lt;/a&gt;
&lt;br&gt;
Original Server (slow): &lt;a href="http://exdream.no-ip.info/blog/DungeonQuestBetaSetup.zip"&gt;Dungeon
Quest Beta (38 MB) (Day 4 GDC version)&lt;/a&gt;&amp;nbsp;(WARNING: slow download from this
website)&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
Tomorrow there will be an update and all the beta issues will be fixed + more features
will come, stay tuned!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=aacf9b5a-b152-4a21-9445-90626d8690c8" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,aacf9b5a-b152-4a21-9445-90626d8690c8.aspx</comments>
      <category>All;Game Development;Other;Programming;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=b1039a57-e5dd-4b3c-8c24-14e03bbc4fac</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,b1039a57-e5dd-4b3c-8c24-14e03bbc4fac.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,b1039a57-e5dd-4b3c-8c24-14e03bbc4fac.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=b1039a57-e5dd-4b3c-8c24-14e03bbc4fac</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">.. have no time .. got no sleep .. have
to finish game today ..<br /><br />
This is the screen from yesterday/this morning (day 3):<br /><br /><a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshotDay3.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshotDay3small.jpg" border="0" /></a><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=b1039a57-e5dd-4b3c-8c24-14e03bbc4fac" /></body>
      <title>GDC 2007 - Dungeon Quest - Day 3</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,b1039a57-e5dd-4b3c-8c24-14e03bbc4fac.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/03/08/GDC2007DungeonQuestDay3.aspx</link>
      <pubDate>Thu, 08 Mar 2007 18:36:10 GMT</pubDate>
      <description>.. have no time .. got no sleep .. have to finish game today ..&lt;br&gt;
&lt;br&gt;
This is the screen from yesterday/this morning (day 3):&lt;br&gt;
&lt;br&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshotDay3.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshotDay3small.jpg" border="0"&gt;&lt;/a&gt;&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=b1039a57-e5dd-4b3c-8c24-14e03bbc4fac" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,b1039a57-e5dd-4b3c-8c24-14e03bbc4fac.aspx</comments>
      <category>All;Game Development;Other;Programming;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=4f486c75-8931-419d-8b1f-4d88c689104e</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,4f486c75-8931-419d-8b1f-4d88c689104e.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,4f486c75-8931-419d-8b1f-4d88c689104e.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=4f486c75-8931-419d-8b1f-4d88c689104e</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Really short post for yesterday. I had
not much time today to post and we are half a day behind. But tonight we are going
to improve our game a lot. 
<p>
Tomorrow I will post another screen for today and talk about what happened today (I
spoke at the Collada panel, that was a lot of fun and we took some new pictures). 
</p><p>
Our Dungeon Quest Game still looks pretty good and we advancing a lot, at least with
the graphics. Keep in mind that we started with nothing, no real engine, I have never
done point lights before and all the texture and 3d models were created in the last
2 days. 
</p><p>
Some parts of the game are also implemented, but we will still have a lot of work
to get all the quests, monsters and AI working properly and there are still some heavy
issues like implementing shadow maps indoor with point lights (uff) and I still have
no idea how to get the split screen stuff working efficiently. 
</p><p>
Here is the screen shot for day 2 (yesterday), it shows the player model and the cave. <a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshotDay2.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshotDay2small.jpg" border="0" /></a></p><p>
Stay tuned, more to come!<img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=4f486c75-8931-419d-8b1f-4d88c689104e" /></p></body>
      <title>Dungeon Quest - Day 2</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,4f486c75-8931-419d-8b1f-4d88c689104e.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/03/08/DungeonQuestDay2.aspx</link>
      <pubDate>Thu, 08 Mar 2007 06:38:58 GMT</pubDate>
      <description>Really short post for yesterday. I had not much time today to post and we are half a day behind. But tonight we are going to improve our game a lot.
&lt;p&gt;
Tomorrow I will post another screen for today and talk about what happened today (I
spoke at the Collada panel, that was a lot of fun and we took some new pictures). 
&lt;p&gt;
Our Dungeon Quest Game still looks pretty good and we advancing a lot, at least with
the graphics. Keep in mind that we started with nothing, no real engine, I have never
done point lights before and all the texture and 3d models were created in the last
2 days. 
&lt;p&gt;
Some parts of the game are also implemented, but we will still have a lot of work
to get all the quests, monsters and AI working properly and there are still some heavy
issues like implementing shadow maps indoor with point lights (uff) and I still have
no idea how to get the split screen stuff working efficiently. 
&lt;p&gt;
Here is the screen shot for day 2 (yesterday), it shows the player model and the cave. &lt;a href="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshotDay2.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/DungeonQuestScreenshotDay2small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
Stay tuned, more to come!&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=4f486c75-8931-419d-8b1f-4d88c689104e" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,4f486c75-8931-419d-8b1f-4d88c689104e.aspx</comments>
      <category>All;Game Development;Other;Programming;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=999a41b7-8f24-4559-875f-706f1ca38e42</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,999a41b7-8f24-4559-875f-706f1ca38e42.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,999a41b7-8f24-4559-875f-706f1ca38e42.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=999a41b7-8f24-4559-875f-706f1ca38e42</wfw:commentRss>
      <slash:comments>6</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Sorry for not blogging yesterday. We were
working all day on our game here on the GDC 2007 and it was very noisy and distracting
here. If you want to watch us work: We are in the Moscone North Lobby and shouldn't
be hard to find. Anyway, I will probably just blog at the morning of the next day
for each day here. 
<p>
Our game is called <b>Dungeon Quest</b> and we are absolutely insane because we want
to create a Multiplayer Role Playing Game in just 4 days and we haven't even thought
of all the distractions here. I will try to give you a screen per day and tell you
want we have done so far. 
</p><p>
Yesterday we worked purely on the environment, the level and the general game idea
and some smaller details. As I said before we started with nothing, I just created
a new project and Christoph did just open up 3DS Max and started working, there are
no textures or models we have already done. And we both have never worked on a role
playing game before. 
</p><p>
In the morning we still had a lot of problems getting our computers up and running
(3DS Max wasn't starting, I needed lots of plugins and tools, stuff like that). It
usually takes a day or more to set up a development machine in our opinion. Probably
a week until you got all the important tools installed you forgot in the first day.
Anyway, we finally started to build the cave, create new custom collada exporter for
that and placed lights. While Christoph was working on the 3D cave I was getting the
engine up and running and noticed that there are many things that have to be done: 
</p><ul><li>
Like just rendering some text on the screen, 
</li><li>
Finding a good font for that, 
</li><li>
Creating a bitmap font, 
</li><li>
Also making other UI elements (selected monster, health, level up, etc.) 
</li><li>
Rendering shaders and playing around with point lights 
</li><li>
Working on many other smaller issues like effects, billboards, vertex formats, etc. 
</li><li>
Most unit tests require a good camera and testing the cave level itself was very hard,
so I already created the ThridPersonCamera class we going to use for this game. 
</li></ul>
I started with most classes that are required for that and I also could drop in some
Texture/Font code from Rocket Commander XNA, but most of the shader and collada import
classes had to be created from scratch. Then we spend all evening and even this morning
tweaking the shaders, getting all the lights working, adding fog, figuring out how
to do 6 complex light passes in one shader, and so on. 
<p>
Today we will focus on building the main character, getting some collision detection
working and some basic game logic (keys, doors, monster state machines, player behaviour
and animations). Hopefully I can provide you with a nicer screenshot tomorrow, just
an empty level is pretty boring. 
<br /><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_Game_Progress_Day1.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_Game_Progress_Day1small.jpg" border="0" /></a></p><p>
And here are some pictures from yesterday for your enjoyment.<br /><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_01.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_01small.jpg" border="0" /></a><br />
This is the lobby of the Moscone North building at the GDC. The GDC Expo hall is below
us and on Monday the Serious Games Summit was here, but we hadn't had any time to
even check out who is speaking at the actual GDC. At wednesday I will be at some Collada
round table speaking about Collada and issues we had with it so far ^^ 
</p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_02.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_02small.jpg" border="0" /></a><br />
There are many art galleries here in San Francisco and the Asian population is also
huge. It was not hard to find an Asian Art Gallery. 
</p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_03.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_03small.jpg" border="0" /></a><br />
Here you can see an ad for Microsoft's Vista Operating System directly in front of
the big Mac building here (seems a lot of people got one here). There is nothing interesting
about a Mac for a game developer IMO. 
</p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_04.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_04small.jpg" border="0" /></a><br />
Alcatraz at day time. I already showed you a picture at night earlier. 
</p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_05.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_05small.jpg" border="0" /></a><br />
A view from my desk at the Hotel over San Francisco. Its still impressive every day
you wake up ^^ 
</p><p><a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_06.jpg"><img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_06small.jpg" border="0" /></a><br />
And some picture of a place I don't know the name of. Usually I would look it up,
but I have to go back to work. Cya tomorrow!<img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=999a41b7-8f24-4559-875f-706f1ca38e42" /></p></body>
      <title>GDC 2007 - Dungeon Quest - Day 1</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,999a41b7-8f24-4559-875f-706f1ca38e42.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/03/06/GDC2007DungeonQuestDay1.aspx</link>
      <pubDate>Tue, 06 Mar 2007 23:14:02 GMT</pubDate>
      <description>Sorry for not blogging yesterday. We were working all day on our game here on the GDC 2007 and it was very noisy and distracting here. If you want to watch us work: We are in the Moscone North Lobby and shouldn't be hard to find. Anyway, I will probably just blog at the morning of the next day for each day here.
&lt;p&gt;
Our game is called &lt;b&gt;Dungeon Quest&lt;/b&gt; and we are absolutely insane because we want
to create a Multiplayer Role Playing Game in just 4 days and we haven't even thought
of all the distractions here. I will try to give you a screen per day and tell you
want we have done so far. 
&lt;p&gt;
Yesterday we worked purely on the environment, the level and the general game idea
and some smaller details. As I said before we started with nothing, I just created
a new project and Christoph did just open up 3DS Max and started working, there are
no textures or models we have already done. And we both have never worked on a role
playing game before. 
&lt;p&gt;
In the morning we still had a lot of problems getting our computers up and running
(3DS Max wasn't starting, I needed lots of plugins and tools, stuff like that). It
usually takes a day or more to set up a development machine in our opinion. Probably
a week until you got all the important tools installed you forgot in the first day.
Anyway, we finally started to build the cave, create new custom collada exporter for
that and placed lights. While Christoph was working on the 3D cave I was getting the
engine up and running and noticed that there are many things that have to be done: 
&lt;ul&gt;
&lt;li&gt;
Like just rendering some text on the screen, 
&lt;li&gt;
Finding a good font for that, 
&lt;li&gt;
Creating a bitmap font, 
&lt;li&gt;
Also making other UI elements (selected monster, health, level up, etc.) 
&lt;li&gt;
Rendering shaders and playing around with point lights 
&lt;li&gt;
Working on many other smaller issues like effects, billboards, vertex formats, etc. 
&lt;li&gt;
Most unit tests require a good camera and testing the cave level itself was very hard,
so I already created the ThridPersonCamera class we going to use for this game. 
&lt;/ul&gt;
I started with most classes that are required for that and I also could drop in some
Texture/Font code from Rocket Commander XNA, but most of the shader and collada import
classes had to be created from scratch. Then we spend all evening and even this morning
tweaking the shaders, getting all the lights working, adding fog, figuring out how
to do 6 complex light passes in one shader, and so on. 
&lt;p&gt;
Today we will focus on building the main character, getting some collision detection
working and some basic game logic (keys, doors, monster state machines, player behaviour
and animations). Hopefully I can provide you with a nicer screenshot tomorrow, just
an empty level is pretty boring. 
&lt;br&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_Game_Progress_Day1.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_Game_Progress_Day1small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
And here are some pictures from yesterday for your enjoyment.&lt;br&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_01.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_01small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
This is the lobby of the Moscone North building at the GDC. The GDC Expo hall is below
us and on Monday the Serious Games Summit was here, but we hadn't had any time to
even check out who is speaking at the actual GDC. At wednesday I will be at some Collada
round table speaking about Collada and issues we had with it so far ^^ 
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_02.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_02small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
There are many art galleries here in San Francisco and the Asian population is also
huge. It was not hard to find an Asian Art Gallery. 
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_03.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_03small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
Here you can see an ad for Microsoft's Vista Operating System directly in front of
the big Mac building here (seems a lot of people got one here). There is nothing interesting
about a Mac for a game developer IMO. 
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_04.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_04small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
Alcatraz at day time. I already showed you a picture at night earlier. 
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_05.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_05small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
A view from my desk at the Hotel over San Francisco. Its still impressive every day
you wake up ^^ 
&lt;p&gt;
&lt;a href="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_06.jpg"&gt;&lt;img src="http://exdream.no-ip.info/blog/content/binary/GDC2007_day1_06small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
And some picture of a place I don't know the name of. Usually I would look it up,
but I have to go back to work. Cya tomorrow!&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=999a41b7-8f24-4559-875f-706f1ca38e42" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,999a41b7-8f24-4559-875f-706f1ca38e42.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=7e7c8387-bb44-459e-ad4e-ce315836229a</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,7e7c8387-bb44-459e-ad4e-ce315836229a.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,7e7c8387-bb44-459e-ad4e-ce315836229a.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=7e7c8387-bb44-459e-ad4e-ce315836229a</wfw:commentRss>
      <slash:comments>6</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://www.gdconf.com/images/logo_gdconf.gif" />                   <img src="http://www.gdconf.com/images/datelocation.gif" /><br /><br />
Every year in march the GDC is San Francisco or San Joe and we all are reading the
announcements, papers and articles coming from there. It was always interesting to
read about the stuff going on there (<a href="http://gamedev.net">gamedev.net</a> has
a good coverage each year), but I could never attend. The cost of flying over there
and staying there for a week plus the incredible high attendee fees kept me out of
this conference in the past. As you can read on <a href="http://www.exDream.com">www.exDream.com</a> we
usually attend the CeBIT here in Hannover instead and go to all the other conferences
and fairs here in Germany ^^<br /><br />
Anyway, a few weeks ago Microsoft asked me to come to the GDC and be part of one of
their XNA "Dream Team"s. The idea for these teams is to build a game while we are
on the conference in 3-4 days (from Monday to Thursday) and that sounds crazy enough
for me (who the hell wants to make a game in 3-4 days? and how?).<br /><br />
There will be a big party Thursday night and all the XNA games will be presented there.
Some information about that can be found on the <a href="http://blogs.msdn.com/xna/">XNA
Team Blog</a>.<br /><br />
My idea was to create one of the most complex game types there is: A multiplayer roleplaying
game. And yes in just 3 days and starting from scratch ^^<br />
It will probably be a little like Zelda, but we are focusing our efforts on creating
one cool looking level and with some enemies and maybe a few quests. Everyone I told
this idea said the same thing you are thinking right now: Impossible. Yeah, I know,
but it is fun anyway to try. Hopefully we will come up with something good looking
till Thursday then.<br /><br />
I will blog every day with screenshots and the daily development process directly
from the GDC and you can see how far we get. My friend Christoph Rienaecker (WAII)
is also coming with me and helping me out modeling the player and enemies as well
as the level so I can focus on programming :-)<br /><br />
If you are also attending the GDC and want to meet with me, drop me an email or write
in the comments. See ya there, or not ^^ but as usual I will make pictures and document
my experiences for all of you who won't attend.<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=7e7c8387-bb44-459e-ad4e-ce315836229a" /></body>
      <title>The GDC (Game Developers Conference) 2007 in San Francisco</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,7e7c8387-bb44-459e-ad4e-ce315836229a.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/02/27/TheGDCGameDevelopersConference2007InSanFrancisco.aspx</link>
      <pubDate>Tue, 27 Feb 2007 16:52:44 GMT</pubDate>
      <description>&lt;img src="http://www.gdconf.com/images/logo_gdconf.gif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img src="http://www.gdconf.com/images/datelocation.gif"&gt;
&lt;br&gt;
&lt;br&gt;
Every year in march the GDC is San Francisco or San Joe and we all are reading the
announcements, papers and articles coming from there. It was always interesting to
read about the stuff going on there (&lt;a href="http://gamedev.net"&gt;gamedev.net&lt;/a&gt; has
a good coverage each year), but I could never attend. The cost of flying over there
and staying there for a week plus the incredible high attendee fees kept me out of
this conference in the past. As you can read on &lt;a href="http://www.exDream.com"&gt;www.exDream.com&lt;/a&gt; we
usually attend the CeBIT here in Hannover instead and go to all the other conferences
and fairs here in Germany ^^&lt;br&gt;
&lt;br&gt;
Anyway, a few weeks ago Microsoft asked me to come to the GDC and be part of one of
their XNA "Dream Team"s. The idea for these teams is to build a game while we are
on the conference in 3-4 days (from Monday to Thursday) and that sounds crazy enough
for me (who the hell wants to make a game in 3-4 days? and how?).&lt;br&gt;
&lt;br&gt;
There will be a big party Thursday night and all the XNA games will be presented there.
Some information about that can be found on the &lt;a href="http://blogs.msdn.com/xna/"&gt;XNA
Team Blog&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
My idea was to create one of the most complex game types there is: A multiplayer roleplaying
game. And yes in just 3 days and starting from scratch ^^&lt;br&gt;
It will probably be a little like Zelda, but we are focusing our efforts on creating
one cool looking level and with some enemies and maybe a few quests. Everyone I told
this idea said the same thing you are thinking right now: Impossible. Yeah, I know,
but it is fun anyway to try. Hopefully we will come up with something good looking
till Thursday then.&lt;br&gt;
&lt;br&gt;
I will blog every day with screenshots and the daily development process directly
from the GDC and you can see how far we get. My friend Christoph Rienaecker (WAII)
is also coming with me and helping me out modeling the player and enemies as well
as the level so I can focus on programming :-)&lt;br&gt;
&lt;br&gt;
If you are also attending the GDC and want to meet with me, drop me an email or write
in the comments. See ya there, or not ^^ but as usual I will make pictures and document
my experiences for all of you who won't attend.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=7e7c8387-bb44-459e-ad4e-ce315836229a" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,7e7c8387-bb44-459e-ad4e-ce315836229a.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=2b9f62ce-fc9c-4696-8f7f-701903f8285b</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,2b9f62ce-fc9c-4696-8f7f-701903f8285b.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,2b9f62ce-fc9c-4696-8f7f-701903f8285b.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=2b9f62ce-fc9c-4696-8f7f-701903f8285b</wfw:commentRss>
      <slash:comments>6</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Don't ask me how I managed to not post
anything this week. My plan was certainly different, but I didn't want to post my
problem with this little project too early. To make up with the lack of blog posts
this year until now this is going to be a very long and hopefully very useful article
:-) 
<p></p><h2>Content
</h2><ul><li><a href="#Downloads">Video, Screenshot and Downloads</a></li><li><a href="#Introduction">Introduction and why Collada?</a></li><li><a href="#ClassOverview">Class Overview</a></li><li><a href="#LoadingCollada">Loading collada files</a></li><li><a href="#AnimationData">Problems with the animation data</a></li><li><a href="#Optimizations1">Optimizing vertices</a></li><li><a href="#Optimizations2">Optimizing the Optimization</a></li><li><a href="#Shaders1">Adjusting the shaders for skinned meshes</a></li><li><a href="#Shaders2">Post screen shaders for the final result</a></li><li><a href="#References">References and Links</a></li></ul><p><br /><a name="Downloads"><h2>Video, Screenshot and Downloads
</h2></a>First of all, here is a video for the project I'm talking about here:<br /><a style="left: 0px ! important; top: 0px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/Oyd18KokT_o"></a><a style="left: 0px ! important; top: 0px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/Oyd18KokT_o"></a><a style="left: 0px ! important; top: 0px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/Oyd18KokT_o"></a><object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/Oyd18KokT_o" /><embed src="http://www.youtube.com/v/Oyd18KokT_o" type="application/x-shockwave-flash" height="350" width="425"></embed></object></p><p>
Screenshot of the same scene (better quality since youtube videos just suck quality
wise):<br /><a href="images/TestGobilnColladaSceneScreenshot0009.jpg"><img src="images/TestGobilnColladaSceneScreenshot0009small.jpg" border="0" /></a></p><p>
Before you start reading this article I suggest you download the executable and source
code first in case you want to try it out directly while reading. The whole project
is based on the RocketCommanderXNA engine and just adds the ColladaModel.cs class,
which does all the amazing stuff you see in the video ;-) The video above shows shadowing
from the XNA Shooter engine, which is not yet released and their fore not included
in the downloads. The rest of the code is the same, just the shadow map rendering
was removed. More details about shadow mapping in XNA can also be found in my book
(plug plug plug ^^).<br /></p><ul><li>
The source code is about 2.6 MB and contains projects for XNA Game Studio Windows
and the Xbox platform, as well as a project for Visual Studio 2005. It was tested
on Windows XP and Vista 32 and 64 bit as well as on the Xbox 360.<br /><a href="SkinningWithColladaModelsInXnaSourceCode.zip">SkinningWithColladaModelsInXnaSourceCode.zip
(2.6 MB)</a></li><li>
The executable contains the output (32 bit Windows, but runs on 64 bit and Vista too)
from the project in case you just want to try it out or do not have <b>XNA Game Studio
Express</b> installed yet. You still need the <b>XNA Framework</b> for this program, <a href="http://www.microsoft.com/downloads/details.aspx?familyid=2E136A1F-F187-478C-9DA5-AAEB0904782B&amp;displaylang=en">download
it here</a>, if you do not have it installed yet! You also need a <b>Shader Model
2.0</b> capable graphic card.<br /><a href="SkinningWithColladaModelsInXnaExecuteable.zip">SkinningWithColladaModelsInXnaExecuteable.zip
(2.5 MB)<br /><br /></a>Update <b>2007-02-26</b>: Fixed time steps, in release mode with more than 200-300
fps the animation was getting too slow. Now works flawless :)<br /></li></ul>
Please note that the 3D Goblin Model was created by my friend Christoph Rienaecker
(WAII) and if you want to use it, please credit him (see Readme.txt). The source code
and collada loading class can be used freely too, but I want some credits too (at
least in the source code ^^). 
<p><br /><a name="Introduction"><h2>Introduction and why Collada?
</h2></a>OK, let's get started. I talked a lot about the XNA Content Pipeline and its problems
on my blog, and in several recent interviews and also in my upcoming XNA book. For
projects like Rocket Commander or even the Racing Game it was sometimes a little bit
annoying, but I could do everything I needed by loading X files and adding some features
to it to fix the tangents, load the correct shader techniques, etc.<br />
However XNA does not support loading animation data or gives you a way to display
them. You have to do all that work by yourself. This includes static mesh animations
(like it was used in Rocket Commander, I just left it out in Rocket Commander XNA),
but also skeletal animation with bones and skinned meshes. 
</p><p>
There is a nice project on CodePlex called <a href="http://www.codeplex.com/animationcomponents">XNA
Animation Component Library</a>, but it only support FBX and ASCII X files (and recently
BVH, ASF and AMC formats) and I could not get any of my test models to work with this
library. The main thing missing here is good shader support and it also has a lot
of problems with complex animated models. Other than that exporting 3D Models as X
files is really a pain in the ass, no matter which exporter you use (<a href="http://www.andytather.co.uk/Panda/directxmax.aspx">Panda
Exporter for 3dsMax</a> was good a year ago, I still use it, now <a href="http://www.mindcontrol.org/%7Ehplus/graphics/kwxport.html">kiloWatt
X file Exporter for 3dsMax</a> is better, and the Microsoft X File Exporter for Max
always sucked). Simple models might work, but the more complex 3D models get and the
more meshes and animation data is stored in a scene, the more problems you will have.
Sometimes it is not possible to reconstruct everything correctly on your importer
side. 
</p><p>
Anyway, at the very beginning of the Racing Game development there was no content
pipeline in XNA (it was Beta 1) and I implemented loading 3D Models with help of the
collada file format, which is basically just XML and very easy to read. For that reason
it was relatively simple to get some 3D data loaded and displayed in the early XNA
versions with help of vertex buffers. There were some problems with shader settings
and I had to try many different exporters and ended up with the one from <a href="http://www.feelingsoftware.com/content/view/16/30/">Feeling
Software</a>. Back then it had still some problems loading shaders and using the correct
techniques, but the recent version (3.0.2) is much better and works like a charm. 
</p><p>
After Microsoft had implemented the content pipeline and made it possible to load
X and FBX files indirectly by going over the content pipeline I had to remove most
of my collada code and re implement the model loading with the new framework. Loading
and displaying 3D models was much simpler this way and especially some early unit
tests were really simple, but as soon I tried shaders and loading tangents there were
a bunch of problems. I reported many bugs back then and it has gotten a lot better,
but I still had to fix several issues in the Racing Game and Rocket Commander XNA
myself like finding out the correct shader technique and fixing tangent data with
help of a custom model processor. 
</p><p>
Some things like the level loading in the Racing Game just do not work with X or FBX
files because they use splines, which are not exported at all in these formats. Collada
came as the rescue again because it is really no big problem for this format. Later
versions of the Racing Game removed the collada level loading and introduced a binary
format for the levels, but the importer still accepts collada files. 
</p><p>
Recently I wanted to test a couple of animated models and use skinning since it can
often be more useful than static animations and it usually looks much better, especially
for organic 3D models. As I said above I could not get anything working with the <a href="http://www.codeplex.com/animationcomponents">XNA
Animation Component Library</a> and I especially do not like the way they still use
the content pipeline and the project is too complicated for me anyway (I just do not
need 6 different file formats, I just want one and it should work perfectly with all
the features I need). 
</p><p>
After some searching I saw some guy called remi from the <a href="https://collada.org/public_forum/">collada
forum</a> was working on importing collada models too and I posted some thoughts there
too (maybe this was a mistake, I got many emails asking me about tips ^^). <a href="https://collada.org/public_forum/viewtopic.php?p=2373&amp;highlight=&amp;sid=f5b56a89076e08d6c4175db5490db4da#2373">Here
is the thread about that in the collada forum</a>. He has provided a test project
with some models and it works nice for static meshes without shader information, but
that was not really what I was searching for. 
</p><p>
This was a month ago and I had not much time working on any of these issues, but after
restarting my blog earlier this week I thought this would be a nice topic to talk
about. I'm still pretty busy with <a href="http://www.ArenaWars.net">Arena Wars Reloaded</a>,
but I worked a couple of hours every day on this little test program for the past
few days. The rest of this article explains the project and into which problems I
ran. 
<br /><a name="ClassOverview"><h2>Class Overview
</h2></a>Before we go into the details here is a little class overview of the project.
As I said before the Rocket Commander XNA engine was used to get up and running with
the project without having to re implement the basics. Most of the classes were already
in place and had not to be changed. ColladaModel and SkinnedTangentVertex are the
2 new classes and to help us out with the XML loading of the collada files the XmlHelper
class was also brought into the project. 
</p><p><a href="images/SkinningInColladaClassOverview.png"><img src="images/SkinningInColladaClassOverviewSmall.png" border="0" /></a></p><p>
I wrote the ColladaModel file from scratch, but I could reuse some of the static mesh
loading code I had done last year. All of the bone and animation loading code was
just try and error and I only used the <a href="http://www.khronos.org/files/collada_spec_1_4">collada
specifications</a> as a source of help, but most stuff had to be tested with the unit
tests at the end of the class many many times. 
</p><p>
The main program just calls the unit tests TestGoblinColladaModelScene or TestShowBones,
there is no real game here, its just a test program. The unit test then calls several
Standard Engine classes for doing all the post screen processing, rendering the ground
plane, etc. More importantly the ColladaModel class itself basically just provides
a constructor and a Render method, everything else is private and will be handled
automatically for you. Most people might ignore this, but this is always the most
important thing about my classes, the use should be as simple as possible and when
I look at the projects mentioned above I really ask myself why people sometimes think
so complicated. 
</p><p>
The internal Bone class inside ColladaModel is used to store all the bones in a flat
list, but each entry has a parent and a list old children bones. This way the list
can be used both in a simple for loop, but you can also go through it recursively
(which is obviously slower and often more complicated). We will talk about the loading
process in a minute. 
</p><p>
All the mesh data is stored in vertices, which is just a list of SkinnedTangentVertex
structs. The SkinnedTangentVertex struct is very much like the standard TangentVertex
struct used in Rocket Commander XNA, but it has 2 new members: blendIndices and blendWeights.
Both are in the form of Vector3 and their fore can hold 3 values allowing us to interpolate
up to 3 bone influences for each vertex in the shader. More is often not required
and we have to re normalize all bone weights anyway, so skipping the least important
bone weights is not a big deal. My test models use mostly max. 2-3 influences. Please
also note that the vertex shader has now a lot more work to do with all that skinning
and you should really optimize it as much as possible. Both the number of vertices
we have to process is important (we will talk about optimizing that in the optimizing
part of this article) and also the number of instructions the vertex shader has, both
numbers should be as low as possible. The GPU is really fast processing this data,
but if you do not have animated geometry with bones, there is no reason to let it
process all that data (which can make the vertex shader 2-3 times longer and slower).
The ground of our test scene does not use a skinning shader as an example. 
</p><p>
And finally there are some additions to the ShaderEffect class. First of all we got
a new shader called "SkinnedNormalMapping", which does the same thing as the normal
mapping (or parallax mapping) shader, but it has an array of 80 bone matrices we can
use for skinning. These matrices are set with help of the SetBoneMatrices method in
the Set Parameter region of ShaderEffect.cs. 
</p><p><br /><a name="LoadingCollada"><h2>Loading collada files
</h2></a></p><p>
Before we go into the details of the loading process, lets make sure we read the summary
of the class first because it clearly states what we can do and can't do with this
class. This is just a test project and I wanted to make things as simple as possible
for both you as the reader and for my requirements. 
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">   ///
&lt;summary&gt;</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">   ///
Collada model. Supports bones and animation for collada (.dae) exported</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">   ///
3D Models from 3D Studio Max (8 or 9).</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">   ///
This class is just for testing and it will only display one single mesh</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">   ///
with bone and skinning support, the mesh also can only have one single</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">   ///
material. Bones can be either in matrix mode or stored with transform</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">   ///
and rotation values. SkinnedTangentVertex is used to store the vertices.</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">   ///
&lt;/summary&gt;</span><br /><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">   class</span> ColladaModel
: IDisposable</span></p><p>
OK, with that said let's go directly into the loading code, which is located in the
constructor of this class. All variables used in these class are just for internal
use, all you need to know are the vertices and bone lists, which I have already mentioned,
and the vertex and index buffers, which are used for rendering. All the rest of the
variables are just there to help us loading the collada file (don't worry, there are
not many variables anyway and most methods are short too). 
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#region</span> Constructor<br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
Create a model from a collada file</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;/summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;param name="setName"&gt;Set name&lt;/param&gt;</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">public</span> ColladaModel(<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">string</span> setName)<br />
    {<br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Set name to identify this model and build the filename</span><br />
        name <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> setName;<br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">string</span> filename <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> Path.Combine(ColladaDirectory,<br />
            StringHelper.ExtractFilename(name, <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">true</span>) <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">+</span><span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"."</span><span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">+</span><br />
            ColladaExtension);<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Load file</span><br />
        Stream file <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> File.OpenRead(filename);<br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">string</span> colladaXml <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> StreamReader(file).ReadToEnd();<br />
        XmlNode colladaFile <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> XmlHelper.LoadXmlFromText(colladaXml);<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Load material (we only support one)</span><br />
        LoadMaterial(colladaFile);<br />
        <br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Load bones</span><br />
        LoadBones(colladaFile);<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Load mesh (vertices data, combine with bone weights)</span><br />
        LoadMesh(colladaFile);<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
And finally load bone animation data</span><br />
        LoadAnimation(colladaFile);<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Close file, we are done.</span><br />
        file.Close();<br />
    } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
ColladaModel(setFilename)</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#endregion</span></span><p><font face="Verdana" size="2">As you can see first of all the filename is constructed
and we just load the file as a text file and throw it to the XmlHelper.LoadXmlFromText
helper method (which just uses the existing XmlDocument functionality to load xml
from a string). We now get the main collada node, which contains all the children
nodes we need for loading the materials, bones, meshes, etc.</font></p><p><font face="Verdana" size="2">Next all the materials are loaded, but we are only going
to use the first one we find because we only support one single mesh anyway. The LoadMaterial
method goes through all used textures and shader effects from the collada file and
constructs the material at the end of the method with help of a new constructor in
the Material class itself. While this is cool and a lot easier than loading material
data from x files, it is not very exciting code, so let's move along.</font></p><p><font face="Verdana" size="2">Even through the bones are located at the end of the
collada file, we have to load them first because all our other loading methods, specifically
LoadMesh and LoadAnimation need the bone tree structure and the overall bone list
to work. All bones are loaded in sequential order because we want to make sure that
we can use the animation matrices later in an easy way without having to check the
parent order all the time. Only this way we can be sure that going through our flat
bones list we still respect the internal tree structure and always initialize the
parents first because the children bones matrices are always multiplied with the parent
bones.</font></p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">foreach</span> (XmlNode
boneNode <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">in</span> boneNodes)<br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (boneNode.Name
== <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"node"</span> &amp;&amp;<br />
            (XmlHelper.GetXmlAttribute(boneNode, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"id"</span>).Contains(<span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"Bone"</span>)
||<br />
            XmlHelper.GetXmlAttribute(boneNode, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"type"</span>).Contains(<span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"JOINT"</span>)))<br />
        {<br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
[...] get matrix</span><br />
            matrix <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> LoadColladaMatrix(...);<br /><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Create this node, use the current number of bones as number.</span><br />
            Bone newBone <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> Bone(matrix,
parentBone, bones.Count,<br />
                XmlHelper.GetXmlAttribute(boneNode, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"sid"</span>));<br /><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Add to our global bones list</span><br />
            bones.Add(newBone);<br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
And to our parent, this way we have a tree and a flat list in</span><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
the bones list :)</span><br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (parentBone
!<span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">null</span>)<br />
                parentBone.children.Add(newBone);<br /><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Create all children (will do nothing if there are no sub bones)</span><br />
            FillBoneNodes(newBone,
boneNode);<br />
        } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
foreach if (boneNode.Name)</span></span></p><p></p></span><a name="AnimationData">As you can see the code uses the XmlHelper class extensively
because otherwise the code would look much uglier and complex. Next we have to load
the mesh itself, this is probably the longest method and not easy to figure out if
you work with collada for the first time. Good thing I had already done that in the
past and I only had to add the code for getting the blend weights and indices.</a> The
following code does load all the weights, which we will use later to fill the blendWeights
and blendIndices members of the SkinnedTangentVertex struct vertices list. The code
for that is actually a little bit more complicated because we have to find out which
weights are the top 3 weights for each vertex in case more than 3 are given.
</p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"><p><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#region</span> Load
weights<br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">float</span>[]
weights <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">null</span>;<br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">foreach</span> (XmlNode
sourceNode <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">in</span> skinNode)<br />
    {<br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Get all inv bone skin matrices</span><br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (sourceNode.Name
== <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"source"</span> &amp;&amp;<br />
            XmlHelper.GetXmlAttribute(sourceNode, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"id"</span>).Contains(<span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"bind_poses"</span>))<br />
        {<br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Get inner float array</span><br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">float</span>[]
mat <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> StringHelper.ConvertStringToFloatArray(<br />
                XmlHelper.GetChildNode(sourceNode, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"float_array"</span>).InnerText);<br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">for</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> boneNum <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> 0;
boneNum &lt; bones.Count; boneNum++)<br />
                <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (mat.Length <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">/</span> 16
&gt; boneNum)<br />
                {<br />
                    bones[boneArrayOrder[boneNum]].invBoneSkinMatrix <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><br />
                        LoadColladaMatrix(mat,
boneNum <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> 16);<br />
                } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
for if</span><br />
        } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
if</span><br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Get all weights</span><br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (sourceNode.Name
== <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"source"</span> &amp;&amp;<br />
            XmlHelper.GetXmlAttribute(sourceNode, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"id"</span>).Contains(<span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"skin-weights"</span>))<br />
        {<br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Get inner float array</span><br />
            weights <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> StringHelper.ConvertStringToFloatArray(<br />
                XmlHelper.GetChildNode(sourceNode, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"float_array"</span>).InnerText);<br />
        } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
if</span><br />
    } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
foreach</span><br /><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (weights
== <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">null</span>)<br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">throw</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> InvalidOperationException(<br />
            <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"No
weights were found in our skin, unable to continue!"</span>);<br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#endregion</span></p><p><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"><font color="#000000"><font face="Verdana" size="2">For
more information about the mesh loading please check out the last region in the LoadMesh
method, it should explain all the important steps in case you want to add something
there or just look how it works.</font></font></span></p></span><p></p><h2>Problems with the animation data
</h2><p>
Getting the animation data was not so easy. First of all I never had done this before
because my collada files for the Racing Game were all just static meshes and I really
did not need any animation there. Everything that is actually animated in the Racing
Game was done directly in XNA, not in 3D Studio.
</p><p>
The first problem is the many formats that animation data can be in. You can have
rotations around any axis or translations and even scalings, but most of your bones
will only use one or two of these if they are animated at all. Alternatively all the
animation data can be computed directly by the exporter plugin in 3D Studio Max and
this way you can make sure that all the animation data is in the correct format. It
makes testing certainly a lot harder and if you don't even know the format the matrices
are in or how to apply them to each other in which order, you are in a world of trouble.
</p><p>
This is exactly what happened to me, I had most of my test models with rotation animation
data only, but the Goblin above from my friend Christoph was done with another technique
and the exporter could only export the matrices, so I had to support that too. After
some try and error I managed to get the basic animations for my test models working.
They are all in the project, feel free to load and test them. To test the bone
animations I used the following unit test:
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#region</span> Unit
Testing<br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Note: Allow calling all this even in release mode (see Program.cs)</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#region</span> TestShowBones<br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
TestShowBones</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;/summary&gt;</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">public</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">static</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">void</span> TestShowBones()<br />
    {<br />
        ColladaModel model <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">null</span>;<br />
        PlaneRenderer groundPlane <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">null</span>;<br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Bone colors for displaying bone lines.</span><br />
        Color[] BoneColors <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> Color[]<br />
            { Color.Blue,
Color.Red, Color.Yellow, Color.White, Color.Teal,<br />
            Color.RosyBrown,
Color.Orange, Color.Olive, Color.Maroon, Color.Lime,<br />
            Color.LightBlue,
Color.LightGreen, Color.Lavender, Color.Green,<br />
            Color.Firebrick,
Color.DarkKhaki, Color.BlueViolet, Color.Beige };<br /><br />
        TestGame.Start(<span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"TestLoadColladaModel"</span>,<br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">delegate</span><br />
            {<br />
                <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Load our goblin here, you can also load one of my test models!</span><br />
                model <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> ColladaModel(<br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//"Goblin");</span><br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//"test_bones_simple_baked");</span><br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//"test_bones_advanced_baked");</span><br />
                    <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"test_man_baked"</span>);<br /><br />
                <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
And load ground plane</span><br />
                groundPlane <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> PlaneRenderer(<br />
                    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> Vector3(0,
0, -0.001f),<br />
                    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> Plane(<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> Vector3(0,
0, 1), 0),<br />
                    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> Material(<br />
                        <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"GroundStone"</span>, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"GroundStoneNormal"</span>, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"GroundStoneHeight"</span>),<br />
                    50);<br />
            },<br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">delegate</span><br />
            {<br />
                <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Show ground</span><br />
                groundPlane.Render(ShaderEffect.parallaxMapping, <span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);">"DiffuseSpecular20"</span>);<br /><br />
                <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Show bones without rendering the model itself</span><br />
                <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (model.bones.Count
== 0)<br />
                    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">return</span>;<br /><br />
                <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Update bone animation.</span><br />
                model.UpdateAnimation(Matrix.Identity);<br /><br />
                <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Show bones (all endpoints)</span><br />
                <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">foreach</span> (Bone
bone <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">in</span> model.bones)<br />
                {<br />
                    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">foreach</span> (Bone
childBone <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">in</span> bone.children)<br />
                        BaseGame.DrawLine(<br />
                            bone.finalMatrix.Translation,<br />
                            childBone.finalMatrix.Translation,<br />
                            BoneColors[bone.num <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">%</span> BoneColors.Length]);<br />
                } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
foreach (bone)</span><br />
            });<br />
    } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
TestShowBones()</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#endregion</span></span></p><p>
The most important call here is the call to UpdateAnimations, which goes through the
list of bones and updates the so called finalMatrix from the Bone class for each of
the bones. In earlier versions this code was horribly complicated and still had a
lot of problems, but as soon as I removed all the rotation, translation, scaling,
etc. animation support and just allow loading the correctly baked matrices from the
collada files, the code has become much simpler (the actual code does have some optimizations
in it, but it is basically the same as the posted code here):
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#region</span> Update
animation<br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
Update animation.</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;/summary&gt;</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">private</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">void</span> UpdateAnimation(Matrix
renderMatrix)<br />
    {<br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> aniMatrixNum <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>)(BaseGame.TotalTime <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> frameRate)) <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">%</span> numOfAnimations;<br /><br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">foreach</span> (Bone
bone <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">in</span> bones)<br />
        {<br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Just assign the final matrix from the animation matrices.</span><br />
            bone.finalMatrix <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> bone.animationMatrices[aniMatrixNum];<br /><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Also use parent matrix if we got one</span><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
This will always work because all the bones are in order.</span><br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (bone.parent
!<span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">null</span>)<br />
                bone.finalMatrix
*=<br />
                    bone.parent.finalMatrix;<br />
        } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
foreach</span><br />
    } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
UpdateAnimation()</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#endregion</span></span></p><p>
For the loading itself we just have to make sure that the animationMatrices are the
correct ones. Collada saves them in a absolute mode. Earlier code from me constructed
relative matrices (relative to the initial bone matrix), it was easier to
construct relative matrices from the rotation, translation, etc. animation data, but
much harder to use these matrices later for the animation. Having these absolute
matrices makes the UpdateAnimation code so much easier, so make sure you always use
them this way.
</p><p>
However, when rendering the vertices later we can't use the absolute matrices because
the vertices have to transformed first to get into a relative space to the bones,
rotations should not be around the origin, but around the bone positions. Luckily
for us (and you should have seen my face when I finally found out that these matrices
already exist in collada and I did not have to create them myself in my own over complicated
way ^^) collada stores the so called invBoneSkin matrices for each bone. By applying
these matrices we can easily get the bone matrices we need for rendering, these are
directly passed to our shader (as compressed 4x3 matrices BTW to save shader constants,
the code for that is a little bit more complex, please check out ShaderEffect.cs and
the SkinnedNormalMapping.fx shader itself for details).
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#region</span> GetBoneMatrices<br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
Get bone matrices for the shader. We have to apply the invBoneSkinMatrix</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
to each final matrix, which is the recursively created matrix from</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
all the animation data (see UpdateAnimation).</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;/summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;returns&gt;&lt;/returns&gt;</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">private</span> Matrix[]
GetBoneMatrices(Matrix renderMatrix)<br />
    {<br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Update the animation data in case it is not up to date anymore.</span><br />
        UpdateAnimation(renderMatrix);<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
And get all bone matrices, we support max. 80 (see shader).</span><br />
        Matrix[] matrices <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> Matrix[Math.Min(80,
bones.Count)];<br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">for</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> num <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> 0;
num &lt; matrices.Length; num++)<br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
The matrices are constructed from the invBoneSkinMatrix and</span><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
the finalMatrix, which holds the recursively added animation matrices</span><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
and finally we add the render matrix too here.</span><br />
            matrices[num] <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><br />
                bones[num].invBoneSkinMatrix <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> bones[num].finalMatrix <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> renderMatrix;<br /><br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">return</span> matrices;<br />
    } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
GetBoneMatrices()</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#endregion</span><br /></span></p><p>
And this is what you finally get after executing the TestShowBones unit test. I had
not implemented mesh loading or the shader itself at this point. I just was loading
and testing the bones itself.
</p><a href="images/TestShowBones_TestMan.jpg"><img src="images/TestShowBones_TestManSmall.jpg" border="0" /></a><p>
 
</p><a name="Optimizations1"><h2>Optimizing the vertices
</h2><p>
One major problem with the loaded mesh is the high vertices count, I had two test
models with 30k and 60k vertices and as you can imagine this will slow down the vertex
shader quite a lot and it is really not necessary to process all these vertices because
many of them are exactly the same. The reason we end up with an unoptimized vertices
list anyway is because collada stores seperate lists for each component we have to
put together at the end of the LoadMesh method. By doing so we have to duplicate the
data many times and we just can't know how often each part is reused and how often
the overall vertex changes. If just the texture coordinate or normal differs, we have
a completely different vertex, which will produce different results in the vertex
shader, so just merging everything together is not that simple.
</p><p>
The rendering uses an index buffer anway, but for the data constructed in LoadMesh
it would just be sequential (0, 1, 2 form the first polygon, 3, 4, 5 the next, etc.).
Instead of having one index for each vertex, we can often reuse the same vertex 3
or 4 times and reducing the number of vertices drastically. This has also the advantage
that we can store much more vertices and complexer meshes even if we still use ushort
(16 bit) for our indices (which is half the size of ints and their fore faster). For
example if you have 150,000 vertices, but you can reduce them to 40-50,000 optimized
vertices, they all can be indexed with ushorts :-)
</p><p>
The easy solution is just to optimize all the vertices after all of them have been
loaded, if you have a binary format and do not use collada directly, this solution
is absolutely great, but it still will take a lot of time processing the collada models
if they just have many vertices because we have to check each vertex against each
other one and that can be a lot of compares if you have 60 or 70 thousand vertices
in a mesh. It actually takes up to a whole minute just to compute that and I have
no slow computer ^^ Here is the method that does all that for us:
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#region</span> OptimizeVertexBufferSlow<br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
Optimize vertex buffer. Note: The vertices list array will be changed</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
and shorted quite a lot here. We are also going to create the indices</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
for the index buffer here (we don't have them yet, they are just</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
sequential from the loading process above).</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">/// </span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
Note: Slow version because we have to check each vertex against</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
each other vertex, which makes this method exponentially slower</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
the more vertices we have. Takes 10 seconds for 30k vertices,</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
and over 40 seconds for 60k vertices. It is much easier to understand,</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
but it produces the same output as the fast OptimizeVertexBuffer</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
method and you should always use that one (it only requires a couple</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
of miliseconds instead of the many seconds this method will spend).</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;/summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;returns&gt;ushort array for the optimized indices&lt;/returns&gt;</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">private</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>[]
OptimizeVertexBufferSlow()<br />
    {<br />
        List&lt;SkinnedTangentVertex&gt; newVertices <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> List&lt;SkinnedTangentVertex&gt;();<br />
        List&lt;<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>&gt;
newIndices <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> List&lt;<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>&gt;();<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Go over all vertices (indices are currently 1:1 with the vertices)</span><br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">for</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> num <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> 0;
num &lt; vertices.Count; num++)<br />
        {<br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Try to find already existing vertex in newVertices list that</span><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
matches the vertex of the current index.</span><br />
            SkinnedTangentVertex
currentVertex <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> vertices[FlipIndexOrder(num)];<br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">bool</span> reusedExistingVertex <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">false</span>;<br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">for</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> checkNum <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> 0;
checkNum &lt; newVertices.Count; checkNum++)<br />
            {<br />
                <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (SkinnedTangentVertex.NearlyEquals(<br />
                    currentVertex,
newVertices[checkNum]))<br />
                {<br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Reuse the existing vertex, don't add it again, just</span><br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
add another index for it!</span><br />
                    newIndices.Add((<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>)checkNum);<br />
                    reusedExistingVertex <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">true</span>;<br />
                    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">break</span>;<br />
                } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
if (TangentVertex.NearlyEquals)</span><br />
            } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
for (checkNum)</span><br /><br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (reusedExistingVertex
== <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">false</span>)<br />
            {<br />
                <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Add the currentVertex and set it as the current index</span><br />
                newIndices.Add((<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>)newVertices.Count);<br />
                newVertices.Add(currentVertex);<br />
            } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
if (reusedExistingVertex)</span><br />
        } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
for (num)</span><br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Reassign the vertices, we might have deleted some duplicates!</span><br />
        vertices <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> newVertices;<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
And return index list for the caller</span><br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">return</span> newIndices.ToArray();<br />
    } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
OptimizeVertexBufferSlow()</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#endregion</span></span></p><p>
 
</p></a><h2>Optimizing the Optimization
</h2><p>
While this is all nice and dandy and we just optimized the rendering code by 20-30%
(I tested with 9 goblins and using 3 passes for them, 2 for shadowing and 1 for the
rendering), but the loading now takes painfully long. The main idea here is to not
compare every single vertex against every other possible vertex because it does not
make much sense, most of the vertices (&gt;99,9%) will always be different. We only
need to check the ones that share at least the same position.
</p><p>
I started with comparing neighboring vertices, but since the vertices are stored in
index order, they are totally messed up, vertex 1 and 4383 can be equal, but if we
just check -10 to +10 we are going to miss it. Instead we have to know which vertices
come from the same position data, which we know since collada saves unique positions.
All we have to do is to keep a list of all vertices that share the same position and
then we can optimize the comparsions later on. Usually only up to 4 to 6 vertices
share the same position, this way the whole comparison process just needs 60,000 *
6 comparisons, not 60,000*60,000 anymore.
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Initialize reuseVertexPositions and reverseReuseVertexPositions</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
to make it easier to use them below</span><br />
    reuseVertexPositions <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>[trianglecount <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> 3];<br />
    reverseReuseVertexPositions <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> List&lt;<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>&gt;[positions.Count <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">/</span> 3];<br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">for</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> i <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> 0;
i &lt; reverseReuseVertexPositions.Length; i++)<br />
        reverseReuseVertexPositions[i] <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> List&lt;<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>&gt;();<br /><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
We have to use int indices here because we often have models</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
with more than 64k triangles (even if that gets optimized later).</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">for</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> i <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> 0;
i &lt; trianglecount <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> 3;
i++)<br />
    {<br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
[...] vertex construction</span></span></p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Remember pos for optimizing the vertices later more easily.</span><br />
        reuseVertexPositions[i] <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> pos <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">/</span> 3;<br />
        reverseReuseVertexPositions[pos <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">/</span> 3].Add(i);<br />
    } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
for (ushort)</span></span></p><p>
And then finally the fast vesion of OptimizeVertexBuffer, which uses that data:
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#region</span> OptimizeVertexBuffer<br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
Optimize vertex buffer. Note: The vertices list array will be changed</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
and shorted quite a lot here. We are also going to create the indices</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
for the index buffer here (we don't have them yet, they are just</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
sequential from the loading process above).</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">/// </span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
Note: This method is highly optimized for speed, it performs</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
hundred of times faster than OptimizeVertexBufferSlow, see below!</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;/summary&gt;</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">///
&lt;returns&gt;ushort array for the optimized indices&lt;/returns&gt;</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">private</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>[]
OptimizeVertexBuffer()<br />
    {<br />
        List&lt;SkinnedTangentVertex&gt; newVertices <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> List&lt;SkinnedTangentVertex&gt;();<br />
        List&lt;<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>&gt;
newIndices <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> List&lt;<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>&gt;();<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Helper to only search already added newVertices and for checking the</span><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
old position indices by transforming them into newVertices indices.</span><br />
        List&lt;<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>&gt;
newVerticesPositions <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">new</span> List&lt;<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>&gt;();<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Go over all vertices (indices are currently 1:1 with the vertices)</span><br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">for</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> num <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> 0;
num &lt; vertices.Count; num++)<br />
        {<br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Get current vertex</span><br />
            SkinnedTangentVertex
currentVertex <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> vertices[num];<br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">bool</span> reusedExistingVertex <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">false</span>;<br /><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Find out which position index was used, then we can compare</span><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
all other vertices that share this position. They will not</span><br />
            <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
all be equal, but some of them can be merged.</span><br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> sharedPos <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> reuseVertexPositions[num];<br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">foreach</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> otherVertexIndex <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">in</span> reverseReuseVertexPositions[sharedPos])<br />
            {<br />
                <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Only check the indices that have already been added!</span><br />
                <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (otherVertexIndex
!<span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> num
&amp;&amp;<br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Make sure we already are that far in our new index list</span><br />
                    otherVertexIndex
&lt; newIndices.Count &amp;&amp;<br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
And make sure this index has been added to newVertices yet!</span><br />
                    newIndices[otherVertexIndex]
&lt; newVertices.Count &amp;&amp;<br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Then finally compare vertices (this call is slow, but thanks to</span><br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
all the other optimizations we don't have to call it that often)</span><br />
                    SkinnedTangentVertex.NearlyEquals(<br />
                    currentVertex,
newVertices[newIndices[otherVertexIndex]]))<br />
                {<br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Reuse the existing vertex, don't add it again, just</span><br />
                    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
add another index for it!</span><br />
                    newIndices.Add((<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>)newIndices[otherVertexIndex]);<br />
                    reusedExistingVertex <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">true</span>;<br />
                    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">break</span>;<br />
                } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
if (TangentVertex.NearlyEquals)</span><br />
            } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
foreach (otherVertexIndex)</span><br /><br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (reusedExistingVertex
== <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">false</span>)<br />
            {<br />
                <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Add the currentVertex and set it as the current index</span><br />
                newIndices.Add((<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span>)newVertices.Count);<br />
                newVertices.Add(currentVertex);<br />
            } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
if (reusedExistingVertex)</span><br />
        } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
for (num)</span><br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Finally flip order of all triangles to allow us rendering</span><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
with CullCounterClockwiseFace (default for XNA) because all the data</span><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
is in CullClockwiseFace format right now!</span><br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">for</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span> num <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> 0;
num &lt; newIndices.Count <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">/</span> 3;
num++)<br />
        {<br />
            <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">ushort</span> swap <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> newIndices[num <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> 3 <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">+</span> 1];<br />
            newIndices[num <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> 3 <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">+</span> 1] <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> newIndices[num <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> 3 <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">+</span> 2];<br />
            newIndices[num <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> 3 <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">+</span> 2] <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> swap;<br />
        } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
for</span><br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Reassign the vertices, we might have deleted some duplicates!</span><br />
        vertices <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> newVertices;<br /><br />
        <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
And return index list for the caller</span><br />
        <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">return</span> newIndices.ToArray();<br />
    } <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
OptimizeVertexBuffer()</span><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">#endregion</span><br /></span></p><p>
With this optimization loading is now pretty fast and rendering performs also nicely
thanks to the quick shaders we will discuss below. When running ANTS Profiler over
the new project the slowest line of code becomes the actual text parsing, actually
the conversion of the long strings for all vertices data into the actual vertices
float data, especially the positions array. But we can't do anything about that without
loading the data binary and not parsing them ourselfs. It takes maybe half a second
for a 50k vertices model to load, not great, but ok for our little test app.<br /></p><p><a name="Shaders1"><h2>Adjusting the shaders for skinned meshes
</h2></a></p><p>
Now we got a bunch of vertices we can render, but as you know we need a shader to
do anything in XNA, there is no fixed function pipeline. There are also no animation
helper classes like in DirectX, but they won't help you anyway if you want to render
with shaders. Transforming the vertices on the CPU may sometimes be a choice if you
do not have many vertices and not many skinned models overall or if they all have
to be updated the same way. But generally it is a much better idea to transform
all the vertices on the GPU, which costs a little bit more instructions in the vertex
shader, but the rest of the rendering stays the same. Most graphic apps are pixel
shader bound anyway and I use fairly complex pixel shaders too. Additionally on Shader
Model 4.0 cards like the GeForce 8800 with up to 128 parallel unified shader
units you can do very complex vertex shaders and use simpler pixel shaders and it
will just use more units for the vertex shaders automatically :) 
</p><p>
We already have defined the bones matrix array for skinning above and we limited it
to 80 bones per mesh, which is quite a lot. Even if you would spend 3 bones per finger
and 20-30 bones for the body you would still have plenty of bones left for complex
animations. Sure modelers will now say "thats not enough sometimes" ... well, you
can always split up the mesh into several meshes with up to 80 bones each if you really
need more. My graphic artists are happy with 80 bones ^^ 
</p><p>
If we want full Shader Model 2.0 support we can only be sure that we got at least
256 shader constants. NVidia has usually more (1024), but you still want your game
to run on ATI cards too, especially older ones. Each constant can hold a float4 and
we need 4 constants for each 4x4 matrix. This means we can only have up to 64 matrices
with this limit and we still need some constants for the world, view, and projection
matrices, the light and material values and anything else we want to do in our shader.
You should reserve 10-20 constants for that and now we are down to less than 60 matrices,
which might sometimes be too little.
</p><p>
Instead of splitting the mesh or providing a different code path in case the GPU can
do more constants (I couldn't get that do work in XNA for some reason, not sure if
there is some limit or if I made a mistake, my GPU should be able to do at least 1024
constants, and even 2048 for the 8800), there is a trick to save only a 3x4 matrix.
The last colum is always 0, 0, 0, 1 if we have correctly applied the invBoneMatrix
and the animation matrix (see GetBoneMatrices in ColladaModel for details and the
order of the matrices). But saving 4 float3 values still needs 4 shader constants
per matrix so we have to save it as 4x3 matrices instead.
</p><p>
My first idea was to grab the .w values and reconstruct the translation part of the
matrix this way. This worked, but the resulting shader had 80 instructions (from abount
20 without skinning), which is not good for the resulting performance when rendering
many skinned 3D models.<br /></p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">float4x4
RebuildSkinMatrix(<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">float</span> index)<br />
{<br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">return</span> float4x4(<br />
        float4(skinnedMatricesVS20[index*3+0].xyz,
0),<br />
        float4(skinnedMatricesVS20[index*3+1].xyz,
0),<br />
        float4(skinnedMatricesVS20[index*3+2].xyz,
0),<br />
        float4(<br />
            skinnedMatricesVS20[index*3+0].w,<br />
            skinnedMatricesVS20[index*3+1].w,<br />
            skinnedMatricesVS20[index*3+2].w,
1));<br />
} <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
RebuildSkinMatrix(.)</span></span></p><p>
A better idea is to use the 4x3 matrix as a 3x4 matrix by just reversing the
order we call mul. This involves some changes to the vertex shader code and looks
a little bit confusing sometimes, but if you make sure you transform the world matrix
the same way and use it in this reversed mul order too, everything works just fine.
Another thing that can be optimized is to pre-multiply the indices of blendIndices
for each vertex at the loading time. These indices never change and they don't really
care if they are 0, 1, 2 or 0, 3, 6, etc. We save one instruction per matrix
we are going to reconstruct (the rest is optimized out by the compiler). This is the
much easier version of RebuildSkinMatrix, for more details take a look at the SkinnedNormalMapping.fx
file:
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Note: This returns a transposed matrix, use it in reversed order.</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
First tests used a 3x3 matrix +3 w values for the transpose values, but</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
reconstructing this in the shader costs 20+ extra instructions and after</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
some testing I found out this is finally the best way to use 4x3 matrices</span><br /><span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
for skinning :)</span><br />
float4x4 RebuildSkinMatrix(<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">float</span> index)<br />
{<br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">return</span> float4x4(<br />
        skinnedMatricesVS20[index+0],<br />
        skinnedMatricesVS20[index+1],<br />
        skinnedMatricesVS20[index+2],<br />
        float4(0, 0, 0, 1));<br />
} <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
RebuildSkinMatrix(.)</span><br /></span></p><p><font color="#000000">This results in a vertex shader that has almost half as many
instructions as before and their fore is twice as fast :) Good work. Performance tests
showed that I could increase the framerate from 220 fps to 270 fps just by doing that
(test scene with 9 goblins). The following code is actually more or less the only
part you have to replace in an existing shader if you want to make it skinnable (plus
providing the helper method and the skinned matrices too of course).</font></p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
First transform position with bones that affect this vertex</span><br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Use the 3 indices and blend weights we have precalculated.</span><br />
    float4x4 skinMatrix <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span><br />
        RebuildSkinMatrix(In.blendIndices.x) <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> In.blendWeights.x <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">+</span><br />
        RebuildSkinMatrix(In.blendIndices.y) <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> In.blendWeights.y <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">+</span><br />
        RebuildSkinMatrix(In.blendIndices.z) <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">*</span> In.blendWeights.z;<br />
    <br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Calculate local world matrix with help of the skinning matrix</span><br />
    float4x4 localWorld <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> mul(world,
skinMatrix);<br />
    <br />
    <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
Now calculate final screen position with world and viewProj matrices.</span><br />
    float4 worldPos <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> mul(localWorld,
float4(In.pos, 1));<br />
    Out.pos <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">=</span> mul(worldPos,
viewProj);</span></p><p><font color="#000000"></font> 
</p><a name="Shaders2"><h2>Post screen shaders for the final result
</h2></a><p>
All the skinning code and bone transformations are nice once you get them done, but
without a cool model and some post screen shaders to make the scene look more cool,
it is only half the fun. Good think I got the Goblin 3D Model, thanks to Christoph
(WAII) again. I also had a couple of other test models and another more complex 3D
Model (big evil monster ^^) which was good for some stress testing, but the material
just did not look that cool. 
</p><p>
As you can see on the following image 6 render targets are used to accomplish the
final image. Most shader passes do several things at once and the list of operations
(see right side of the image) is longer than the list of used passes. Most of
this was just trying to get the best looking values together quickly. If you
are an experienced artist you can probably do much better than me, I'm just playing
around with the shader parameters until I get bored and then I leave it the way it
is. The sceneMap (render target nummero three) shows the unmodified scene without
applying the post screen shaders. It does not look half as cool as the final result.
</p><a href="images/TestGoblinScenePostScreenPasses.jpg"><img src="images/TestGoblinScenePostScreenPassesSmall.jpg" border="0" /></a><p></p><p><a name="References">I hope you enjoyed this article and that you are not as tired
as I am writing this all at once (uff). It was a fun project, I have already another
one in mind for next week ;-) Take care.</a> If you have problems, post a comment.
Please note that not all collada models will work, you have to follow the rules of
ColladaModel or improve the class a bit for other use
</p><p>
 
</p><h2>References and Links
</h2><ul><li><a href="SkinningWithColladaModelsInXnaSourceCode.zip">SkinningWithColladaModelsInXnaSourceCode.zip
(2.6 MB) from this article</a></li><li><a href="SkinningWithColladaModelsInXnaExecuteable.zip">SkinningWithColladaModelsInXnaExecuteable.zip
(2.5 MB) from this article</a></li><li><a href="http://www.codeplex.com/animationcomponents">XNA Animation Component Library</a></li><li><a href="http://www.andytather.co.uk/Panda/directxmax.aspx">Panda Exporter for 3dsMax</a></li><li><a href="http://www.mindcontrol.org/%7Ehplus/graphics/kwxport.html">kiloWatt X file
Exporter for 3dsMax</a></li><li><a href="http://www.khronos.org/collada/">Official Collada site from the Khronos Group</a></li><li><a href="http://www.feelingsoftware.com/content/view/16/30/">Feeling Software Collada
Plugins for 3dsMax and Maya, best exporters ever!</a></li><li><a href="https://collada.org/public_forum/">Public Forum of Collada.org</a></li><li><a href="http://en.wikipedia.org/wiki/COLLADA">Wikipedia on Collada</a></li><li><a href="https://collada.org/public_forum/viewtopic.php?p=2373&amp;highlight=&amp;sid=f5b56a89076e08d6c4175db5490db4da#2373">Collada
Forum post about remi's Collada for XNA project</a></li><li><a href="http://www.khronos.org/files/collada_spec_1_4">COLLADA 1.4.1 Specification
(PDF)</a></li></ul><p>
 
</p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"></span> 
</p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=2b9f62ce-fc9c-4696-8f7f-701903f8285b" /></body>
      <title>Skeletal Bone Animation and Skinning with Collada Models in XNA</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,2b9f62ce-fc9c-4696-8f7f-701903f8285b.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/02/25/SkeletalBoneAnimationAndSkinningWithColladaModelsInXNA.aspx</link>
      <pubDate>Sun, 25 Feb 2007 21:39:45 GMT</pubDate>
      <description>Don't ask me how I managed to not post anything this week. My plan was certainly different, but I didn't want to post my problem with this little project too early. To make up with the lack of blog posts this year until now this is going to be a very long and hopefully very useful article :-) 
&lt;p&gt;
&lt;/p&gt;
&lt;h2&gt;Content
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="#Downloads"&gt;Video, Screenshot and Downloads&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#Introduction"&gt;Introduction and why Collada?&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#ClassOverview"&gt;Class Overview&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#LoadingCollada"&gt;Loading collada files&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#AnimationData"&gt;Problems with the animation data&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#Optimizations1"&gt;Optimizing vertices&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#Optimizations2"&gt;Optimizing the Optimization&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#Shaders1"&gt;Adjusting the shaders for skinned meshes&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#Shaders2"&gt;Post screen shaders for the final result&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="#References"&gt;References and Links&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;br&gt;
&lt;a name="Downloads"&gt; 
&lt;h2&gt;Video, Screenshot and Downloads
&lt;/h2&gt;
&lt;/a&gt;First of all, here is a video for the project I'm talking about here:&lt;br&gt;
&lt;a style="left: 0px ! important; top: 0px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/Oyd18KokT_o"&gt;&lt;/a&gt;&lt;a style="left: 0px ! important; top: 0px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/Oyd18KokT_o"&gt;&lt;/a&gt;&lt;a style="left: 0px ! important; top: 0px ! important;" class="abp-objtab visible ontop" href="http://www.youtube.com/v/Oyd18KokT_o"&gt;&lt;/a&gt;
&lt;object height="350" width="425"&gt;
&lt;param name="movie" value="http://www.youtube.com/v/Oyd18KokT_o"&gt;
&lt;embed src="http://www.youtube.com/v/Oyd18KokT_o" type="application/x-shockwave-flash" height="350" width="425"&gt;
&lt;/object&gt;
&lt;/p&gt;
&lt;p&gt;
Screenshot of the same scene (better quality since youtube videos just suck quality
wise):&lt;br&gt;
&lt;a href="images/TestGobilnColladaSceneScreenshot0009.jpg"&gt;&lt;img src="images/TestGobilnColladaSceneScreenshot0009small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Before you start reading this article I suggest you download the executable and source
code first in case you want to try it out directly while reading. The whole project
is based on the RocketCommanderXNA engine and just adds the ColladaModel.cs class,
which does all the amazing stuff you see in the video ;-) The video above shows shadowing
from the XNA Shooter engine, which is not yet released and their fore not included
in the downloads. The rest of the code is the same, just the shadow map rendering
was removed. More details about shadow mapping in XNA can also be found in my book
(plug plug plug ^^).&lt;br&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
The source code is about 2.6 MB and contains projects for XNA Game Studio Windows
and the Xbox platform, as well as a project for Visual Studio 2005. It was tested
on Windows XP and Vista 32 and 64 bit as well as on the Xbox 360.&lt;br&gt;
&lt;a href="SkinningWithColladaModelsInXnaSourceCode.zip"&gt;SkinningWithColladaModelsInXnaSourceCode.zip
(2.6 MB)&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
The executable contains the output (32 bit Windows, but runs on 64 bit and Vista too)
from the project in case you just want to try it out or do not have &lt;b&gt;XNA Game Studio
Express&lt;/b&gt; installed yet. You still need the &lt;b&gt;XNA Framework&lt;/b&gt; for this program, &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=2E136A1F-F187-478C-9DA5-AAEB0904782B&amp;amp;displaylang=en"&gt;download
it here&lt;/a&gt;, if you do not have it installed yet! You also need a &lt;b&gt;Shader Model
2.0&lt;/b&gt; capable graphic card.&lt;br&gt;
&lt;a href="SkinningWithColladaModelsInXnaExecuteable.zip"&gt;SkinningWithColladaModelsInXnaExecuteable.zip
(2.5 MB)&lt;br&gt;
&lt;br&gt;
&lt;/a&gt;Update &lt;b&gt;2007-02-26&lt;/b&gt;: Fixed time steps, in release mode with more than 200-300
fps the animation was getting too slow. Now works flawless :)&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
Please note that the 3D Goblin Model was created by my friend Christoph Rienaecker
(WAII) and if you want to use it, please credit him (see Readme.txt). The source code
and collada loading class can be used freely too, but I want some credits too (at
least in the source code ^^). 
&lt;p&gt;
&lt;br&gt;
&lt;a name="Introduction"&gt; 
&lt;h2&gt;Introduction and why Collada?
&lt;/h2&gt;
&lt;/a&gt;OK, let's get started. I talked a lot about the XNA Content Pipeline and its problems
on my blog, and in several recent interviews and also in my upcoming XNA book. For
projects like Rocket Commander or even the Racing Game it was sometimes a little bit
annoying, but I could do everything I needed by loading X files and adding some features
to it to fix the tangents, load the correct shader techniques, etc.&lt;br&gt;
However XNA does not support loading animation data or gives you a way to display
them. You have to do all that work by yourself. This includes static mesh animations
(like it was used in Rocket Commander, I just left it out in Rocket Commander XNA),
but also skeletal animation with bones and skinned meshes. 
&lt;/p&gt;
&lt;p&gt;
There is a nice project on CodePlex called &lt;a href="http://www.codeplex.com/animationcomponents"&gt;XNA
Animation Component Library&lt;/a&gt;, but it only support FBX and ASCII X files (and recently
BVH, ASF and AMC formats) and I could not get any of my test models to work with this
library. The main thing missing here is good shader support and it also has a lot
of problems with complex animated models. Other than that exporting 3D Models as X
files is really a pain in the ass, no matter which exporter you use (&lt;a href="http://www.andytather.co.uk/Panda/directxmax.aspx"&gt;Panda
Exporter for 3dsMax&lt;/a&gt; was good a year ago, I still use it, now &lt;a href="http://www.mindcontrol.org/%7Ehplus/graphics/kwxport.html"&gt;kiloWatt
X file Exporter for 3dsMax&lt;/a&gt; is better, and the Microsoft X File Exporter for Max
always sucked). Simple models might work, but the more complex 3D models get and the
more meshes and animation data is stored in a scene, the more problems you will have.
Sometimes it is not possible to reconstruct everything correctly on your importer
side. 
&lt;/p&gt;
&lt;p&gt;
Anyway, at the very beginning of the Racing Game development there was no content
pipeline in XNA (it was Beta 1) and I implemented loading 3D Models with help of the
collada file format, which is basically just XML and very easy to read. For that reason
it was relatively simple to get some 3D data loaded and displayed in the early XNA
versions with help of vertex buffers. There were some problems with shader settings
and I had to try many different exporters and ended up with the one from &lt;a href="http://www.feelingsoftware.com/content/view/16/30/"&gt;Feeling
Software&lt;/a&gt;. Back then it had still some problems loading shaders and using the correct
techniques, but the recent version (3.0.2) is much better and works like a charm. 
&lt;/p&gt;
&lt;p&gt;
After Microsoft had implemented the content pipeline and made it possible to load
X and FBX files indirectly by going over the content pipeline I had to remove most
of my collada code and re implement the model loading with the new framework. Loading
and displaying 3D models was much simpler this way and especially some early unit
tests were really simple, but as soon I tried shaders and loading tangents there were
a bunch of problems. I reported many bugs back then and it has gotten a lot better,
but I still had to fix several issues in the Racing Game and Rocket Commander XNA
myself like finding out the correct shader technique and fixing tangent data with
help of a custom model processor. 
&lt;/p&gt;
&lt;p&gt;
Some things like the level loading in the Racing Game just do not work with X or FBX
files because they use splines, which are not exported at all in these formats. Collada
came as the rescue again because it is really no big problem for this format. Later
versions of the Racing Game removed the collada level loading and introduced a binary
format for the levels, but the importer still accepts collada files. 
&lt;/p&gt;
&lt;p&gt;
Recently I wanted to test a couple of animated models and use skinning since it can
often be more useful than static animations and it usually looks much better, especially
for organic 3D models. As I said above I could not get anything working with the &lt;a href="http://www.codeplex.com/animationcomponents"&gt;XNA
Animation Component Library&lt;/a&gt; and I especially do not like the way they still use
the content pipeline and the project is too complicated for me anyway (I just do not
need 6 different file formats, I just want one and it should work perfectly with all
the features I need). 
&lt;/p&gt;
&lt;p&gt;
After some searching I saw some guy called remi from the &lt;a href="https://collada.org/public_forum/"&gt;collada
forum&lt;/a&gt; was working on importing collada models too and I posted some thoughts there
too (maybe this was a mistake, I got many emails asking me about tips ^^). &lt;a href="https://collada.org/public_forum/viewtopic.php?p=2373&amp;amp;highlight=&amp;amp;sid=f5b56a89076e08d6c4175db5490db4da#2373"&gt;Here
is the thread about that in the collada forum&lt;/a&gt;. He has provided a test project
with some models and it works nice for static meshes without shader information, but
that was not really what I was searching for. 
&lt;/p&gt;
&lt;p&gt;
This was a month ago and I had not much time working on any of these issues, but after
restarting my blog earlier this week I thought this would be a nice topic to talk
about. I'm still pretty busy with &lt;a href="http://www.ArenaWars.net"&gt;Arena Wars Reloaded&lt;/a&gt;,
but I worked a couple of hours every day on this little test program for the past
few days. The rest of this article explains the project and into which problems I
ran. 
&lt;br&gt;
&lt;a name="ClassOverview"&gt; 
&lt;h2&gt;Class Overview
&lt;/h2&gt;
&lt;/a&gt;Before we go into the details here is a little class overview of the project.
As I said before the Rocket Commander XNA engine was used to get up and running with
the project without having to re implement the basics. Most of the classes were already
in place and had not to be changed. ColladaModel and SkinnedTangentVertex are the
2 new classes and to help us out with the XML loading of the collada files the XmlHelper
class was also brought into the project. 
&lt;/p&gt;
&lt;p&gt;
&lt;a href="images/SkinningInColladaClassOverview.png"&gt;&lt;img src="images/SkinningInColladaClassOverviewSmall.png" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
I wrote the ColladaModel file from scratch, but I could reuse some of the static mesh
loading code I had done last year. All of the bone and animation loading code was
just try and error and I only used the &lt;a href="http://www.khronos.org/files/collada_spec_1_4"&gt;collada
specifications&lt;/a&gt; as a source of help, but most stuff had to be tested with the unit
tests at the end of the class many many times. 
&lt;/p&gt;
&lt;p&gt;
The main program just calls the unit tests TestGoblinColladaModelScene or TestShowBones,
there is no real game here, its just a test program. The unit test then calls several
Standard Engine classes for doing all the post screen processing, rendering the ground
plane, etc. More importantly the ColladaModel class itself basically just provides
a constructor and a Render method, everything else is private and will be handled
automatically for you. Most people might ignore this, but this is always the most
important thing about my classes, the use should be as simple as possible and when
I look at the projects mentioned above I really ask myself why people sometimes think
so complicated. 
&lt;/p&gt;
&lt;p&gt;
The internal Bone class inside ColladaModel is used to store all the bones in a flat
list, but each entry has a parent and a list old children bones. This way the list
can be used both in a simple for loop, but you can also go through it recursively
(which is obviously slower and often more complicated). We will talk about the loading
process in a minute. 
&lt;/p&gt;
&lt;p&gt;
All the mesh data is stored in vertices, which is just a list of SkinnedTangentVertex
structs. The SkinnedTangentVertex struct is very much like the standard TangentVertex
struct used in Rocket Commander XNA, but it has 2 new members: blendIndices and blendWeights.
Both are in the form of Vector3 and their fore can hold 3 values allowing us to interpolate
up to 3 bone influences for each vertex in the shader. More is often not required
and we have to re normalize all bone weights anyway, so skipping the least important
bone weights is not a big deal. My test models use mostly max. 2-3 influences. Please
also note that the vertex shader has now a lot more work to do with all that skinning
and you should really optimize it as much as possible. Both the number of vertices
we have to process is important (we will talk about optimizing that in the optimizing
part of this article) and also the number of instructions the vertex shader has, both
numbers should be as low as possible. The GPU is really fast processing this data,
but if you do not have animated geometry with bones, there is no reason to let it
process all that data (which can make the vertex shader 2-3 times longer and slower).
The ground of our test scene does not use a skinning shader as an example. 
&lt;/p&gt;
&lt;p&gt;
And finally there are some additions to the ShaderEffect class. First of all we got
a new shader called "SkinnedNormalMapping", which does the same thing as the normal
mapping (or parallax mapping) shader, but it has an array of 80 bone matrices we can
use for skinning. These matrices are set with help of the SetBoneMatrices method in
the Set Parameter region of ShaderEffect.cs. 
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;a name="LoadingCollada"&gt; 
&lt;h2&gt;Loading collada files
&lt;/h2&gt;
&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Before we go into the details of the loading process, lets make sure we read the summary
of the class first because it clearly states what we can do and can't do with this
class. This is just a test project and I wanted to make things as simple as possible
for both you as the reader and for my requirements. 
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;///
&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;///
Collada model. Supports bones and animation for collada (.dae) exported&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;///
3D Models from 3D Studio Max (8 or 9).&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;///
This class is just for testing and it will only display one single mesh&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;///
with bone and skinning support, the mesh also can only have one single&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;///
material. Bones can be either in matrix mode or stored with transform&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;///
and rotation values. SkinnedTangentVertex is used to store the vertices.&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;///
&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;class&lt;/span&gt; ColladaModel
: IDisposable&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
OK, with that said let's go directly into the loading code, which is located in the
constructor of this class. All variables used in these class are just for internal
use, all you need to know are the vertices and bone lists, which I have already mentioned,
and the vertex and index buffers, which are used for rendering. All the rest of the
variables are just there to help us loading the collada file (don't worry, there are
not many variables anyway and most methods are short too). 
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#region&lt;/span&gt; Constructor&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
Create a model from a collada file&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;param name="setName"&amp;gt;Set name&amp;lt;/param&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;public&lt;/span&gt; ColladaModel(&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;string&lt;/span&gt; setName)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Set name to identify this model and build the filename&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; setName;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;string&lt;/span&gt; filename &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; Path.Combine(ColladaDirectory,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;StringHelper.ExtractFilename(name, &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;true&lt;/span&gt;) &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;+&lt;/span&gt; &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"."&lt;/span&gt; &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;+&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ColladaExtension);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Load file&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Stream file &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; File.OpenRead(filename);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;string&lt;/span&gt; colladaXml &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; StreamReader(file).ReadToEnd();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XmlNode colladaFile &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; XmlHelper.LoadXmlFromText(colladaXml);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Load material (we only support one)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LoadMaterial(colladaFile);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Load bones&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LoadBones(colladaFile);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Load mesh (vertices data, combine with bone weights)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LoadMesh(colladaFile);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
And finally load bone animation data&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LoadAnimation(colladaFile);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Close file, we are done.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;file.Close();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
ColladaModel(setFilename)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#endregion&lt;/span&gt;&lt;/span&gt; 
&lt;p&gt;
&lt;font face="Verdana" size="2"&gt;As you can see first of all the filename is constructed
and we just load the file as a text file and throw it to the XmlHelper.LoadXmlFromText
helper method (which just uses the existing XmlDocument functionality to load xml
from a string). We now get the main collada node, which contains all the children
nodes we need for loading the materials, bones, meshes, etc.&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Verdana" size="2"&gt;Next all the materials are loaded, but we are only going
to use the first one we find because we only support one single mesh anyway. The LoadMaterial
method goes through all used textures and shader effects from the collada file and
constructs the material at the end of the method with help of a new constructor in
the Material class itself. While this is cool and a lot easier than loading material
data from x files, it is not very exciting code, so let's move along.&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Verdana" size="2"&gt;Even through the bones are located at the end of the
collada file, we have to load them first because all our other loading methods, specifically
LoadMesh and LoadAnimation need the bone tree structure and the overall bone list
to work. All bones are loaded in sequential order because we want to make sure that
we can use the animation matrices later in an easy way without having to check the
parent order all the time. Only this way we can be sure that going through our flat
bones list we still respect the internal tree structure and always initialize the
parents first because the children bones matrices are always multiplied with the parent
bones.&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;foreach&lt;/span&gt; (XmlNode
boneNode &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;in&lt;/span&gt; boneNodes)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (boneNode.Name
== &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"node"&lt;/span&gt; &amp;amp;&amp;amp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(XmlHelper.GetXmlAttribute(boneNode, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"id"&lt;/span&gt;).Contains(&lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"Bone"&lt;/span&gt;)
||&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XmlHelper.GetXmlAttribute(boneNode, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"type"&lt;/span&gt;).Contains(&lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"JOINT"&lt;/span&gt;)))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
[...] get matrix&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matrix &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; LoadColladaMatrix(...);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Create this node, use the current number of bones as number.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bone newBone &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; Bone(matrix,
parentBone, bones.Count,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XmlHelper.GetXmlAttribute(boneNode, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"sid"&lt;/span&gt;));&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Add to our global bones list&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bones.Add(newBone);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
And to our parent, this way we have a tree and a flat list in&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
the bones list :)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (parentBone
!&lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;null&lt;/span&gt;)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parentBone.children.Add(newBone);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Create all children (will do nothing if there are no sub bones)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FillBoneNodes(newBone,
boneNode);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
foreach if (boneNode.Name)&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/span&gt;&lt;a name="AnimationData"&gt;As you can see the code uses the XmlHelper class extensively
because otherwise the code would look much uglier and complex. Next we have to load
the mesh itself, this is probably the longest method and not easy to figure out if
you work with collada for the first time. Good thing I had already done that in the
past and I only had to add the code for getting the blend weights and indices.&lt;/a&gt;&amp;nbsp;The
following code does load all the weights, which we will use later to fill the blendWeights
and blendIndices members of the SkinnedTangentVertex struct vertices list. The code
for that is actually a little bit more complicated because we have to find out which
weights are the top 3 weights for each vertex in case more than 3 are given.
&lt;/p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt; 
&lt;p&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#region&lt;/span&gt; Load
weights&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;float&lt;/span&gt;[]
weights &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;null&lt;/span&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;foreach&lt;/span&gt; (XmlNode
sourceNode &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;in&lt;/span&gt; skinNode)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Get all inv bone skin matrices&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (sourceNode.Name
== &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"source"&lt;/span&gt; &amp;amp;&amp;amp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XmlHelper.GetXmlAttribute(sourceNode, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"id"&lt;/span&gt;).Contains(&lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"bind_poses"&lt;/span&gt;))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Get inner float array&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;float&lt;/span&gt;[]
mat &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; StringHelper.ConvertStringToFloatArray(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XmlHelper.GetChildNode(sourceNode, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"float_array"&lt;/span&gt;).InnerText);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;for&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; boneNum &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; 0;
boneNum &amp;lt; bones.Count; boneNum++)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (mat.Length &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;/&lt;/span&gt; 16
&amp;gt; boneNum)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bones[boneArrayOrder[boneNum]].invBoneSkinMatrix &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LoadColladaMatrix(mat,
boneNum &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; 16);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
for if&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
if&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Get all weights&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (sourceNode.Name
== &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"source"&lt;/span&gt; &amp;amp;&amp;amp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XmlHelper.GetXmlAttribute(sourceNode, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"id"&lt;/span&gt;).Contains(&lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"skin-weights"&lt;/span&gt;))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Get inner float array&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;weights &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; StringHelper.ConvertStringToFloatArray(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XmlHelper.GetChildNode(sourceNode, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"float_array"&lt;/span&gt;).InnerText);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
if&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
foreach&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (weights
== &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;null&lt;/span&gt;)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;throw&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; InvalidOperationException(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"No
weights were found in our skin, unable to continue!"&lt;/span&gt;);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#endregion&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;&lt;font color="#000000"&gt;&lt;font face="Verdana" size="2"&gt;For
more information about the mesh loading please check out the last region in the LoadMesh
method, it should explain all the important steps in case you want to add something
there or just look how it works.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;h2&gt;Problems with the animation data
&lt;/h2&gt;
&lt;p&gt;
Getting the animation data was not so easy. First of all I never had done this before
because my collada files for the Racing Game were all just static meshes and I really
did not need any animation there. Everything that is actually animated in the Racing
Game was done directly in XNA,&amp;nbsp;not in 3D Studio.
&lt;/p&gt;
&lt;p&gt;
The first problem is the many formats that animation data can be in. You can have
rotations around any axis or translations and even scalings, but most of your bones
will only use one or two of these if they are animated at all. Alternatively all the
animation data can be computed directly by the exporter plugin in 3D Studio Max and
this way you can make sure that all the animation data is in the correct format. It
makes testing certainly a lot harder and if you don't even know the format the matrices
are in or how to apply them to each other in which order, you are in a world of trouble.
&lt;/p&gt;
&lt;p&gt;
This is exactly what happened to me, I had most of my test models with rotation animation
data only, but the Goblin above from my friend Christoph was done with another technique
and the exporter could only export the matrices, so I had to support that too. After
some try and error I managed to get the basic animations for my test models working.
They are all in the project, feel free to load and test&amp;nbsp;them. To test the bone
animations I used the following unit test:
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#region&lt;/span&gt; Unit
Testing&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Note: Allow calling all this even in release mode (see Program.cs)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#region&lt;/span&gt; TestShowBones&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
TestShowBones&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;public&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;static&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;void&lt;/span&gt; TestShowBones()&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ColladaModel model &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;null&lt;/span&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PlaneRenderer groundPlane &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;null&lt;/span&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Bone colors for displaying bone lines.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Color[] BoneColors &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; Color[]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ Color.Blue,
Color.Red, Color.Yellow, Color.White, Color.Teal,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Color.RosyBrown,
Color.Orange, Color.Olive, Color.Maroon, Color.Lime,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Color.LightBlue,
Color.LightGreen, Color.Lavender, Color.Green,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Color.Firebrick,
Color.DarkKhaki, Color.BlueViolet, Color.Beige };&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TestGame.Start(&lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"TestLoadColladaModel"&lt;/span&gt;,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;delegate&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Load our goblin here, you can also load one of my test models!&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;model &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; ColladaModel(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//"Goblin");&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//"test_bones_simple_baked");&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//"test_bones_advanced_baked");&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"test_man_baked"&lt;/span&gt;);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
And load ground plane&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;groundPlane &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; PlaneRenderer(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; Vector3(0,
0, -0.001f),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; Plane(&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; Vector3(0,
0, 1), 0),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; Material(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"GroundStone"&lt;/span&gt;, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"GroundStoneNormal"&lt;/span&gt;, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"GroundStoneHeight"&lt;/span&gt;),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;50);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;delegate&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Show ground&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;groundPlane.Render(ShaderEffect.parallaxMapping, &lt;span style="font-size: 11px; color: rgb(102, 102, 102); font-family: Courier New; background-color: rgb(228, 228, 228);"&gt;"DiffuseSpecular20"&lt;/span&gt;);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Show bones without rendering the model itself&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (model.bones.Count
== 0)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;return&lt;/span&gt;;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Update bone animation.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;model.UpdateAnimation(Matrix.Identity);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Show bones (all endpoints)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;foreach&lt;/span&gt; (Bone
bone &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;in&lt;/span&gt; model.bones)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;foreach&lt;/span&gt; (Bone
childBone &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;in&lt;/span&gt; bone.children)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BaseGame.DrawLine(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bone.finalMatrix.Translation,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;childBone.finalMatrix.Translation,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BoneColors[bone.num &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;%&lt;/span&gt; BoneColors.Length]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
foreach (bone)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
TestShowBones()&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#endregion&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
The most important call here is the call to UpdateAnimations, which goes through the
list of bones and updates the so called finalMatrix from the Bone class for each of
the bones. In earlier versions this code was horribly complicated and still had a
lot of problems, but as soon as I removed all the rotation, translation, scaling,
etc. animation support and just allow loading the correctly baked matrices from the
collada files, the code has become much simpler (the actual code does have some optimizations
in it, but it is basically the same as the posted code here):
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#region&lt;/span&gt; Update
animation&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
Update animation.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;private&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;void&lt;/span&gt; UpdateAnimation(Matrix
renderMatrix)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; aniMatrixNum &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt;)(BaseGame.TotalTime &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; frameRate)) &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;%&lt;/span&gt; numOfAnimations;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;foreach&lt;/span&gt; (Bone
bone &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;in&lt;/span&gt; bones)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Just assign the final matrix from the animation matrices.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bone.finalMatrix &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; bone.animationMatrices[aniMatrixNum];&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Also use parent matrix if we got one&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
This will always work because all the bones are in order.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (bone.parent
!&lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;null&lt;/span&gt;)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bone.finalMatrix
*=&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bone.parent.finalMatrix;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
foreach&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
UpdateAnimation()&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#endregion&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
For the loading itself we just have to make sure that the animationMatrices are the
correct ones. Collada saves them in a absolute mode. Earlier code from me constructed
relative matrices (relative&amp;nbsp;to the initial bone matrix),&amp;nbsp;it was easier to
construct relative matrices from the rotation, translation, etc. animation data, but
much harder to use these matrices later for the animation. Having&amp;nbsp;these absolute
matrices makes the UpdateAnimation code so much easier, so make sure you always use
them this way.
&lt;/p&gt;
&lt;p&gt;
However, when rendering the vertices later we can't use the absolute matrices because
the vertices have to transformed first to get into a relative space to the bones,
rotations should not be around the origin, but around the bone positions. Luckily
for us (and you should have seen my face when I finally found out that these matrices
already exist in collada and I did not have to create them myself in my own over complicated
way ^^) collada stores the so called invBoneSkin matrices for each bone. By applying
these matrices we can easily get the bone matrices we need for rendering, these are
directly passed to our shader (as compressed 4x3 matrices BTW to save shader constants,
the code for that is a little bit more complex, please check out ShaderEffect.cs and
the SkinnedNormalMapping.fx shader itself for details).
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#region&lt;/span&gt; GetBoneMatrices&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
Get bone matrices for the shader. We have to apply the invBoneSkinMatrix&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
to each final matrix, which is the recursively created matrix from&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
all the animation data (see UpdateAnimation).&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;private&lt;/span&gt; Matrix[]
GetBoneMatrices(Matrix renderMatrix)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Update the animation data in case it is not up to date anymore.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UpdateAnimation(renderMatrix);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
And get all bone matrices, we support max. 80 (see shader).&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Matrix[] matrices &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; Matrix[Math.Min(80,
bones.Count)];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;for&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; num &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; 0;
num &amp;lt; matrices.Length; num++)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
The matrices are constructed from the invBoneSkinMatrix and&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
the finalMatrix, which holds the recursively added animation matrices&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
and finally we add the render matrix too here.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matrices[num] &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bones[num].invBoneSkinMatrix &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; bones[num].finalMatrix &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; renderMatrix;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;return&lt;/span&gt; matrices;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
GetBoneMatrices()&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#endregion&lt;/span&gt;
&lt;br&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
And this is what you finally get after executing the TestShowBones unit test. I had
not implemented mesh loading or the shader itself at this point. I just was loading
and testing the bones itself.
&lt;/p&gt;
&lt;a href="images/TestShowBones_TestMan.jpg"&gt;&lt;img src="images/TestShowBones_TestManSmall.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;a name="Optimizations1"&gt; 
&lt;h2&gt;Optimizing the vertices
&lt;/h2&gt;
&lt;p&gt;
One major problem with the loaded mesh is the high vertices count, I had two test
models with 30k and 60k vertices and as you can imagine this will slow down the vertex
shader quite a lot and it is really not necessary to process all these vertices because
many of them are exactly the same. The reason we end up with an unoptimized vertices
list anyway is because collada stores seperate lists for each component we have to
put together at the end of the LoadMesh method. By doing so we have to duplicate the
data many times and we just can't know how often each part is reused and how often
the overall vertex changes. If just the texture coordinate or normal differs, we have
a completely different vertex, which will produce different results in the vertex
shader, so just merging everything together is not that simple.
&lt;/p&gt;
&lt;p&gt;
The rendering uses an index buffer anway, but for the data constructed in LoadMesh
it would just be sequential (0, 1, 2 form the first polygon, 3, 4, 5 the next, etc.).
Instead of having one index for each vertex, we can often reuse the same vertex 3
or 4 times and reducing the number of vertices drastically. This has also the advantage
that we can store much more vertices and complexer meshes even if we still use ushort
(16 bit) for our indices (which is half the size of ints and their fore faster). For
example if you have 150,000 vertices, but you can reduce them to 40-50,000 optimized
vertices, they all can be indexed with ushorts :-)
&lt;/p&gt;
&lt;p&gt;
The easy solution is just to optimize all the vertices after all of them have been
loaded, if you have a binary format and do not use collada directly, this solution
is absolutely great, but it still will take a lot of time processing the collada models
if they just have many vertices because we have to check each vertex against each
other one and that can be a lot of compares if you have 60 or 70 thousand vertices
in a mesh. It actually takes up to a whole minute just to compute that and I have
no slow computer ^^ Here is the method that does all that for us:
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#region&lt;/span&gt; OptimizeVertexBufferSlow&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
Optimize vertex buffer. Note: The vertices list array will be changed&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
and shorted quite a lot here. We are also going to create the indices&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
for the index buffer here (we don't have them yet, they are just&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
sequential from the loading process above).&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;/// &lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
Note: Slow version because we have to check each vertex against&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
each other vertex, which makes this method exponentially slower&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
the more vertices we have. Takes 10 seconds for 30k vertices,&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
and over 40 seconds for 60k vertices. It is much easier to understand,&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
but it produces the same output as the fast OptimizeVertexBuffer&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
method and you should always use that one (it only requires a couple&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
of miliseconds instead of the many seconds this method will spend).&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;returns&amp;gt;ushort array for the optimized indices&amp;lt;/returns&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;private&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;[]
OptimizeVertexBufferSlow()&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;SkinnedTangentVertex&amp;gt; newVertices &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; List&amp;lt;SkinnedTangentVertex&amp;gt;();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;&amp;gt;
newIndices &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; List&amp;lt;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;&amp;gt;();&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Go over all vertices (indices are currently 1:1 with the vertices)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;for&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; num &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; 0;
num &amp;lt; vertices.Count; num++)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Try to find already existing vertex in newVertices list that&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
matches the vertex of the current index.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SkinnedTangentVertex
currentVertex &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; vertices[FlipIndexOrder(num)];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;bool&lt;/span&gt; reusedExistingVertex &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;false&lt;/span&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;for&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; checkNum &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; 0;
checkNum &amp;lt; newVertices.Count; checkNum++)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (SkinnedTangentVertex.NearlyEquals(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;currentVertex,
newVertices[checkNum]))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Reuse the existing vertex, don't add it again, just&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
add another index for it!&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newIndices.Add((&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;)checkNum);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reusedExistingVertex &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;true&lt;/span&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;break&lt;/span&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
if (TangentVertex.NearlyEquals)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
for (checkNum)&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (reusedExistingVertex
== &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;false&lt;/span&gt;)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Add the currentVertex and set it as the current index&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newIndices.Add((&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;)newVertices.Count);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newVertices.Add(currentVertex);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
if (reusedExistingVertex)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
for (num)&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Reassign the vertices, we might have deleted some duplicates!&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vertices &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; newVertices;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
And return index list for the caller&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;return&lt;/span&gt; newIndices.ToArray();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
OptimizeVertexBufferSlow()&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#endregion&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;/a&gt; 
&lt;h2&gt;Optimizing the Optimization
&lt;/h2&gt;
&lt;p&gt;
While this is all nice and dandy and we just optimized the rendering code by 20-30%
(I tested with 9 goblins and using 3 passes for them, 2 for shadowing and 1 for the
rendering), but the loading now takes painfully long. The main idea here is to not
compare every single vertex against every other possible vertex because it does not
make much sense, most of the vertices (&amp;gt;99,9%) will always be different. We only
need to check the ones that share at least the same position.
&lt;/p&gt;
&lt;p&gt;
I started with comparing neighboring vertices, but since the vertices are stored in
index order, they are totally messed up, vertex 1 and 4383 can be equal, but if we
just check -10 to +10 we are going to miss it. Instead we have to know which vertices
come from the same position data, which we know since collada saves unique positions.
All we have to do is to keep a list of all vertices that share the same position and
then we can optimize the comparsions later on. Usually only up to 4 to 6&amp;nbsp;vertices
share the same position, this way the whole comparison process just needs 60,000 *
6 comparisons, not 60,000*60,000 anymore.
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Initialize reuseVertexPositions and reverseReuseVertexPositions&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
to make it easier to use them below&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reuseVertexPositions &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt;[trianglecount &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; 3];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reverseReuseVertexPositions &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; List&amp;lt;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt;&amp;gt;[positions.Count &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;/&lt;/span&gt; 3];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;for&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; i &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; 0;
i &amp;lt; reverseReuseVertexPositions.Length; i++)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reverseReuseVertexPositions[i] &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; List&amp;lt;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt;&amp;gt;();&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
We have to use int indices here because we often have models&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
with more than 64k triangles (even if that gets optimized later).&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;for&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; i &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; 0;
i &amp;lt; trianglecount &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; 3;
i++)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
[...] vertex construction&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Remember pos for optimizing the vertices later more easily.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reuseVertexPositions[i] &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; pos &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;/&lt;/span&gt; 3;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reverseReuseVertexPositions[pos &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;/&lt;/span&gt; 3].Add(i);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
for (ushort)&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
And then finally the fast vesion of OptimizeVertexBuffer, which uses that data:
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#region&lt;/span&gt; OptimizeVertexBuffer&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
Optimize vertex buffer. Note: The vertices list array will be changed&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
and shorted quite a lot here. We are also going to create the indices&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
for the index buffer here (we don't have them yet, they are just&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
sequential from the loading process above).&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;/// &lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
Note: This method is highly optimized for speed, it performs&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
hundred of times faster than OptimizeVertexBufferSlow, see below!&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;///
&amp;lt;returns&amp;gt;ushort array for the optimized indices&amp;lt;/returns&amp;gt;&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;private&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;[]
OptimizeVertexBuffer()&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;SkinnedTangentVertex&amp;gt; newVertices &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; List&amp;lt;SkinnedTangentVertex&amp;gt;();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;&amp;gt;
newIndices &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; List&amp;lt;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;&amp;gt;();&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Helper to only search already added newVertices and for checking the&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
old position indices by transforming them into newVertices indices.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt;&amp;gt;
newVerticesPositions &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;new&lt;/span&gt; List&amp;lt;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt;&amp;gt;();&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Go over all vertices (indices are currently 1:1 with the vertices)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;for&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; num &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; 0;
num &amp;lt; vertices.Count; num++)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Get current vertex&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SkinnedTangentVertex
currentVertex &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; vertices[num];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;bool&lt;/span&gt; reusedExistingVertex &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;false&lt;/span&gt;;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Find out which position index was used, then we can compare&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
all other vertices that share this position. They will not&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
all be equal, but some of them can be merged.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; sharedPos &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; reuseVertexPositions[num];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;foreach&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; otherVertexIndex &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;in&lt;/span&gt; reverseReuseVertexPositions[sharedPos])&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Only check the indices that have already been added!&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (otherVertexIndex
!&lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; num
&amp;amp;&amp;amp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Make sure we already are that far in our new index list&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;otherVertexIndex
&amp;lt; newIndices.Count &amp;amp;&amp;amp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
And make sure this index has been added to newVertices yet!&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newIndices[otherVertexIndex]
&amp;lt; newVertices.Count &amp;amp;&amp;amp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Then finally compare vertices (this call is slow, but thanks to&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
all the other optimizations we don't have to call it that often)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SkinnedTangentVertex.NearlyEquals(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;currentVertex,
newVertices[newIndices[otherVertexIndex]]))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Reuse the existing vertex, don't add it again, just&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
add another index for it!&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newIndices.Add((&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;)newIndices[otherVertexIndex]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reusedExistingVertex &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;true&lt;/span&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;break&lt;/span&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
if (TangentVertex.NearlyEquals)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
foreach (otherVertexIndex)&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;if&lt;/span&gt; (reusedExistingVertex
== &lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;false&lt;/span&gt;)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Add the currentVertex and set it as the current index&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newIndices.Add((&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt;)newVertices.Count);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newVertices.Add(currentVertex);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
if (reusedExistingVertex)&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
for (num)&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Finally flip order of all triangles to allow us rendering&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
with CullCounterClockwiseFace (default for XNA) because all the data&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
is in CullClockwiseFace format right now!&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;for&lt;/span&gt; (&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;int&lt;/span&gt; num &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; 0;
num &amp;lt; newIndices.Count &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;/&lt;/span&gt; 3;
num++)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;ushort&lt;/span&gt; swap &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; newIndices[num &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; 3 &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;+&lt;/span&gt; 1];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newIndices[num &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; 3 &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;+&lt;/span&gt; 1] &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; newIndices[num &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; 3 &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;+&lt;/span&gt; 2];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newIndices[num &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; 3 &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;+&lt;/span&gt; 2] &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; swap;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
for&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Reassign the vertices, we might have deleted some duplicates!&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vertices &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; newVertices;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
And return index list for the caller&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;return&lt;/span&gt; newIndices.ToArray();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
OptimizeVertexBuffer()&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;#endregion&lt;/span&gt;
&lt;br&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
With this optimization loading is now pretty fast and rendering performs also nicely
thanks to the quick shaders we will discuss below. When running ANTS Profiler over
the new project the slowest line of code becomes the actual text parsing, actually
the conversion of the long strings for all vertices data&amp;nbsp;into the actual vertices
float data, especially the positions array. But we can't do anything about that without
loading the data binary and not parsing them ourselfs. It takes maybe half a second
for a 50k vertices model to load, not great, but ok for our little test app.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a name="Shaders1"&gt; 
&lt;h2&gt;Adjusting the shaders for skinned meshes
&lt;/h2&gt;
&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Now we got a bunch of vertices we can render, but as you know we need a shader to
do anything in XNA, there is no fixed function pipeline. There are also no animation
helper classes like in DirectX, but they won't help you anyway if you want to render
with shaders. Transforming the vertices on the CPU may sometimes be a choice if you
do not have many vertices and not many skinned models overall or if they all have
to be updated the same way. But generally&amp;nbsp;it is a much better idea to transform
all the vertices on the GPU, which costs a little bit more instructions in the vertex
shader, but the rest of the rendering stays the same. Most graphic apps are pixel
shader bound anyway and I use fairly complex pixel shaders too. Additionally on Shader
Model 4.0 cards like the GeForce 8800 with up to 128 parallel unified&amp;nbsp;shader
units you can do very complex vertex shaders and use simpler pixel shaders and it
will just use more units for the vertex shaders automatically :) 
&lt;/p&gt;
&lt;p&gt;
We already have defined the bones matrix array for skinning above and we limited it
to 80 bones per mesh, which is quite a lot. Even if you would spend 3 bones per finger
and 20-30 bones for the body you would still have plenty of bones left for complex
animations. Sure modelers will now say "thats not enough sometimes" ... well, you
can always split up the mesh into several meshes with up to 80 bones each if you really
need more. My graphic artists&amp;nbsp;are happy with 80 bones ^^ 
&lt;/p&gt;
&lt;p&gt;
If we want full Shader Model 2.0 support we can only be sure that we got at least
256 shader constants. NVidia has usually more (1024), but you still want your game
to run on ATI cards too, especially older ones. Each constant can hold a float4 and
we need 4 constants for each 4x4 matrix. This means we can only have up to 64 matrices
with this limit and we still need some constants for the world, view, and&amp;nbsp;projection
matrices, the light and material values and anything else we want to do in our shader.
You should reserve 10-20 constants for that and now we are down to less than 60 matrices,
which might sometimes be too little.
&lt;/p&gt;
&lt;p&gt;
Instead of splitting the mesh or providing a different code path in case the GPU can
do more constants (I couldn't get that do work in XNA for some reason, not sure if
there is some limit or if I made a mistake, my GPU should be able to do at least 1024
constants, and even 2048 for the 8800), there is a trick to save only a 3x4 matrix.
The last colum is always 0, 0, 0, 1 if we have correctly applied the invBoneMatrix
and the animation matrix (see GetBoneMatrices in ColladaModel for details and the
order of the matrices). But saving 4 float3 values still needs 4 shader constants
per matrix so we have to save it as 4x3 matrices instead.
&lt;/p&gt;
&lt;p&gt;
My first idea was to grab the .w values and reconstruct the translation part of the
matrix this way. This worked, but the resulting shader had 80 instructions (from abount
20 without skinning), which is not good for the resulting performance when rendering
many skinned 3D models.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;float4x4
RebuildSkinMatrix(&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;float&lt;/span&gt; index)&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;return&lt;/span&gt; float4x4(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float4(skinnedMatricesVS20[index*3+0].xyz,
0),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float4(skinnedMatricesVS20[index*3+1].xyz,
0),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float4(skinnedMatricesVS20[index*3+2].xyz,
0),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float4(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;skinnedMatricesVS20[index*3+0].w,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;skinnedMatricesVS20[index*3+1].w,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;skinnedMatricesVS20[index*3+2].w,
1));&lt;br&gt;
} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
RebuildSkinMatrix(.)&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
A better idea is to use the&amp;nbsp;4x3 matrix as a 3x4 matrix by just reversing the
order we call mul. This involves some changes to the vertex shader code and looks
a little bit confusing sometimes, but if you make sure you transform the world matrix
the same way and use it in this reversed mul order too, everything works just fine.
Another thing that can be optimized is to pre-multiply the indices of blendIndices
for each vertex at the loading time. These indices never change and they don't really
care if they are 0, 1, 2 or 0, 3, 6, etc. We save&amp;nbsp;one instruction per matrix
we are going to reconstruct (the rest is optimized out by the compiler). This is the
much easier version of RebuildSkinMatrix, for more details take a look at the SkinnedNormalMapping.fx
file:
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Note: This returns a transposed matrix, use it in reversed order.&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
First tests used a 3x3 matrix +3 w values for the transpose values, but&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
reconstructing this in the shader costs 20+ extra instructions and after&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
some testing I found out this is finally the best way to use 4x3 matrices&lt;/span&gt;
&lt;br&gt;
&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
for skinning :)&lt;/span&gt;
&lt;br&gt;
float4x4 RebuildSkinMatrix(&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;float&lt;/span&gt; index)&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"&gt;return&lt;/span&gt; float4x4(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;skinnedMatricesVS20[index+0],&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;skinnedMatricesVS20[index+1],&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;skinnedMatricesVS20[index+2],&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float4(0, 0, 0, 1));&lt;br&gt;
} &lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
RebuildSkinMatrix(.)&lt;/span&gt;
&lt;br&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font color="#000000"&gt;This results in a vertex shader that has almost half as many
instructions as before and their fore is twice as fast :) Good work. Performance tests
showed that I could increase the framerate from 220 fps to 270 fps just by doing that
(test scene with 9 goblins). The following code is actually more or less the only
part you have to replace in an existing shader if you want to make it skinnable (plus
providing the helper method and the skinned matrices too of course).&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
First transform position with bones that affect this vertex&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Use the 3 indices and blend weights we have precalculated.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float4x4 skinMatrix &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RebuildSkinMatrix(In.blendIndices.x) &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; In.blendWeights.x &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;+&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RebuildSkinMatrix(In.blendIndices.y) &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; In.blendWeights.y &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;+&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RebuildSkinMatrix(In.blendIndices.z) &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;*&lt;/span&gt; In.blendWeights.z;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Calculate local world matrix with help of the skinning matrix&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float4x4 localWorld &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; mul(world,
skinMatrix);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;"&gt;//
Now calculate final screen position with world and viewProj matrices.&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float4 worldPos &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; mul(localWorld,
float4(In.pos, 1));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Out.pos &lt;span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;"&gt;=&lt;/span&gt; mul(worldPos,
viewProj);&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font color="#000000"&gt;&lt;/font&gt;&amp;nbsp;
&lt;/p&gt;
&lt;a name="Shaders2"&gt; 
&lt;h2&gt;Post screen shaders for the final result
&lt;/h2&gt;
&lt;/a&gt; 
&lt;p&gt;
All the skinning code and bone transformations are nice once you get them done, but
without a cool model and some post screen shaders to make the scene look more cool,
it is only half the fun. Good think I got the Goblin 3D Model, thanks to Christoph
(WAII) again. I also had a couple of other test models and another more complex 3D
Model (big evil monster ^^) which was good for some stress testing, but the material
just did not look that cool. 
&lt;/p&gt;
&lt;p&gt;
As you can see on the following image 6 render targets are used to accomplish the
final image. Most shader passes do several things at once and the list of operations
(see right side of the image)&amp;nbsp;is longer than the list of used passes. Most of
this was just trying to get the best looking values&amp;nbsp;together quickly. If you
are an experienced artist you can probably do much better than me, I'm just playing
around with the shader parameters until I get bored and then I leave it the way it
is. The sceneMap (render target nummero three) shows the unmodified scene without
applying the post screen shaders. It does not look half as cool as the final result.
&lt;/p&gt;
&lt;a href="images/TestGoblinScenePostScreenPasses.jpg"&gt;&lt;img src="images/TestGoblinScenePostScreenPassesSmall.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a name="References"&gt;I hope you enjoyed this article and that you are not as tired
as I am writing this all at once (uff). It was a fun project, I have already another
one in mind for next week ;-) Take care.&lt;/a&gt;&amp;nbsp;If you have problems, post a comment.
Please note that not all collada models will work, you have to follow the rules of
ColladaModel or improve the class a bit for other use
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;h2&gt;References and Links
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="SkinningWithColladaModelsInXnaSourceCode.zip"&gt;SkinningWithColladaModelsInXnaSourceCode.zip
(2.6 MB) from this article&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="SkinningWithColladaModelsInXnaExecuteable.zip"&gt;SkinningWithColladaModelsInXnaExecuteable.zip
(2.5 MB) from this article&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.codeplex.com/animationcomponents"&gt;XNA Animation Component Library&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.andytather.co.uk/Panda/directxmax.aspx"&gt;Panda Exporter for 3dsMax&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.mindcontrol.org/%7Ehplus/graphics/kwxport.html"&gt;kiloWatt X file
Exporter for 3dsMax&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.khronos.org/collada/"&gt;Official Collada site from the Khronos Group&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.feelingsoftware.com/content/view/16/30/"&gt;Feeling Software Collada
Plugins for 3dsMax and Maya, best exporters ever!&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://collada.org/public_forum/"&gt;Public Forum of Collada.org&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://en.wikipedia.org/wiki/COLLADA"&gt;Wikipedia on Collada&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://collada.org/public_forum/viewtopic.php?p=2373&amp;amp;highlight=&amp;amp;sid=f5b56a89076e08d6c4175db5490db4da#2373"&gt;Collada
Forum post about remi's Collada for XNA project&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.khronos.org/files/collada_spec_1_4"&gt;COLLADA 1.4.1 Specification
(PDF)&lt;/a&gt; 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;&lt;/span&gt;&amp;nbsp;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=2b9f62ce-fc9c-4696-8f7f-701903f8285b" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,2b9f62ce-fc9c-4696-8f7f-701903f8285b.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=ecbb1c6c-45e7-43d0-98cb-75359fb79afd</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,ecbb1c6c-45e7-43d0-98cb-75359fb79afd.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,ecbb1c6c-45e7-43d0-98cb-75359fb79afd.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=ecbb1c6c-45e7-43d0-98cb-75359fb79afd</wfw:commentRss>
      <slash:comments>8</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Well, I was posting less and less on this blog and this gonna change now. From now
on I will try to post often, maybe even daily. The blog posts will not be as long
as before, I will just talk about whats on my mind each day. Initially this blog was
started as a little diary for me and I will return to that initial idea.
</p>
        <p>
As you can see I've updated my blog, added a couple of features and changed some pictures
and styles. At the top you see a little collage of current game projects I'm working
on. Most graphics are from Arena Wars Reloaded and the XNA Racing Game. I hope you
like the overall design :-)
</p>
        <p>
I will talk more about my current projects (see right side) in the next couple of
posts and catch up with a couple of topics I have on my mind but not blogged about
yet (FxCop stuff, CgFX, using Collada in XNA, etc.).
</p>
        <img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=ecbb1c6c-45e7-43d0-98cb-75359fb79afd" />
      </body>
      <title>Welcome to my new blog</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,ecbb1c6c-45e7-43d0-98cb-75359fb79afd.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/02/20/WelcomeToMyNewBlog.aspx</link>
      <pubDate>Tue, 20 Feb 2007 08:11:10 GMT</pubDate>
      <description>&lt;p&gt;
Well, I was posting less and less on this blog and this gonna change now. From now
on I will try to post often, maybe even daily. The blog posts will not be as long
as before, I will just talk about whats on my mind each day. Initially this blog was
started as a little diary for me and I will return to that initial idea.
&lt;/p&gt;
&lt;p&gt;
As you can see I've updated my blog, added a couple of features and changed some pictures
and styles. At the top you see a little collage of current game projects I'm working
on. Most graphics are from Arena Wars Reloaded and the XNA Racing Game. I hope you
like the overall design :-)
&lt;/p&gt;
&lt;p&gt;
I will talk more about my current projects (see right side) in the next couple of
posts and catch up with a couple of topics I have on my mind but not blogged about
yet (FxCop stuff, CgFX, using Collada in XNA, etc.).
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=ecbb1c6c-45e7-43d0-98cb-75359fb79afd" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,ecbb1c6c-45e7-43d0-98cb-75359fb79afd.aspx</comments>
      <category>All;Game Development;Other;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=9e224a1a-d5a7-4e4e-8ae3-6e103106dd23</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,9e224a1a-d5a7-4e4e-8ae3-6e103106dd23.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,9e224a1a-d5a7-4e4e-8ae3-6e103106dd23.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=9e224a1a-d5a7-4e4e-8ae3-6e103106dd23</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Not much going on here on my blog, but
in reality I was quite busy finishing some projects.<br />
Our whole team at exDream is also working hard on our upcoming game Arena Wars Reloaded.<br />
But it will take another month until we can release some cool looking screenshots
that will make you excited.<br /><br />
In the meantime you can check out this nice article with lots of interviews on gamecareerguide.com.<br />
On page 3 I do answer some questions and talk about current projects I'm involved
in, including the<br /><a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779">Professional
XNA Game Development book</a> I've done. The book will come out in early may this
year.<br /><br />
The article is 5 pages long and a nice read:<br /><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.gamecareerguide.com/features/328/microsoft_xna_.php" target="_blank">http://www.gamecareerguide.com<wbr />/features/328/microsoft_xna_<wbr />.php</a><br /><br /><br /><a set="yes" href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"><img src="http://ec1.images-amazon.com/images/P/0470126779.01._AA240_SCLZZZZZZZ_V35843563_.jpg" border="0" /></a><br /><br /><br />
While we are at it, I decided to finally post some high quality (1920x1200) Racing
Game screenshots (formerly known as XNA Racer).<br />
I don't know yet when it will be released, but it shouldn't take much longer :-)<br /><br />
Screenshot 1:<br /><a href="images/RacingGameScreenshotBig01.jpg"><img src="images/RacingGameScreenshotBig01_small.jpg" border="0" /></a><br /><br />
Screenshot 2:<br /><a href="images/RacingGameScreenshotBig02.jpg"><img src="images/RacingGameScreenshotBig02_small.jpg" border="0" /></a><br /><br />
Screenshot 3:<br /><a href="images/RacingGameScreenshotBig03.jpg"><img src="images/RacingGameScreenshotBig03_small.jpg" border="0" /></a><br /><br />
Screenshot 4:<br /><a href="images/RacingGameScreenshotBig04.jpg"><img src="images/RacingGameScreenshotBig04_small.jpg" border="0" /></a><br /><br /><br /><br />
Lately I'm also playing around with the Visual Studio "Orcas" CTP which was released
a week ago. Runs fine side by side with all my other<br />
Visual Studio versions, but some plugins do not work and most language extensions
I have installed (like LinQ or ASP.NET Ajax) are just<br />
missing, not sure yet how to fix that or if I will really develop with VS Orcas right
now, there is not really an advantage yet.<br /><br />
And finally there is a big fight coming up: Me vs FxCop. I will discuss my experiences
with FxCop in a few days after I have converted<br />
Arena Wars Reloaded and fought agains the 7000+ warnings ^^<br />
In smaller projects I had worked with FxCop before and some warnings are annoying,
but usually easy to fix. It was a little harder in<br />
the Racing Game XNA starter kit (see screenshots above) because that thing has already
over 20,000 lines of code and many warnings were<br />
just about my unit tests, which FxCop can't figure out (lots of uncalled methods).
But I will discuss all of this in a few days. Not sure<br />
if any other game development team even uses FxCop or similar tools. At least I have
never seen a game (or even a big app) pass the crazy<br />
FxCop rules.<br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=9e224a1a-d5a7-4e4e-8ae3-6e103106dd23" /></body>
      <title>XNA News</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,9e224a1a-d5a7-4e4e-8ae3-6e103106dd23.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/01/18/XNANews.aspx</link>
      <pubDate>Thu, 18 Jan 2007 10:03:40 GMT</pubDate>
      <description>Not much going on here on my blog, but in reality I was quite busy finishing some projects.&lt;br&gt;
Our whole team at exDream is also working hard on our upcoming game Arena Wars Reloaded.&lt;br&gt;
But it will take another month until we can release some cool looking screenshots
that will make you excited.&lt;br&gt;
&lt;br&gt;
In the meantime you can check out this nice article with lots of interviews on gamecareerguide.com.&lt;br&gt;
On page 3 I do answer some questions and talk about current projects I'm involved
in, including the&lt;br&gt;
&lt;a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"&gt;Professional
XNA Game Development book&lt;/a&gt; I've done. The book will come out in early may this
year.&lt;br&gt;
&lt;br&gt;
The article is 5 pages long and a nice read:&lt;br&gt;
&lt;a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.gamecareerguide.com/features/328/microsoft_xna_.php" target="_blank"&gt;http://www.gamecareerguide.com&lt;wbr&gt;/features/328/microsoft_xna_&lt;wbr&gt;.php&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a set="yes" href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"&gt;&lt;img src="http://ec1.images-amazon.com/images/P/0470126779.01._AA240_SCLZZZZZZZ_V35843563_.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
While we are at it, I decided to finally post some high quality (1920x1200) Racing
Game screenshots (formerly known as XNA Racer).&lt;br&gt;
I don't know yet when it will be released, but it shouldn't take much longer :-)&lt;br&gt;
&lt;br&gt;
Screenshot 1:&lt;br&gt;
&lt;a href="images/RacingGameScreenshotBig01.jpg"&gt;&lt;img src="images/RacingGameScreenshotBig01_small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Screenshot 2:&lt;br&gt;
&lt;a href="images/RacingGameScreenshotBig02.jpg"&gt;&lt;img src="images/RacingGameScreenshotBig02_small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Screenshot 3:&lt;br&gt;
&lt;a href="images/RacingGameScreenshotBig03.jpg"&gt;&lt;img src="images/RacingGameScreenshotBig03_small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Screenshot 4:&lt;br&gt;
&lt;a href="images/RacingGameScreenshotBig04.jpg"&gt;&lt;img src="images/RacingGameScreenshotBig04_small.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Lately I'm also playing around with the Visual Studio "Orcas" CTP which was released
a week ago. Runs fine side by side with all my other&lt;br&gt;
Visual Studio versions, but some plugins do not work and most language extensions
I have installed (like LinQ or ASP.NET Ajax) are just&lt;br&gt;
missing, not sure yet how to fix that or if I will really develop with VS Orcas right
now, there is not really an advantage yet.&lt;br&gt;
&lt;br&gt;
And finally there is a big fight coming up: Me vs FxCop. I will discuss my experiences
with FxCop in a few days after I have converted&lt;br&gt;
Arena Wars Reloaded and fought agains the 7000+ warnings ^^&lt;br&gt;
In smaller projects I had worked with FxCop before and some warnings are annoying,
but usually easy to fix. It was a little harder in&lt;br&gt;
the Racing Game XNA starter kit (see screenshots above) because that thing has already
over 20,000 lines of code and many warnings were&lt;br&gt;
just about my unit tests, which FxCop can't figure out (lots of uncalled methods).
But I will discuss all of this in a few days. Not sure&lt;br&gt;
if any other game development team even uses FxCop or similar tools. At least I have
never seen a game (or even a big app) pass the crazy&lt;br&gt;
FxCop rules.&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=9e224a1a-d5a7-4e4e-8ae3-6e103106dd23" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,9e224a1a-d5a7-4e4e-8ae3-6e103106dd23.aspx</comments>
      <category>All;Arena Wars;Game Development;Other;Programming;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=ce42019a-ceeb-452f-86bb-f7beec1a2964</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,ce42019a-ceeb-452f-86bb-f7beec1a2964.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,ce42019a-ceeb-452f-86bb-f7beec1a2964.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=ce42019a-ceeb-452f-86bb-f7beec1a2964</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">I developed a little Shoot'n'up game in
the last couple of days. It is actually quite fun to play. It is just one level and
is kind of a prototype. The game will be released together with my XNA Professional
Game Development book in a few months (it will be freely available from my website
shortly after that). My book features many other games too, it is not just about one
game, there are many arcade, action and other games in the book (about 8 games or
so) and they will be described as I explain all the important aspects of Game Programming
and the XNA Framework. 
<p>
For now I can only give you a little video about XNA Shooter. I hope you like it.<br /><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/3dlBRX6BHdU" /><embed src="http://www.youtube.com/v/3dlBRX6BHdU" type="application/x-shockwave-flash" width="425" height="350"></embed></object></p><p>
A "little" 1920x1200 screenshot:<br /><a href="images/XnaShooterScreenshot0001.jpg"><img src="images/XnaShooterScreenshot0001small.jpg" border="0" /></a></p><p>
These days there are a lot of discussions about XNA, especially in the GameDev.net
boards and of course in the official XNA forum by Microsoft.<br />
http://www.gamedev.net/community/forums/topic.asp?topic_id=430119<br />
http://forums.microsoft.com/msdn/showforum.aspx?forumid=846<br /></p><p>
I also want to mention a great article by the .NET Compact Framework team about the
.NET performance on the Xbox 360 with the XNA Framework. The main issue here is the
Garbage Collector, which is not generational and theirfore can only collect all the
objects in the GC at once and not in 3 levels like in the normal .NET Framework, which
can handle a lot more dead objects and more complicated situations. 
</p><p>
Here are the links to the .NET Compact Framework on XNA article:<br /><a href="http://blogs.msdn.com/netcfteam/archive/2006/12/22/managed-code-performance-on-xbox-360-for-the-xna-framework-1-0.aspx">http://blogs.msdn.com/netcfteam/archive/2006/12/22/<br />
managed-code-performance-on-xbox-360-for-the-xna-framework-1-0.aspx</a><br /><a href="http://blogs.msdn.com/netcfteam/archive/2006/12/22/managed-code-performance-on-xbox-360-for-xna-part-2-gc-and-tools.aspx">http://blogs.msdn.com/netcfteam/archive/2006/12/22/<br />
managed-code-performance-on-xbox-360-for-xna-part-2-gc-and-tools.aspx</a></p><p>
From my experience there are a couple of things you have to remember when developing
XNA games on the Xbox 360. All of these issue are not a big deal on the PC, but they
can cost some extra time until you get them right. One of the main problems is that
if you develop your game on the PC only and then test it on the Xbox 360 only at the
end a lot of things may go wrong (bad performance on the .NET Compact Framework, UI
elements at the border of the screen, which are just not visible on some TVs, bad
Xbox 360 controller support, which is the main input device for Xbox 360s, etc.). 
<br /></p><ul><li>
Test test test. This is the most important tip. Write unit tests and constantly test
them on your PC AND your Xbox 360. I keep 2 projects open at the same time (both of
them use the same files, but I only develop the PC solution and use the Xbox 360 solution
for deploying and testing only). Almost all of my classes have unit tests and I constantly
test them until they are completed.</li><li>
Don't use foreach loops, especially not in tight render loops. This may sound a little
crazy since it does not matter on a PC game and todays CPUs are fast enough to handle
the creation and deletion of many thousand objects each frame, which most games don't
even need. But on the compact framework you will spam the memory even with things
like foreach loops because a new enumerator instance is created everytime you start
a foreach loop. After a while there will be a lot of dead objects, which have to be
collected. This can take some time and slow your game down immensely. The PC version
might run at over 200 frames, but your Xbox 360 version is stuck at something like
30-40 frames. Avoiding creation of new data each frame and avoiding foreach loops
(just replace them with normal for loops, it is mostly just 1 line of extra code)
can improve your performance by a factor of 100% or more.</li><li>
In Arena Wars I never created any data during the game. All objects were created at
the beginning of each mission and they were reused (which was no big deal since the
game principle did not allow an infinite number of units, it always stayed around
the same because you get your money back from dead units to build new units). In later
project I did not care so much about creating new objects and I coded just the easy
way because unit tests drive you into a direction to quickly develop solutions, which
work and are tested, but may not be the best in other situations like for the Xbox
360 .NET Compact Framework. That is ok because we can now use the unit tests to check
if other solutions work just they way we expect them to work. For XNA Shooter and
XNA Racer (and a couple of other new game projects) I now make sure that most of the
game data is created at the beginning of each level and not dynamically during the
game.</li><li>
Save-Regions on TVs can be a pain in the ass. Just google for Xbox 360 screenshots
and you will notice that the GUI (graphical user interface) looks a lot different
from most PC games. PC games have often UI at the screen border showing you tips,
little buttons and other not so important things. If you do that in your Xbox 360
game all of these UI elements may be cut of on a regular TV. For the XNA Shooter I
had to rework all the UI elements because they just did not fit on a TV screen and
it was not practical to put them in a bar (like the windows task bar) because it looks
so different on the PC and certain TV monitors. Instead I put all UI elements in floating
bars, which will be adjusted depending on the screen the user is looking at.<br />
These are some of the Save-Regions I have encountered:<br /><ul><li>
PC: 100% visible</li><li>
Xbox 360 connected through a VGA cable: 100% (or close to 100%) visible.</li><li>
Xbox 360 connected to an old style monitor with SCART: around 92% visible.</li><li>
Xbox 360 connected through Component cables to my new Dell 24" Monitor (yeah HDTV):
around 93-95% visible (depends on the resolution).</li><li>
Some old TV sets (according to the XNA docs and tips on the web) have a save region
of 80-90%, but I never saw the 80% case, that is probably the worst case scenario.</li></ul>
The important thing is to keep the important UI element in this inner 90% (or 93%
if you want to be close to the edges) rectangle. This means instead of using a full
1920x1080 pixel resolution you only use 90% of it (1728x945). Or just start rendering
UI elements at about 5% of the screen (x coordinate: 96, y coordinate: 54). This pixel
locations obviously depend on the screen resolution, just calculate them in your main
class and use them whenever you render UI. 
</li><li>
There are probably a lot more tips I can give, but I'm to lazy right now. Maybe more
in a little while :)</li></ul><p>
Btw: I currently also do a lot of OpenGL development again and I have to say I have
totally forgotten about the way you can program OpenGL. It is often a lot easier,
it only gets hard if something does not work the way you expect it to be (but thats
hard in DirectX too). Well, the most annoying part is of course that you have to wrap
all OpenGL methods through PInvoke and that just costs time. On the other hand if
you already have a robust framework (like I have with Arena Wars, hehe), it is relatively
easy to plug in new features. It also took not long to learn the differences between
glsl and hlsl. I do currently also test out the <a href="http://www.nvidia.com">FX
Composer</a> 2.0 (alpha), which has a great idea behind it, but it is too much like
Render Monkey and that is never a good thing. <a href="http://www.ati.com">Render
Monkey</a> by ATI is just overcomplicated and hard to use (and was not updated for
2 years, which shows that no one even uses it anymore). The great thing about FX Composer
1 was the fact it was so easy to use and it did only support a very limited feature
set. It is not the best tool ever, but it was certainly a lot easier to use than FX
Composer 2.0, which will hopefully be improved before NVidia release it.<br />
I have confidence that NVidia will deliver a great tool as always, but they have lost
a lot of fans in the last months because of the lack of drivers for Vista, especially
for the Geforce 8800, which does not work at all in Vista, but it is the only card
on the market that even supports Direct3D 10 (and the new cool unified shader technology
in DirectX). The only way you can currently use the new graphic card features is to
program them yourself natively with OpenGL ... but my 8800 is in repair anyway, else
I would have tried out some of the new features by now. 
</p><p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=ce42019a-ceeb-452f-86bb-f7beec1a2964" /></p></body>
      <title>XNA Shooter Game</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,ce42019a-ceeb-452f-86bb-f7beec1a2964.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/12/29/XNAShooterGame.aspx</link>
      <pubDate>Fri, 29 Dec 2006 18:30:45 GMT</pubDate>
      <description>I developed a little Shoot'n'up game in the last couple of days. It is actually quite fun to play. It is just one level and is kind of a prototype. The game will be released together with my XNA Professional Game Development book in a few months (it will be freely available from my website shortly after that). My book features many other games too, it is not just about one game, there are many arcade, action and other games in the book (about 8 games or so) and they will be described as I explain all the important aspects of Game Programming and the XNA Framework.
&lt;p&gt;
For now I can only give you a little video about XNA Shooter. I hope you like it.&lt;br&gt;
&lt;object width="425" height="350"&gt;
&lt;param name="movie" value="http://www.youtube.com/v/3dlBRX6BHdU"&gt;&gt;&lt;embed src="http://www.youtube.com/v/3dlBRX6BHdU" type="application/x-shockwave-flash" width="425" height="350"&gt;&lt;/embed&gt;
&lt;/object&gt;
&lt;p&gt;
A "little" 1920x1200 screenshot:&lt;br&gt;
&lt;a href="images/XnaShooterScreenshot0001.jpg"&gt;&lt;img src="images/XnaShooterScreenshot0001small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
These days there are a lot of discussions about XNA, especially in the GameDev.net
boards and of course in the official XNA forum by Microsoft.&lt;br&gt;
http://www.gamedev.net/community/forums/topic.asp?topic_id=430119&lt;br&gt;
http://forums.microsoft.com/msdn/showforum.aspx?forumid=846&lt;br&gt;
&lt;p&gt;
I also want to mention a great article by the .NET Compact Framework team about the
.NET performance on the Xbox 360 with the XNA Framework. The main issue here is the
Garbage Collector, which is not generational and theirfore can only collect all the
objects in the GC at once and not in 3 levels like in the normal .NET Framework, which
can handle a lot more dead objects and more complicated situations. 
&lt;p&gt;
Here are the links to the .NET Compact Framework on XNA article:&lt;br&gt;
&lt;a href="http://blogs.msdn.com/netcfteam/archive/2006/12/22/managed-code-performance-on-xbox-360-for-the-xna-framework-1-0.aspx"&gt;http://blogs.msdn.com/netcfteam/archive/2006/12/22/&lt;br&gt;
managed-code-performance-on-xbox-360-for-the-xna-framework-1-0.aspx&lt;/a&gt;
&lt;br&gt;
&lt;a href="http://blogs.msdn.com/netcfteam/archive/2006/12/22/managed-code-performance-on-xbox-360-for-xna-part-2-gc-and-tools.aspx"&gt;http://blogs.msdn.com/netcfteam/archive/2006/12/22/&lt;br&gt;
managed-code-performance-on-xbox-360-for-xna-part-2-gc-and-tools.aspx&lt;/a&gt; 
&lt;p&gt;
From my experience there are a couple of things you have to remember when developing
XNA games on the Xbox 360. All of these issue are not a big deal on the PC, but they
can cost some extra time until you get them right. One of the main problems is that
if you develop your game on the PC only and then test it on the Xbox 360 only at the
end a lot of things may go wrong (bad performance on the .NET Compact Framework, UI
elements at the border of the screen, which are just not visible on some TVs, bad
Xbox 360 controller support, which is the main input device for Xbox 360s, etc.). 
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Test test test. This is the most important tip. Write unit tests and constantly test
them on your PC AND your Xbox 360. I keep 2 projects open at the same time (both of
them use the same files, but I only develop the PC solution and use the Xbox 360 solution
for deploying and testing only). Almost all of my classes have unit tests and I constantly
test them until they are completed.&lt;/li&gt;
&lt;li&gt;
Don't use foreach loops, especially not in tight render loops. This may sound a little
crazy since it does not matter on a PC game and todays CPUs are fast enough to handle
the creation and deletion of many thousand objects each frame, which most games don't
even need. But on the compact framework you will spam the memory even with things
like foreach loops because a new enumerator instance is created everytime you start
a foreach loop. After a while there will be a lot of dead objects, which have to be
collected. This can take some time and slow your game down immensely. The PC version
might run at over 200 frames, but your Xbox 360 version is stuck at something like
30-40 frames. Avoiding creation of new data each frame and avoiding foreach loops
(just replace them with normal for loops, it is mostly just 1 line of extra code)
can improve your performance by a factor of 100% or more.&lt;/li&gt;
&lt;li&gt;
In Arena Wars I never created any data during the game. All objects were created at
the beginning of each mission and they were reused (which was no big deal since the
game principle did not allow an infinite number of units, it always stayed around
the same because you get your money back from dead units to build new units). In later
project I did not care so much about creating new objects and I coded just the easy
way because unit tests drive you into a direction to quickly develop solutions, which
work and are tested, but may not be the best in other situations like for the Xbox
360 .NET Compact Framework. That is ok because we can now use the unit tests to check
if other solutions work just they way we expect them to work. For XNA Shooter and
XNA Racer (and a couple of other new game projects) I now make sure that most of the
game data is created at the beginning of each level and not dynamically during the
game.&lt;/li&gt;
&lt;li&gt;
Save-Regions on TVs can be a pain in the ass. Just google for Xbox 360 screenshots
and you will notice that the GUI (graphical user interface) looks a lot different
from most PC games. PC games have often UI at the screen border showing you tips,
little buttons and other not so important things. If you do that in your Xbox 360
game all of these UI elements may be cut of on a regular TV. For the XNA Shooter I
had to rework all the UI elements because they just did not fit on a TV screen and
it was not practical to put them in a bar (like the windows task bar) because it looks
so different on the PC and certain TV monitors. Instead I put all UI elements in floating
bars, which will be adjusted depending on the screen the user is looking at.&lt;br&gt;
These are some of the Save-Regions I have encountered:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
PC: 100% visible&lt;/li&gt;
&lt;li&gt;
Xbox 360 connected through a VGA cable: 100% (or close to 100%) visible.&lt;/li&gt;
&lt;li&gt;
Xbox 360 connected to an old style monitor with SCART: around 92% visible.&lt;/li&gt;
&lt;li&gt;
Xbox 360 connected through Component cables to my new Dell 24" Monitor (yeah HDTV):
around 93-95% visible (depends on the resolution).&lt;/li&gt;
&lt;li&gt;
Some old TV sets (according to the XNA docs and tips on the web) have a save region
of 80-90%, but I never saw the 80% case, that is probably the worst case scenario.&lt;/li&gt;
&lt;/ul&gt;
The important thing is to keep the important UI element in this inner 90% (or 93%
if you want to be close to the edges) rectangle. This means instead of using a full
1920x1080 pixel resolution you only use 90% of it (1728x945). Or just start rendering
UI elements at about 5% of the screen (x coordinate: 96, y coordinate: 54). This pixel
locations obviously depend on the screen resolution, just calculate them in your main
class and use them whenever you render UI. 
&lt;/li&gt;
&lt;li&gt;
There are probably a lot more tips I can give, but I'm to lazy right now. Maybe more
in a little while :)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Btw: I currently also do a lot of OpenGL development again and I have to say I have
totally forgotten about the way you can program OpenGL. It is often a lot easier,
it only gets hard if something does not work the way you expect it to be (but thats
hard in DirectX too). Well, the most annoying part is of course that you have to wrap
all OpenGL methods through PInvoke and that just costs time. On the other hand if
you already have a robust framework (like I have with Arena Wars, hehe), it is relatively
easy to plug in new features. It also took not long to learn the differences between
glsl and hlsl. I do currently also test out the &lt;a href="http://www.nvidia.com"&gt;FX
Composer&lt;/a&gt; 2.0 (alpha), which has a great idea behind it, but it is too much like
Render Monkey and that is never a good thing. &lt;a href="http://www.ati.com"&gt;Render
Monkey&lt;/a&gt; by ATI is just overcomplicated and hard to use (and was not updated for
2 years, which shows that no one even uses it anymore). The great thing about FX Composer
1 was the fact it was so easy to use and it did only support a very limited feature
set. It is not the best tool ever, but it was certainly a lot easier to use than FX
Composer 2.0, which will hopefully be improved before NVidia release it.&lt;br&gt;
I have confidence that NVidia will deliver a great tool as always, but they have lost
a lot of fans in the last months because of the lack of drivers for Vista, especially
for the Geforce 8800, which does not work at all in Vista, but it is the only card
on the market that even supports Direct3D 10 (and the new cool unified shader technology
in DirectX). The only way you can currently use the new graphic card features is to
program them yourself natively with OpenGL ... but my 8800 is in repair anyway, else
I would have tried out some of the new features by now. 
&lt;p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=ce42019a-ceeb-452f-86bb-f7beec1a2964" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,ce42019a-ceeb-452f-86bb-f7beec1a2964.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=442152d0-a014-47de-b9b1-4e8aed1d9bd3</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,442152d0-a014-47de-b9b1-4e8aed1d9bd3.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,442152d0-a014-47de-b9b1-4e8aed1d9bd3.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=442152d0-a014-47de-b9b1-4e8aed1d9bd3</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <table align="right" border="0" cellspacing="10" width="310">
          <tbody>
            <tr>
              <td width="310">
                <a href="http://www.exdream.com">
                  <img src="images/ArenaWarsReloadedComingSoon.jpg" border="0" width="300" />
                </a>
                <br />
                <center>
                  <font size="-2">
                    <b>ArenaWars Reloaded - Coming Soon</b>
                  </font>
                </center>
              </td>
            </tr>
          </tbody>
        </table>
Hey now!<br /><br />
Before you read on (I guess this is going to be a long post) please also check out <a href="http://www.exdream.com">www.exDream.com</a>.
We made some pictures from our new office and we recently announced ArenaWars Reloaded
(see image on the right), a new game with a new graphic engine and many new cool features
based on the original Arena Wars idea (the game play and levels will be similar, but
look much better). 
<p>
My little Christmas present for you is the new port of Rocket Commander to the XNA
Framework. It allows you to play the popular Rocket Commander (113 000 played games
already can't be wrong) on your Xbox 360 for the first time. You just need an Xbox
360 and have XNA on there. Here are the downloads, the file sizes are are little bit
bigger than the original game (my comments are below):<br /></p><ul><li><a href="RocketCommanderXnaSetup.exe">Rocket Commander XNA on Windows (16 MB)</a>:
Includes Setup, that will automatically install DirectX Dec 2006 and the XNA Framework
if you don't have it yet!</li><li>
Rocket Commander XNA on the Xbox 360 cannot be redistributed. You currently have to
download the source code and run it in XNA Game Studio Express to even get it on your
Xbox. Once you have Rocket Commander XNA deployed with help of the XNA Launcher you
can start it anytime you want to without having your PC on or having to redeploy it.</li><li><a href="RocketCommanderXnaSourceCodeAndContent.zip">Full Rocket Commander XNA source
code (53 MB)</a>: All Content, Sound and Music files are included in this download,
this is all you need to compile and run the game on Windows and Xbox 360. The music
files are almost 50MB (5MB as mp3, which is not supported in XNA).</li><li><a href="RocketCommanderXnaSourceCodeOnly.zip">Rocket Commander XNA source code only
(213 KB)</a>. No content files (models, textures, sounds, etc.) in here, just the
.cs, .csproj, .sln and .fx files.</li></ul>
Update: 2007-01-03: Fixed some Bugs with the Input, PostScreenGlow and when device
loses focus. Works now more stable. Also cleaned up some of the source code. 
<p>
Note: Use RocketCommanderXna.sln to compile and run the game on Windows and RocketCommanderXnaXbox360.sln
to compile and deploy it to your Xbox 360. For additional details please read the
XNA documentation.<br /><br />
The game runs at a very good performance on the Xbox 360, you still got over 60 fps
in HDTV 1920x1050 (1080p) with full AA enabled. 
</p><p>
Check out some of the new screenshots. Warning, all of them are big, HDTV 1080p resolution.
Actually I could not capture any images from the Xbox 360 directly, which runs at
60fps on 1920x1050 and uses fullscreen Antialiasing and using the highest settings.
These screenshots are from my PC hooked up to my new 1920x1200 monitor, also nice
:)<br /></p><p>
The main menu. Not much happend here.<br /><a href="images/RocketCommanderXnaScreenshot0001.jpg"><img src="images/RocketCommanderXnaScreenshot0001small.jpg" border="0" /></a></p><p>
The ingame HUD and general user experience has changed a bit. There is also a new
object for the goal since creating a sphere dynamically is not that easy in XNA.<br /><a href="images/RocketCommanderXnaScreenshot0002.jpg"><img src="images/RocketCommanderXnaScreenshot0002small.jpg" border="0" /></a></p><p>
Rocket Commander is still fast and it pumps up your adrenaline even more in combination
with a big monitor :)<br /><a href="images/RocketCommanderXnaScreenshot0003.jpg"><img src="images/RocketCommanderXnaScreenshot0003small.jpg" border="0" /></a></p><p>
Another screenshot from the last level. Please note that you can see more asteroids
at the same time than in the original game. You can also look a lot farther and see
more items from great distances.<br /><a href="images/RocketCommanderXnaScreenshot0004.jpg"><img src="images/RocketCommanderXnaScreenshot0004small.jpg" border="0" /></a></p><p>
The explosion is unchanged. It still looks the same crappy way, but the AnimationTexture
class had to be reimplemented to work with XNA textures now.<br /><a href="images/RocketCommanderXnaScreenshot0005.jpg"><img src="images/RocketCommanderXnaScreenshot0005small.jpg" border="0" /></a></p><p><br />
Initially I thought "Hey, this is easy, let's port Rocket Commander to XNA.". The
initial port attempt was pretty good, it took only 3-4 days to port the 25 000+ lines
of code used in Rocket Commander. I could remove some classes and I also simplified
some classes, the total number of lines got smaller (~20 000 lines), but after adding
some new features and some new unit tests and some testing code for multithreading
it is about 22 000 lines of code, still less than the original. XNA is definately
the future, MDX was great, but it was not updated for a long time and if you start
something new, go with the fresh XNA Framework! 
</p><p>
Here are some of my experiences from the process of writing Rocket Commander XNA.
Please note that some of these comments were written while I was developing and kinda
sleep deprived. Beware of the harsh tone, in the end all worked out great :)<br /><font size="4" color="#00FF00">++</font> means this topic was great and better than
MDX.<br /><font size="4" color="#00FF00">+</font> means it was good and nice to work with.<br /><font size="4" color="#FF0000">-</font> means I did not like that feature or it was
easier in MDX.<br /><font size="4" color="#FF0000">--</font> means this was really annoying and should
be improved in the future. 
</p><p>
By the way: I did Rocket Commander XNA just for fun, but it also proves how great
XNA performs on the Xbox 360. Try to find any other game with this many polygons and
effects running in 1080p (1920x1080) with AA enabled on the Xbox 360 ^^ It does not
look as good as Gears of War or Halo 3, but it took only 1 man and a short time to
develop and it still pushes up to 80-100mio polys each second to the GPU (in some
early unit tests, the game runs fine with 20-30 mio polys per second most of the time,
check out the model class and its unit tests for more details).
</p><p>
I also use the Rocket Commander XNA engine for 2 other smaller projects because I
like the fact that I can test and play these games on the Xbox 360 too and having
a complete engine up and running is always a great plus, even if you know how to do
a game. It is just easier if you got all the basics covered. 
</p><p><table border="2"><tr><td><b>Topic</b></td><td><b>Rating</b></td><td><b>Comments</b></td></tr><tr><td>
Sound</td><td><font size="4" color="#00FF00">++</font></td><td>
Very easy to use, 1 short class instead of 2 complex ones I had in MDX. Once you get
used to XAct you learn that it is a good tool for sound effects, at least if they
don't have to be loaded dynamically. The porting process was very simple for sound
effect files, they just had to be dragged to XACT and then the project had to be saved,
that's it.</td></tr><tr><td>
Music</td><td><font size="4" color="#FF0000">--</font></td><td>
A lot of converting, different formats, hard to handle, a lot to test, bad documentation.
The music from RC was below 5 MB, now it is over 50 MB, which just blows up the source
code. Even the compressed take up 13 MB on the PC (ADPCM) and 9 MB on the Xbox 360
(XMA), both in a quality below the original. The rest of the game content (5MB compressed
textures, models, effects, sound, etc.) stayed almost the same and could be reused
for the most parts.</td></tr><tr><td>
Unit Testing</td><td><font size="4" color="#FF0000">-</font></td><td>
Harder to use on the Xbox 360, no edit and continue support in the compact .NET framework.
There are also no unit testing tools available and all you can do is to call static
unit tests from the program class, which is still useful, but harder to do. I still
prefer to test on windows. One great thing about the Xbox 360 is the fact that you
get multimonitor debugging for free if you have a TV screen and your PC screen. Debug
and step through code on your PC and see the result on the TV screen :)</td></tr><tr><td>
Window handling</td><td><font size="4" color="#00FF00">++</font></td><td>
No extra code required, I could remove several classes and even the helper classes
that are still in Rocket Commander Xna are not required for the most parts. Except
for some of the game component classes and the design that is not really useful (more
about that below) the Game class is really easy to use and simplifies the process
to create a new game in a few minutes.</td></tr><tr><td>
Shaders</td><td><font size="4" color="#00FF00">++</font></td><td>
Everything in XNA is shader based. The original Rocket Commander runs on fixed pipeline
only hardware too, but it was a lot of work to handle 2 ways to render everything.
With XNA you just have to write the shaders once and just use them. They work perfectly
on the PC (Shader Model 1.1 up to 3.0) and on the Xbox 360, all fx files compiled
without any problems.<p>
Some shaders had to be adjusted to be right-handed now instead of left-handed like
in MDX, but that did just take a few minutes to change and all the rest of the shader
code could be reused. In the last few months of XNA development I never had once a
problem with shaders in XNA, thats really great :)
</p></td></tr><tr><td>
IDE Features</td><td><font size="4" color="#FF0000">-</font></td><td>
MDX is much older and was never made popular by Microsoft. XNA is new, fresh and great,
but it is missing some serious features like Animations for Models. You can implement
it yourself, but why even bother with the content pipeline, do it all yourself. It
will be much easier and you can extend it in any way you need in the future.<p>
XNA development is currently also only avialable with XNA Game Studio Express, which
is painful if you are a pure Visual Studio 2005 Professional developer and have lots
of plugins you rely on every day (source code management, code rush, testdriven, slickedit,
explorer, and many more). This will change in the future and XNA will grow up and
dominate the whole world one day :)
</p></td></tr><tr><td>
Content</td><td><font size="4" color="#FF0000">--</font></td><td>
Sorry, I just don't like the content pipeline (and I have been using it for several
months now)! It is bad for dynamically loading textures or shaders or reloadindg them
after changes (just not possible with compile-time generated content). On the windows
platform you can still load textures and shaders the normal way, which is good, but
loading .x file models is just not possible, you have to use the content pipeline.
And the content pipeline sucks feature-wise, you have to implement all of stuff yourself.<p>
This is my main problem, why should I re-implement generating tangents, shader technique
indices, fixing other x file problems, etc. all by myself in a custom content processor,
which is not easy to write IMO (bad docu again). By the time I did all that I would
have implemented a much more flexible and vesatile custom importer like from .collada
files, which are very popular these days ...
</p></td></tr><tr><td>
Performance</td><td><font size="4" color="#00FF00">+</font></td><td>
The overall performance especially when just doing some benchmarks and performance
tests is absolutely perfect on both Windows and the Xbox 360. The GPU is pushed to
its limits and there is no reason why you should be afraid of managed code. Windows
performance is especially great, all my programs and games are completely GPU bound
even in low resolutions and even when they only have one thread. 
<p>
On the Xbox 360 the performance is much worse and you have to take many things into
consideration, which is hard because there is again not much documentation around.
For example the worst thing you can do on the Xbox 360 is to generate new data each
frame, even if you just create an enumerator by executing a foreach loop, it will
affect your performance. The good thing is that you have 3 cores (and 6 hardware threads)
at your fingertips, which allow you to optimize performance. It was possible for the
Rocket Commander game to optimize the game loop a lot because the physics and update
threads eat up almost 50% of the CPU time. On the PC it does not matter much because
my GPU is slowing everything down (see image below), but on the Xbox 360 I was able
to almost double the framerate using multiple threads, nice :) 
</p><p><a href="images/RCXnaMultithreaded.jpg"><img src="images/RCXnaMultithreadedsmall.jpg" border="0" /><br />
Click Image for to maximize it.</a></p></td></tr><tr><td>
Usability</td><td><font size="4" color="#FF0000">-</font></td><td>
It gets a little easier though all the game helper classes, but the game component
class is pretty useless, you can implement something like that in 5 minutes yourself.
There is also a DrawableGameComponent class, but you have to call Draw yourself, whats
the point here? My classes have some Draw or Render method anyway, I don't need to
derive them from GameComponent, I can implement my own interfaces and implement exactly
the features I need. Often it is easier to give the Render method a few parameters
or even call it several times with different parameters, all that is not possible
with DrawableGameComponent.<p>
Next there is the content pipeline, which is just a pain in the ass for 3d models.
This makes the usability very bad, especially if you develop on Visual Studio 2005
(not Express), which does not support the content pipeline. Also if you are a Vista-Developer
XNA Game Studio Express will also not run as expected and my intern hates now both
Vista and XNA. It should not happen that someone can get so angry about such great
pieces of software, just because they don't work together ^^
</p></td></tr><tr><td>
Porting</td><td><font size="4" color="#00FF00">+</font></td><td>
If you have written a XNA game or have some XNA code flying around (like the Rocket
Commander XNA source code) it is very easy to port existing MDX code to XNA. If you
do it from the scratch it is a lot more work and testing until everything works out
the way you expect it, but overall it is easy to port from MDX to XNA. Thats very
cool, thank <a href="http://blogs.msdn.com/tmiller/">the main MDX man Tom Miller</a> for
that, who architected parts of XNA too. Porting is easy, but getting the game to work
the way you want on the Xbox 360 is not that easy. First of all you got that annoying
content pipeline again (I keep repeating myself, maybe I'm too angry ^^), then you
have to make sure that you don't render important User Interface on the none-visible
area of a monitor that is plugged into a Xbox 360. For example Rocket Commander was
only designed for 1 resolution to look good, it had a very small font for some texts
on the screen, which is unreadable on TV monitors. Rocket Commander did also not scale
well on Widescreen monitors and it rendered a lot of UI elements at the screen borders,
which were cut off on TV monitors.<p>
The porting took maybe 3-4 days, but I spend at least 4 more days for fixing UI elments
and improving the code on the Xbox 360, optimizing asteroid rendering, physics and
multithreading. I did not expect that it would take that long and I had only some
time in the evenings to even get some XNA work done.
</p></td></tr><tr><td>
Most annoying</td><td></td><td>
Porting left-handed models, matrices and other complicated math functions over to
the right handed system that XNA uses. Maybe it would be easier to use left handed
matrices like in the original Rocket Commander for XNA too, but XNA does not provide
them and I did think getting it to work with a right handed system would be easier.
Then there is of course the problem getting the models into the content pipeline.
I used a special content processor, which is also included in the Rocket Commander
source code and it can be used for other projects too (I use it for everything I do
with XNA).<p>
Another annoying thing is the re-deploying of existing game content to the Xbox 360.
If you just have 5 files it will not matter to you, but if you got over 50 (Rocket
Commander) or even several hundert content files and sometimes due some crazy bug
all these files get re-compiled or re-deployed over and over again, it gets really
annoying. It takes 30-60 seconds and is not fun ... good think it does not happen
that often, but it is still annoying me. Maybe the main reason for regenerating the
content on my PC is the fact that I often switch between the Xbox 360 and Windows
platforms to test if everything is working the same way on both systems.
</p></td></tr><tr><td>
Missing features</td><td></td><td>
The XNA version does have all the features from the original Rocket Commander game,
including all levels, sub menus and the whole game play. It does not have animated
models however because it is not supported out of the box in XNA and I did not have
time to reimplement this feature. It does also not support polygon based collision
checking for asteroids, which can sometimes be annoying if you fly near asteroids
or if you want to fly through the donut asteroid. The problem here is that the mesh
intersection methods are missing, all you can do is render models, not much else.
Last but not least XNA does not support any network code. On the windows platform
it would be possible to still use the Webservice to upload and get highscores, but
for compatibility with the Xbox 360 the code is currently commented out. If you want
to play with online highscores, just play the original Rocket Commander game. 
<p>
There are also some smaller issues like getting the bitmap data of a texture on the
Xbox 360. There is method called GetData in the texture class, but it is not supported
on the Xbox 360. There is also no bitmap class in XNA because you would need the System.Windows.Forms
namespace, which is not included in the .NET compact framework. I ended up saving
the level data into a custom file (.level) and then loading it again with help of
standard IO methods (byte by byte, but the loading process is still fast, less than
1 second for all textures, levels, models and sounds). 
</p><p>
The Rocket Commander Mods are also not supported yet, but porting them should be easy
with the existing Rocket Commander XNA source code. 
</p></td></tr><tr><td>
Improvements</td><td></td><td>
The controls, especially for the Xbox 360 Controller have been improved. It is now
much easier to fly the rocket, the speed was increased and you can look at up to 4
times as much asteroids thanks to several optimizations and the great performance
gain of using multiple threads on the Xbox 360. There are also many smaller improvements
to the UI, the structure and some classes in the game, but the game looks still very
similar (see screenshots above).</td></tr></table><br />
Maybe I will write a little more next week. I should get some sleep now, in a few
hours it is christmas time and I have not packed any presents yet. 
</p><p>
Now have fun with Rocket Commander XNA and have a nice christmas of course ;-) 
</p><p>
PS: I know my blog has currently some problems (posting and comments do not work as
they should), I will fix that in a week or two, have currently not much time to investigate
this issue.<img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=442152d0-a014-47de-b9b1-4e8aed1d9bd3" /></p></body>
      <title>Your Christmas Present: Rocket Commander XNA</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,442152d0-a014-47de-b9b1-4e8aed1d9bd3.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/12/24/YourChristmasPresentRocketCommanderXNA.aspx</link>
      <pubDate>Sun, 24 Dec 2006 07:08:16 GMT</pubDate>
      <description>&lt;table align="right" border="0" cellspacing="10" width="310"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="310"&gt;
&lt;a href="http://www.exdream.com"&gt;&lt;img src="images/ArenaWarsReloadedComingSoon.jpg" border="0" width="300"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;center&gt;&lt;font size="-2"&gt;&lt;b&gt;ArenaWars Reloaded - Coming Soon&lt;/b&gt;&lt;/font&gt;
&lt;/center&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
Hey now!&lt;br&gt;
&lt;br&gt;
Before you read on (I guess this is going to be a long post) please also check out &lt;a href="http://www.exdream.com"&gt;www.exDream.com&lt;/a&gt;.
We made some pictures from our new office and we recently announced ArenaWars Reloaded
(see image on the right), a new game with a new graphic engine and many new cool features
based on the original Arena Wars idea (the game play and levels will be similar, but
look much better). 
&lt;p&gt;
My little Christmas present for you is the new port of Rocket Commander to the XNA
Framework. It allows you to play the popular Rocket Commander (113 000 played games
already can't be wrong) on your Xbox 360 for the first time. You just need an Xbox
360 and have XNA on there. Here are the downloads, the file sizes are are little bit
bigger than the original game (my comments are below):&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="RocketCommanderXnaSetup.exe"&gt;Rocket Commander XNA on Windows (16 MB)&lt;/a&gt;:
Includes Setup, that will automatically install DirectX Dec 2006 and the XNA Framework
if you don't have it yet!&lt;/li&gt;
&lt;li&gt;
Rocket Commander XNA on the Xbox 360 cannot be redistributed. You currently have to
download the source code and run it in XNA Game Studio Express to even get it on your
Xbox. Once you have Rocket Commander XNA deployed with help of the XNA Launcher you
can start it anytime you want to without having your PC on or having to redeploy it.&lt;/li&gt;
&lt;li&gt;
&lt;a href="RocketCommanderXnaSourceCodeAndContent.zip"&gt;Full Rocket Commander XNA source
code (53 MB)&lt;/a&gt;: All Content, Sound and Music files are included in this download,
this is all you need to compile and run the game on Windows and Xbox 360. The music
files are almost 50MB (5MB as mp3, which is not supported in XNA).&lt;/li&gt;
&lt;li&gt;
&lt;a href="RocketCommanderXnaSourceCodeOnly.zip"&gt;Rocket Commander XNA source code only
(213 KB)&lt;/a&gt;. No content files (models, textures, sounds, etc.) in here, just the
.cs, .csproj, .sln and .fx files.&lt;/li&gt;
&lt;/ul&gt;
Update: 2007-01-03: Fixed some Bugs with the Input, PostScreenGlow and when device
loses focus. Works now more stable. Also cleaned up some of the source code. 
&lt;p&gt;
Note: Use RocketCommanderXna.sln to compile and run the game on Windows and RocketCommanderXnaXbox360.sln
to compile and deploy it to your Xbox 360. For additional details please read the
XNA documentation.&lt;br&gt;
&lt;br&gt;
The game runs at a very good performance on the Xbox 360, you still got over 60 fps
in HDTV 1920x1050 (1080p) with full AA enabled. 
&lt;p&gt;
Check out some of the new screenshots. Warning, all of them are big, HDTV 1080p resolution.
Actually I could not capture any images from the Xbox 360 directly, which runs at
60fps on 1920x1050 and uses fullscreen Antialiasing and using the highest settings.
These screenshots are from my PC hooked up to my new 1920x1200 monitor, also nice
:)&lt;br&gt;
&lt;p&gt;
The main menu. Not much happend here.&lt;br&gt;
&lt;a href="images/RocketCommanderXnaScreenshot0001.jpg"&gt;&lt;img src="images/RocketCommanderXnaScreenshot0001small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
The ingame HUD and general user experience has changed a bit. There is also a new
object for the goal since creating a sphere dynamically is not that easy in XNA.&lt;br&gt;
&lt;a href="images/RocketCommanderXnaScreenshot0002.jpg"&gt;&lt;img src="images/RocketCommanderXnaScreenshot0002small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
Rocket Commander is still fast and it pumps up your adrenaline even more in combination
with a big monitor :)&lt;br&gt;
&lt;a href="images/RocketCommanderXnaScreenshot0003.jpg"&gt;&lt;img src="images/RocketCommanderXnaScreenshot0003small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
Another screenshot from the last level. Please note that you can see more asteroids
at the same time than in the original game. You can also look a lot farther and see
more items from great distances.&lt;br&gt;
&lt;a href="images/RocketCommanderXnaScreenshot0004.jpg"&gt;&lt;img src="images/RocketCommanderXnaScreenshot0004small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
The explosion is unchanged. It still looks the same crappy way, but the AnimationTexture
class had to be reimplemented to work with XNA textures now.&lt;br&gt;
&lt;a href="images/RocketCommanderXnaScreenshot0005.jpg"&gt;&lt;img src="images/RocketCommanderXnaScreenshot0005small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
&lt;br&gt;
Initially I thought "Hey, this is easy, let's port Rocket Commander to XNA.". The
initial port attempt was pretty good, it took only 3-4 days to port the 25 000+ lines
of code used in Rocket Commander. I could remove some classes and I also simplified
some classes, the total number of lines got smaller (~20 000 lines), but after adding
some new features and some new unit tests and some testing code for multithreading
it is about 22 000 lines of code, still less than the original. XNA is definately
the future, MDX was great, but it was not updated for a long time and if you start
something new, go with the fresh XNA Framework! 
&lt;p&gt;
Here are some of my experiences from the process of writing Rocket Commander XNA.
Please note that some of these comments were written while I was developing and kinda
sleep deprived. Beware of the harsh tone, in the end all worked out great :)&lt;br&gt;
&lt;font size=4 color=#00FF00&gt;++&lt;/font&gt; means this topic was great and better than MDX.&lt;br&gt;
&lt;font size=4 color=#00FF00&gt;+&lt;/font&gt; means it was good and nice to work with.&lt;br&gt;
&lt;font size=4 color=#FF0000&gt;-&lt;/font&gt; means I did not like that feature or it was easier
in MDX.&lt;br&gt;
&lt;font size=4 color=#FF0000&gt;--&lt;/font&gt; means this was really annoying and should be
improved in the future. 
&lt;p&gt;
By the way: I did Rocket Commander XNA just for fun, but it also proves how great
XNA performs on the Xbox 360. Try to find any other game with this many polygons and
effects running in 1080p (1920x1080) with AA enabled on the Xbox 360 ^^ It does not
look as good as Gears of War or Halo 3, but it took only 1 man and a short time to
develop and it still pushes up to 80-100mio polys each second to the GPU (in some
early unit tests, the game runs fine with 20-30 mio polys per second most of the time,
check out the model class and its unit tests for more details).&lt;p&gt;
I also use the Rocket Commander XNA engine for 2 other smaller projects because I
like the fact that I can test and play these games on the Xbox 360 too and having
a complete engine up and running is always a great plus, even if you know how to do
a game. It is just easier if you got all the basics covered. 
&lt;p&gt;
&lt;table border=2&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;b&gt;Topic&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;
&lt;b&gt;Rating&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;
&lt;b&gt;Comments&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Sound&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#00FF00&gt;++&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
Very easy to use, 1 short class instead of 2 complex ones I had in MDX. Once you get
used to XAct you learn that it is a good tool for sound effects, at least if they
don't have to be loaded dynamically. The porting process was very simple for sound
effect files, they just had to be dragged to XACT and then the project had to be saved,
that's it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Music&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#FF0000&gt;--&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
A lot of converting, different formats, hard to handle, a lot to test, bad documentation.
The music from RC was below 5 MB, now it is over 50 MB, which just blows up the source
code. Even the compressed take up 13 MB on the PC (ADPCM) and 9 MB on the Xbox 360
(XMA), both in a quality below the original. The rest of the game content (5MB compressed
textures, models, effects, sound, etc.) stayed almost the same and could be reused
for the most parts.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Unit Testing&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#FF0000&gt;-&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
Harder to use on the Xbox 360, no edit and continue support in the compact .NET framework.
There are also no unit testing tools available and all you can do is to call static
unit tests from the program class, which is still useful, but harder to do. I still
prefer to test on windows. One great thing about the Xbox 360 is the fact that you
get multimonitor debugging for free if you have a TV screen and your PC screen. Debug
and step through code on your PC and see the result on the TV screen :)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Window handling&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#00FF00&gt;++&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
No extra code required, I could remove several classes and even the helper classes
that are still in Rocket Commander Xna are not required for the most parts. Except
for some of the game component classes and the design that is not really useful (more
about that below) the Game class is really easy to use and simplifies the process
to create a new game in a few minutes.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Shaders&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#00FF00&gt;++&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
Everything in XNA is shader based. The original Rocket Commander runs on fixed pipeline
only hardware too, but it was a lot of work to handle 2 ways to render everything.
With XNA you just have to write the shaders once and just use them. They work perfectly
on the PC (Shader Model 1.1 up to 3.0) and on the Xbox 360, all fx files compiled
without any problems.&lt;p&gt;
Some shaders had to be adjusted to be right-handed now instead of left-handed like
in MDX, but that did just take a few minutes to change and all the rest of the shader
code could be reused. In the last few months of XNA development I never had once a
problem with shaders in XNA, thats really great :)
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
IDE Features&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#FF0000&gt;-&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
MDX is much older and was never made popular by Microsoft. XNA is new, fresh and great,
but it is missing some serious features like Animations for Models. You can implement
it yourself, but why even bother with the content pipeline, do it all yourself. It
will be much easier and you can extend it in any way you need in the future.&lt;p&gt;
XNA development is currently also only avialable with XNA Game Studio Express, which
is painful if you are a pure Visual Studio 2005 Professional developer and have lots
of plugins you rely on every day (source code management, code rush, testdriven, slickedit,
explorer, and many more). This will change in the future and XNA will grow up and
dominate the whole world one day :)
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Content&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#FF0000&gt;--&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
Sorry, I just don't like the content pipeline (and I have been using it for several
months now)! It is bad for dynamically loading textures or shaders or reloadindg them
after changes (just not possible with compile-time generated content). On the windows
platform you can still load textures and shaders the normal way, which is good, but
loading .x file models is just not possible, you have to use the content pipeline.
And the content pipeline sucks feature-wise, you have to implement all of stuff yourself.&lt;p&gt;
This is my main problem, why should I re-implement generating tangents, shader technique
indices, fixing other x file problems, etc. all by myself in a custom content processor,
which is not easy to write IMO (bad docu again). By the time I did all that I would
have implemented a much more flexible and vesatile custom importer like from .collada
files, which are very popular these days ...
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Performance&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#00FF00&gt;+&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
The overall performance especially when just doing some benchmarks and performance
tests is absolutely perfect on both Windows and the Xbox 360. The GPU is pushed to
its limits and there is no reason why you should be afraid of managed code. Windows
performance is especially great, all my programs and games are completely GPU bound
even in low resolutions and even when they only have one thread. 
&lt;p&gt;
On the Xbox 360 the performance is much worse and you have to take many things into
consideration, which is hard because there is again not much documentation around.
For example the worst thing you can do on the Xbox 360 is to generate new data each
frame, even if you just create an enumerator by executing a foreach loop, it will
affect your performance. The good thing is that you have 3 cores (and 6 hardware threads)
at your fingertips, which allow you to optimize performance. It was possible for the
Rocket Commander game to optimize the game loop a lot because the physics and update
threads eat up almost 50% of the CPU time. On the PC it does not matter much because
my GPU is slowing everything down (see image below), but on the Xbox 360 I was able
to almost double the framerate using multiple threads, nice :) 
&lt;p&gt;
&lt;a href="images/RCXnaMultithreaded.jpg"&gt;&lt;img src="images/RCXnaMultithreadedsmall.jpg" border="0"&gt;
&lt;br&gt;
Click Image for to maximize it.&lt;/a&gt; 
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Usability&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#FF0000&gt;-&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
It gets a little easier though all the game helper classes, but the game component
class is pretty useless, you can implement something like that in 5 minutes yourself.
There is also a DrawableGameComponent class, but you have to call Draw yourself, whats
the point here? My classes have some Draw or Render method anyway, I don't need to
derive them from GameComponent, I can implement my own interfaces and implement exactly
the features I need. Often it is easier to give the Render method a few parameters
or even call it several times with different parameters, all that is not possible
with DrawableGameComponent.&lt;p&gt;
Next there is the content pipeline, which is just a pain in the ass for 3d models.
This makes the usability very bad, especially if you develop on Visual Studio 2005
(not Express), which does not support the content pipeline. Also if you are a Vista-Developer
XNA Game Studio Express will also not run as expected and my intern hates now both
Vista and XNA. It should not happen that someone can get so angry about such great
pieces of software, just because they don't work together ^^
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Porting&lt;/td&gt;
&lt;td&gt;
&lt;font size=4 color=#00FF00&gt;+&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;
If you have written a XNA game or have some XNA code flying around (like the Rocket
Commander XNA source code) it is very easy to port existing MDX code to XNA. If you
do it from the scratch it is a lot more work and testing until everything works out
the way you expect it, but overall it is easy to port from MDX to XNA. Thats very
cool, thank &lt;a href="http://blogs.msdn.com/tmiller/"&gt;the main MDX man Tom Miller&lt;/a&gt; for
that, who architected parts of XNA too. Porting is easy, but getting the game to work
the way you want on the Xbox 360 is not that easy. First of all you got that annoying
content pipeline again (I keep repeating myself, maybe I'm too angry ^^), then you
have to make sure that you don't render important User Interface on the none-visible
area of a monitor that is plugged into a Xbox 360. For example Rocket Commander was
only designed for 1 resolution to look good, it had a very small font for some texts
on the screen, which is unreadable on TV monitors. Rocket Commander did also not scale
well on Widescreen monitors and it rendered a lot of UI elements at the screen borders,
which were cut off on TV monitors.&lt;p&gt;
The porting took maybe 3-4 days, but I spend at least 4 more days for fixing UI elments
and improving the code on the Xbox 360, optimizing asteroid rendering, physics and
multithreading. I did not expect that it would take that long and I had only some
time in the evenings to even get some XNA work done.
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Most annoying&lt;/td&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;
Porting left-handed models, matrices and other complicated math functions over to
the right handed system that XNA uses. Maybe it would be easier to use left handed
matrices like in the original Rocket Commander for XNA too, but XNA does not provide
them and I did think getting it to work with a right handed system would be easier.
Then there is of course the problem getting the models into the content pipeline.
I used a special content processor, which is also included in the Rocket Commander
source code and it can be used for other projects too (I use it for everything I do
with XNA).&lt;p&gt;
Another annoying thing is the re-deploying of existing game content to the Xbox 360.
If you just have 5 files it will not matter to you, but if you got over 50 (Rocket
Commander) or even several hundert content files and sometimes due some crazy bug
all these files get re-compiled or re-deployed over and over again, it gets really
annoying. It takes 30-60 seconds and is not fun ... good think it does not happen
that often, but it is still annoying me. Maybe the main reason for regenerating the
content on my PC is the fact that I often switch between the Xbox 360 and Windows
platforms to test if everything is working the same way on both systems.
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Missing features&lt;/td&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;
The XNA version does have all the features from the original Rocket Commander game,
including all levels, sub menus and the whole game play. It does not have animated
models however because it is not supported out of the box in XNA and I did not have
time to reimplement this feature. It does also not support polygon based collision
checking for asteroids, which can sometimes be annoying if you fly near asteroids
or if you want to fly through the donut asteroid. The problem here is that the mesh
intersection methods are missing, all you can do is render models, not much else.
Last but not least XNA does not support any network code. On the windows platform
it would be possible to still use the Webservice to upload and get highscores, but
for compatibility with the Xbox 360 the code is currently commented out. If you want
to play with online highscores, just play the original Rocket Commander game. 
&lt;p&gt;
There are also some smaller issues like getting the bitmap data of a texture on the
Xbox 360. There is method called GetData in the texture class, but it is not supported
on the Xbox 360. There is also no bitmap class in XNA because you would need the System.Windows.Forms
namespace, which is not included in the .NET compact framework. I ended up saving
the level data into a custom file (.level) and then loading it again with help of
standard IO methods (byte by byte, but the loading process is still fast, less than
1 second for all textures, levels, models and sounds). 
&lt;p&gt;
The Rocket Commander Mods are also not supported yet, but porting them should be easy
with the existing Rocket Commander XNA source code. 
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Improvements&lt;/td&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;
The controls, especially for the Xbox 360 Controller have been improved. It is now
much easier to fly the rocket, the speed was increased and you can look at up to 4
times as much asteroids thanks to several optimizations and the great performance
gain of using multiple threads on the Xbox 360. There are also many smaller improvements
to the UI, the structure and some classes in the game, but the game looks still very
similar (see screenshots above).&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br&gt;
Maybe I will write a little more next week. I should get some sleep now, in a few
hours it is christmas time and I have not packed any presents yet. 
&lt;p&gt;
Now have fun with Rocket Commander XNA and have a nice christmas of course ;-) 
&lt;p&gt;
PS: I know my blog has currently some problems (posting and comments do not work as
they should), I will fix that in a week or two, have currently not much time to investigate
this issue.&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=442152d0-a014-47de-b9b1-4e8aed1d9bd3" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,442152d0-a014-47de-b9b1-4e8aed1d9bd3.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=13224d73-3fa9-40df-b78f-9faacb3b15b1</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,13224d73-3fa9-40df-b78f-9faacb3b15b1.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,13224d73-3fa9-40df-b78f-9faacb3b15b1.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=13224d73-3fa9-40df-b78f-9faacb3b15b1</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <a href="http://msdn.microsoft.com/directx/XNA/default.aspx">
          <img src="http://msdn.microsoft.com/directx/art/Hero/XNA_Hero_Banner2.jpg" border="0" />
        </a>
        <br />
        <br />
Microsoft released their <a href="http://msdn.microsoft.com/directx/XNA/default.aspx">XNA
Framework <span id="nointelliTXT">1.0 and XNA Game Studio Express
</span></a> today, which allow you to build games for Windows and the Xbox 360. To
compile and play your XNA games on the Xbox 360 you will need to join the "XNA Creators
Club" (for $49 per 4 months or $99 anually). There you will have access to additional
starter kits, features, etc.<br /><br />
I ported the Rocket Commander game to XNA, just for fun .. and it runs great. It is
optimized to run on all 3 cores of the Xbox 360 and I will finetune it a bit in the
next few days to run perfectly on the XNA 1.0 release. The performance is really good,
the current build has over 800 fps in PAL on the Xbox 360, in very high resolutions
(have only 1600x1200 monitor, but I will test it on 1920x1080 too later this week)
it still runs good with more than enough frames.<br /><br />
Here is a little preview picture, it shows about 8 times more asteroids and runs at
over 200 fps here. I will try to post some of the porting problems in the next few
days, for example all the network and internet code had to be ripped out from the
Xbox 360 build and the sound features are a little stripped down in XNA (no 3d listener
support, not easy or not even possible to do any stereo or surround sound, looks like
playback is all mono :-( ).<br /><br />
Early alpha screenshot of Rocket Commander XNA:<br /><img src="http://exdream.no-ip.info/blog/images/RocketCommanderXnaScreenshot0007.jpg" /><br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=13224d73-3fa9-40df-b78f-9faacb3b15b1" /></body>
      <title>XNA Game Studio 1.0 released</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,13224d73-3fa9-40df-b78f-9faacb3b15b1.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/12/11/XNAGameStudio10Released.aspx</link>
      <pubDate>Mon, 11 Dec 2006 17:58:09 GMT</pubDate>
      <description>
&lt;a href="http://msdn.microsoft.com/directx/XNA/default.aspx"&gt;&lt;img src="http://msdn.microsoft.com/directx/art/Hero/XNA_Hero_Banner2.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Microsoft released their &lt;a href="http://msdn.microsoft.com/directx/XNA/default.aspx"&gt;XNA
Framework &lt;span id="nointelliTXT"&gt;1.0 and XNA Game Studio Express
&lt;/a&gt; today, which allow you to build games for Windows and the Xbox 360. To compile
and play your XNA games on the Xbox 360 you will need to join the "XNA Creators Club"
(for $49 per 4 months or $99 anually). There you will have access to additional starter
kits, features, etc.&lt;br&gt;
&lt;br&gt;
I ported the Rocket Commander game to XNA, just for fun .. and it runs great. It is
optimized to run on all 3 cores of the Xbox 360 and I will finetune it a bit in the
next few days to run perfectly on the XNA 1.0 release. The performance is really good,
the current build has over 800 fps in PAL on the Xbox 360, in very high resolutions
(have only 1600x1200 monitor, but I will test it on 1920x1080 too later this week)
it still runs good with more than enough frames.&lt;br&gt;
&lt;br&gt;
Here is a little preview picture, it shows about 8 times more asteroids and runs at
over 200 fps here. I will try to post some of the porting problems in the next few
days, for example all the network and internet code had to be ripped out from the
Xbox 360 build and the sound features are a little stripped down in XNA (no 3d listener
support, not easy or not even possible to do any stereo or surround sound, looks like
playback is all mono :-( ).&lt;br&gt;
&lt;br&gt;
Early alpha screenshot of Rocket Commander XNA:&lt;br&gt;
&lt;img src="http://exdream.no-ip.info/blog/images/RocketCommanderXnaScreenshot0007.jpg"&gt;
&lt;br&gt;
&gt; &lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=13224d73-3fa9-40df-b78f-9faacb3b15b1" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,13224d73-3fa9-40df-b78f-9faacb3b15b1.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=e906a1f5-23d3-4142-8968-fec2307b2934</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,e906a1f5-23d3-4142-8968-fec2307b2934.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,e906a1f5-23d3-4142-8968-fec2307b2934.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e906a1f5-23d3-4142-8968-fec2307b2934</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Someone recorded XNA Racer, which was shown
at some Tokio Gameshow named "kotaku".<br /><br /><a href="http://www.kotaku.com/gaming/xna/clips-xna-racer-preview-213594.php">Here
is the original link.</a> Some harsh tone in those comments, no you don't have to
pay 99 dollars to play this game, it will be completly free. And about the "boring"
gameplay, hey it was not done, this was just an alpha preview and the game looks much
better now and is getting better physics and levels as we speak. Well, at least some
are comparing it to AAA titles, thats always nice (and totally crazy, you wouldn't
compare a house build by 1 guy to a scyscrapper).<br /><object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/-OHJpeCwOmk" /><param name="wmode" value="transparent" /><embed src="http://www.youtube.com/v/-OHJpeCwOmk" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"></embed></object><br />
Thanks for posting about it to <a href="http://thezbuffer.com/">ZMan </a>and <a href="http://amapplease.blogspot.com/">Ultrahead</a>.<br /><br />
I guess I have to release a video of the game myself, these leaked videos look not
very pretty and showing off an early alpha version has its disadvantages (almost 90%
of the ingame objects are missing, the video shows the second track, which is not
done yet, completely dummy and it was an early alpha version, the game runs now about
3 times faster).<br /><br />
As some of you (like <a href="http://thezbuffer.com">ZMan</a>) already found out,
there is also an XNA book coming out written by me. I just started a few weeks back
writing it (but it will be complete by the end of the year). Funny you can already <a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779">order
it on amazon</a>. I will write more about it when its done. You will not only learn
about game programming and XNA, but there will be plenty of practical examples in
the book. In every of the 14 chapters a new game is introduced and you go though the
process of writing a game from start to finish.<br /><br /><a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"><img src="http://ec1.images-amazon.com/images/P/0470126779.01._AA240_SCLZZZZZZZ_V35843563_.jpg" border="0" /></a><br /><p></p><br />
One final note: Canyon Commander is a lot of fun, it is a new mod, which will come
out in the next days.<br /><img src="http://exdream.no-ip.info/blog/content/binary/CanyonCommander01_small.jpg" border="0" /><br /><br />
Btw: The Coding4Fun site was redesigned in the last weeks and most of the old links
do not work anymore (which is something MSDN usually never does). But now most of
the content is back and can be found in the new categories (Rocket Commander is under
Games -&gt; Arcade). I also updated the link on <a href="http://www.RocketCommander.com">www.RocketCommander.com</a> and
the link for the video tutorials is:<br /><a href="http://msdn.microsoft.com/coding4fun/gaming/arcade/article.aspx?articleid=997852">http://msdn.microsoft.com/coding4fun/gaming/arcade/article.aspx?articleid=997852</a><br /><br />
Update: The old link works now too, I guess the MSDN relinking system is working as
expected now :)<br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=e906a1f5-23d3-4142-8968-fec2307b2934" /></body>
      <title>That leaked XNA Racer Video on YouTube</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,e906a1f5-23d3-4142-8968-fec2307b2934.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/14/ThatLeakedXNARacerVideoOnYouTube.aspx</link>
      <pubDate>Tue, 14 Nov 2006 21:22:27 GMT</pubDate>
      <description>Someone recorded XNA Racer, which was shown at some Tokio Gameshow named "kotaku".&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.kotaku.com/gaming/xna/clips-xna-racer-preview-213594.php"&gt;Here
is the original link.&lt;/a&gt; Some harsh tone in those comments, no you don't have to
pay 99 dollars to play this game, it will be completly free. And about the "boring"
gameplay, hey it was not done, this was just an alpha preview and the game looks much
better now and is getting better physics and levels as we speak. Well, at least some
are comparing it to AAA titles, thats always nice (and totally crazy, you wouldn't
compare a house build by 1 guy to a scyscrapper).&lt;br&gt;
&lt;object height="350" width="425"&gt;
&lt;param name="movie" value="http://www.youtube.com/v/-OHJpeCwOmk"&gt;
&lt;param name="wmode" value="transparent"&gt;&lt;embed src="http://www.youtube.com/v/-OHJpeCwOmk" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"&gt;
&lt;/object&gt;
&lt;br&gt;
Thanks for posting about it to &lt;a href="http://thezbuffer.com/"&gt;ZMan &lt;/a&gt;and &lt;a href="http://amapplease.blogspot.com/"&gt;Ultrahead&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
I guess I have to release a video of the game myself, these leaked videos look not
very pretty and showing off an early alpha version has its disadvantages (almost 90%
of the ingame objects are missing, the video shows the second track, which is not
done yet, completely dummy and it was an early alpha version, the game runs now about
3 times faster).&lt;br&gt;
&lt;br&gt;
As some of you (like &lt;a href="http://thezbuffer.com"&gt;ZMan&lt;/a&gt;) already found out,
there is also an XNA book coming out written by me. I just started a few weeks back
writing it (but it will be complete by the end of the year). Funny you can already &lt;a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"&gt;order
it on amazon&lt;/a&gt;. I will write more about it when its done. You will not only learn
about game programming and XNA, but there will be plenty of practical examples in
the book. In every of the 14 chapters a new game is introduced and you go though the
process of writing a game from start to finish.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.amazon.com/dp/0470126779?creativeASIN=0470126779"&gt;&lt;img src="http://ec1.images-amazon.com/images/P/0470126779.01._AA240_SCLZZZZZZZ_V35843563_.jpg" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;br&gt;
One final note: Canyon Commander is a lot of fun, it is a new mod, which will come
out in the next days.&lt;br&gt;
&lt;img src="http://exdream.no-ip.info/blog/content/binary/CanyonCommander01_small.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
Btw: The Coding4Fun site was redesigned in the last weeks and most of the old links
do not work anymore (which is something MSDN usually never does). But now most of
the content is back and can be found in the new categories (Rocket Commander is under
Games -&amp;gt; Arcade). I also updated the link on &lt;a href="http://www.RocketCommander.com"&gt;www.RocketCommander.com&lt;/a&gt; and
the link for the video tutorials is:&lt;br&gt;
&lt;a href="http://msdn.microsoft.com/coding4fun/gaming/arcade/article.aspx?articleid=997852"&gt;http://msdn.microsoft.com/coding4fun/gaming/arcade/article.aspx?articleid=997852&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Update: The old link works now too, I guess the MSDN relinking system is working as
expected now :)&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=e906a1f5-23d3-4142-8968-fec2307b2934" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,e906a1f5-23d3-4142-8968-fec2307b2934.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=f7415072-3f65-4d76-af10-1a4495183376</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,f7415072-3f65-4d76-af10-1a4495183376.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,f7415072-3f65-4d76-af10-1a4495183376.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=f7415072-3f65-4d76-af10-1a4495183376</wfw:commentRss>
      <slash:comments>3</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">It was nice in Seattle and a great experience
meeting the Microsoft XNA Team and people I met like ZMan. But I'm glad I'm back home.
There is nothing like the good old home PC, I can type 700 times faster here and it
feels much better to do any work here (or at the office here). 
<p>
Well, the day started yesterday for me, I have not slept yet. Let's get started with
some pictures. This is me leaving from the Hotel and waiting for a taxi. It took forever
because the traffic was so bad again in Seattle.<br /><a href="content/binary/seattle2006_63.jpg"><img src="content/binary/seattle2006_63_small.jpg" border="0" /></a></p><p></p><p>
Bye bye Seattle and all you friendly people in it.<br /><a href="content/binary/seattle2006_64.jpg"><img src="content/binary/seattle2006_64_small.jpg" border="0" /></a></p><p>
Checking in at the airport. Had to be there 3 hours earlier than the flight departures.
Was only 2 hours before that there (bad traffic and I got up a little late ^^).<br /><a href="content/binary/seattle2006_65.jpg"><img src="content/binary/seattle2006_65_small.jpg" border="0" /></a></p><p>
But I had to wait 2 hours anyway. The security checks were no big deal anymore. Getting
into the USA was much harder. Now it was just taking your shoes off, unpacking the
laptop and I was done. 
</p><p>
A plane is getting filled up and loaded (my plane was a little bigger and on the other
side).<br /><a href="content/binary/seattle2006_66.jpg"><img src="content/binary/seattle2006_66_small.jpg" border="0" /></a></p><p>
After 9 and a half hours flying around the world (from Amsterdam to Seattle took almost
2 hours more) we landed in Amsterdam and it was already Tuesday morning here. Btw:
You can see me in the picture holding my crappy cell phone and using it as a camera.<br /><a href="content/binary/seattle2006_67.jpg"><img src="content/binary/seattle2006_67_small.jpg" border="0" /></a></p><p>
The Amsterdam Airport and more security checks, but not so long waiting times in the
morning, much nicer.<br /><a href="content/binary/seattle2006_68.jpg"><img src="content/binary/seattle2006_68_small.jpg" border="0" /></a></p><p>
After adding 9 hours to my clock it was Tuesday morning too. I had to wait over 2
hours for my plane to Hannover and was really tired right now. But everything went
fine and I landed in germany on schedule.<br /><a href="content/binary/seattle2006_69.jpg"><img src="content/binary/seattle2006_69_small.jpg" border="0" /></a></p><p>
The plane is ready to "hop" to my "city" ^^ just took 45 minutes, pretty quick.<br /><a href="content/binary/seattle2006_70.jpg"><img src="content/binary/seattle2006_70_small.jpg" border="0" /></a></p><p>
Getting a train ticket to finally get home. Hey, public transportation again, yeah
:-)<br /><a href="content/binary/seattle2006_71.jpg"><img src="content/binary/seattle2006_71_small.jpg" border="0" /></a></p><p>
Back in Hannover everything looked so small, we don't have any high skyscrappers here.
Strange how quickly I got used to that. Hope I can get rid of my adopted coffee habit
too.<br /><a href="content/binary/seattle2006_72.jpg"><img src="content/binary/seattle2006_72_small.jpg" border="0" /></a></p><p>
Time for some sleep. Got so many emails and stuff I have to do after I weak up, I
better sleep for 20 hours now ;-)
</p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=f7415072-3f65-4d76-af10-1a4495183376" /></body>
      <title>Bye Seattle, Back to Germany!</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,f7415072-3f65-4d76-af10-1a4495183376.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/14/ByeSeattleBackToGermany.aspx</link>
      <pubDate>Tue, 14 Nov 2006 11:24:23 GMT</pubDate>
      <description>It was nice in Seattle and a great experience meeting the Microsoft XNA Team and people I met like ZMan. But I'm glad I'm back home. There is nothing like the good old home PC, I can type 700 times faster here and it feels much better to do any work here (or at the office here).
&lt;p&gt;
Well, the day started yesterday for me, I have not slept yet. Let's get started with
some pictures. This is me leaving from the Hotel and waiting for a taxi. It took forever
because the traffic was so bad again in Seattle.&lt;br&gt;
&lt;a href="content/binary/seattle2006_63.jpg"&gt;&lt;img src="content/binary/seattle2006_63_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
Bye bye Seattle and all you friendly people in it.&lt;br&gt;
&lt;a href="content/binary/seattle2006_64.jpg"&gt;&lt;img src="content/binary/seattle2006_64_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Checking in at the airport. Had to be there 3 hours earlier than the flight departures.
Was only 2 hours before that there (bad traffic and I got up a little late ^^).&lt;br&gt;
&lt;a href="content/binary/seattle2006_65.jpg"&gt;&lt;img src="content/binary/seattle2006_65_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
But I had to wait 2 hours anyway. The security checks were no big deal anymore. Getting
into the USA was much harder. Now it was just taking your shoes off, unpacking the
laptop and I was done. 
&lt;/p&gt;
&lt;p&gt;
A plane is getting filled up and loaded (my plane was a little bigger and on the other
side).&lt;br&gt;
&lt;a href="content/binary/seattle2006_66.jpg"&gt;&lt;img src="content/binary/seattle2006_66_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
After 9 and a half hours flying around the world (from Amsterdam to Seattle took almost
2 hours more) we landed in Amsterdam and it was already Tuesday morning here. Btw:
You can see me in the picture holding my crappy cell phone and using it as a camera.&lt;br&gt;
&lt;a href="content/binary/seattle2006_67.jpg"&gt;&lt;img src="content/binary/seattle2006_67_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
The Amsterdam Airport and more security checks, but not so long waiting times in the
morning, much nicer.&lt;br&gt;
&lt;a href="content/binary/seattle2006_68.jpg"&gt;&lt;img src="content/binary/seattle2006_68_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
After adding 9 hours to my clock it was Tuesday morning too. I had to wait over 2
hours for my plane to Hannover and was really tired right now. But everything went
fine and I landed in germany on schedule.&lt;br&gt;
&lt;a href="content/binary/seattle2006_69.jpg"&gt;&lt;img src="content/binary/seattle2006_69_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
The plane is ready to "hop" to my "city" ^^ just took 45 minutes, pretty quick.&lt;br&gt;
&lt;a href="content/binary/seattle2006_70.jpg"&gt;&lt;img src="content/binary/seattle2006_70_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Getting a train ticket to finally get home. Hey, public transportation again, yeah
:-)&lt;br&gt;
&lt;a href="content/binary/seattle2006_71.jpg"&gt;&lt;img src="content/binary/seattle2006_71_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Back in Hannover everything looked so small, we don't have any high skyscrappers here.
Strange how quickly I got used to that. Hope I can get rid of my adopted coffee habit
too.&lt;br&gt;
&lt;a href="content/binary/seattle2006_72.jpg"&gt;&lt;img src="content/binary/seattle2006_72_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Time for some sleep. Got so many emails and stuff I have to do after I weak up, I
better sleep for 20 hours now ;-)
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=f7415072-3f65-4d76-af10-1a4495183376" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,f7415072-3f65-4d76-af10-1a4495183376.aspx</comments>
      <category>All;Other;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=688c6aad-54f5-41cb-b80a-ad261c72eb85</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,688c6aad-54f5-41cb-b80a-ad261c72eb85.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,688c6aad-54f5-41cb-b80a-ad261c72eb85.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=688c6aad-54f5-41cb-b80a-ad261c72eb85</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">The day started off rainy and stayed that
way. This is my last day in Seattle. I will fly back to germany tomorrow.<br /><a href="content/binary/seattle2006_54.jpg"><img src="content/binary/seattle2006_54_small.jpg" border="0" /></a><p>
I went to the Seattle Center Park again, I thought maybe the weather gets a little
better later to go up to the Space Needle and take some photos.<br /><a href="content/binary/seattle2006_55.jpg"><img src="content/binary/seattle2006_55_small.jpg" border="0" /></a></p><p>
The streets and parking lots are not as filled as in the week. The skyline of Seattle
looks nice as always.<br /><a href="content/binary/seattle2006_56.jpg"><img src="content/binary/seattle2006_56_small.jpg" border="0" /></a></p><p>
After checking out the park for a while I also found 2 big supermarkets right beside
each other. According to google maps they are the only supermarkets in a 5km radius.
Yeah, pretty clever to build them right beside each other .. omg. 
</p><p>
The food in the USA is crazy, 500 different kind of chips, milk or bread, but not
many different articles. In a german store you find much more different products in
a smaller market. The products are also more expensive, about twice as much. You also
can't buy small portions, everything is superlarge, megapack and labeled to let you
buy 3 to save a few cents. The personal is incredible friendly and kinda annoying
if you are not used to it like me ^^ Other than that it was a nice experience to see
Americans go shopping. 
</p><p>
There is the monorail line again.<br /><a href="content/binary/seattle2006_57.jpg"><img src="content/binary/seattle2006_57_small.jpg" border="0" /></a></p><p>
And the monorail train, which is coming into the station.<br /><a href="content/binary/seattle2006_58.jpg"><img src="content/binary/seattle2006_58_small.jpg" border="0" /></a></p><p>
Nice wobbly effect on that wall :)<br /><a href="content/binary/seattle2006_59.jpg"><img src="content/binary/seattle2006_59_small.jpg" border="0" /></a></p><p>
The skyline again, but the weather is not looking good.<br /><a href="content/binary/seattle2006_60.jpg"><img src="content/binary/seattle2006_60_small.jpg" border="0" /></a></p><p>
I checked out some movie theatres on the internet, but I was confused that some of
them only show 1 movie at a time. I was not interested in the movie showing at the
IMAX or that other big theatre, so I went to the Cineplex.<br /><a href="content/binary/seattle2006_61.jpg"><img src="content/binary/seattle2006_61_small.jpg" border="0" /></a></p><p>
Watching the movie was pretty nice. It does not cost more than in germany and there
are just a few minutes of commericals in the beginning, not half an hour like back
home.<br /><a href="content/binary/seattle2006_62.jpg"><img src="content/binary/seattle2006_62_small.jpg" border="0" /></a></p><p>
After the movie I went back to the Seattle Center Park, but it was raining too much
and I lost any interest to go to any other attractions. I went back to the hotel and
I will code a little bit right now. 
</p><p>
Some more photos from my journey back tomorrow.<img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=688c6aad-54f5-41cb-b80a-ad261c72eb85" /></p></body>
      <title>Seattle Day 5 - Another rainy day</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,688c6aad-54f5-41cb-b80a-ad261c72eb85.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/13/SeattleDay5AnotherRainyDay.aspx</link>
      <pubDate>Mon, 13 Nov 2006 01:41:37 GMT</pubDate>
      <description>The day started off rainy and stayed that way. This is my last day in Seattle. I will fly back to germany tomorrow.&lt;br&gt;
&lt;a href="content/binary/seattle2006_54.jpg"&gt;&lt;img src="content/binary/seattle2006_54_small.jpg" border="0"&gt;&lt;/a&gt; &gt;
&lt;p&gt;
I went to the Seattle Center Park again, I thought maybe the weather gets a little
better later to go up to the Space Needle and take some photos.&lt;br&gt;
&lt;a href="content/binary/seattle2006_55.jpg"&gt;&lt;img src="content/binary/seattle2006_55_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
The streets and parking lots are not as filled as in the week. The skyline of Seattle
looks nice as always.&lt;br&gt;
&lt;a href="content/binary/seattle2006_56.jpg"&gt;&lt;img src="content/binary/seattle2006_56_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
After checking out the park for a while I also found 2 big supermarkets right beside
each other. According to google maps they are the only supermarkets in a 5km radius.
Yeah, pretty clever to build them right beside each other .. omg. 
&lt;p&gt;
The food in the USA is crazy, 500 different kind of chips, milk or bread, but not
many different articles. In a german store you find much more different products in
a smaller market. The products are also more expensive, about twice as much. You also
can't buy small portions, everything is superlarge, megapack and labeled to let you
buy 3 to save a few cents. The personal is incredible friendly and kinda annoying
if you are not used to it like me ^^ Other than that it was a nice experience to see
Americans go shopping. 
&lt;p&gt;
There is the monorail line again.&lt;br&gt;
&lt;a href="content/binary/seattle2006_57.jpg"&gt;&lt;img src="content/binary/seattle2006_57_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
And the monorail train, which is coming into the station.&lt;br&gt;
&lt;a href="content/binary/seattle2006_58.jpg"&gt;&lt;img src="content/binary/seattle2006_58_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Nice wobbly effect on that wall :)&lt;br&gt;
&lt;a href="content/binary/seattle2006_59.jpg"&gt;&lt;img src="content/binary/seattle2006_59_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
The skyline again, but the weather is not looking good.&lt;br&gt;
&lt;a href="content/binary/seattle2006_60.jpg"&gt;&lt;img src="content/binary/seattle2006_60_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
I checked out some movie theatres on the internet, but I was confused that some of
them only show 1 movie at a time. I was not interested in the movie showing at the
IMAX or that other big theatre, so I went to the Cineplex.&lt;br&gt;
&lt;a href="content/binary/seattle2006_61.jpg"&gt;&lt;img src="content/binary/seattle2006_61_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Watching the movie was pretty nice. It does not cost more than in germany and there
are just a few minutes of commericals in the beginning, not half an hour like back
home.&lt;br&gt;
&lt;a href="content/binary/seattle2006_62.jpg"&gt;&lt;img src="content/binary/seattle2006_62_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
After the movie I went back to the Seattle Center Park, but it was raining too much
and I lost any interest to go to any other attractions. I went back to the hotel and
I will code a little bit right now. 
&lt;p&gt;
Some more photos from my journey back tomorrow.&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=688c6aad-54f5-41cb-b80a-ad261c72eb85" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,688c6aad-54f5-41cb-b80a-ad261c72eb85.aspx</comments>
      <category>All;Other;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=b0a2e79e-9421-4fc3-809e-209b41a1b6fd</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,b0a2e79e-9421-4fc3-809e-209b41a1b6fd.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,b0a2e79e-9421-4fc3-809e-209b41a1b6fd.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=b0a2e79e-9421-4fc3-809e-209b41a1b6fd</wfw:commentRss>
      <slash:comments>3</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Here are some pictures of my little tour
through Seattle today. I made like 150 photos, but I don't want to post that many.
Instead of doing an introduction here, lets just go to the photos. 
<p>
After a rude wakeup from the housekeeping lady that didn't see me in my bed (how is
that even possible?) I collected some tourist info brochures and checked out where
I want to go today. Later I met up with Christina and Jerry and had some brunch. Not
only do Americans go out to eat in the evening, lunch and even breakfast/brunch is
popular too. I guess I can never adapt to that, it just costs so much time going out
all the time .. 
</p><p>
Anyway, we ended up in the Fremont District. This is the Aurora Ave. North (99) Highway.<br /><a href="content/binary/seattle2006_16.jpg"><img src="content/binary/seattle2006_16_small.jpg" border="0" /></a></p><p>
And under it there is a troll eating and stealing cars. Its not a myth, there he is,
good thing I don't own a car.<br /><a href="content/binary/seattle2006_17.jpg"><img src="content/binary/seattle2006_17_small.jpg" border="0" /></a></p><p>
And the other direction. Nice HDR effect btw. It does also look a little nicer than
my XNA Racer game from below the road, but well, the game is above the road and it
looks good there.<br /><a href="content/binary/seattle2006_18.jpg"><img src="content/binary/seattle2006_18_small.jpg" border="0" /></a></p><p>
Now thats a pretty interesting sign. It does not only tell you about the local directions,
it has also Taiwan, the Guggenheim museum in New York and the center of the world
on it. Just in case you forgot about any of these.<br /><a href="content/binary/seattle2006_19.jpg"><img src="content/binary/seattle2006_19_small.jpg" border="0" /></a></p><p>
There is the Seattle Space Needle at daylight and the Seattle Center Park it is in.
We will come back to that later.<br /><a href="content/binary/seattle2006_20.jpg"><img src="content/binary/seattle2006_20_small.jpg" border="0" /></a></p><p>
The skyline of Seattle at daylight. This picture was taken from the bay area. I'm
on my way to the Seattle Aquarium.<br /><a href="content/binary/seattle2006_21.jpg"><img src="content/binary/seattle2006_21_small.jpg" border="0" /></a></p><p>
Yay, some water .. But it is very cold all year, you can't even swim in the ocean
in the summer time.<br /><a href="content/binary/seattle2006_22.jpg"><img src="content/binary/seattle2006_22_small.jpg" border="0" /></a></p><p>
Here are some pictures from inside the Seattle Aquarium. This are 2 sea otters having
some fun.<br /><a href="content/binary/seattle2006_23.jpg"><img src="content/binary/seattle2006_23_small.jpg" border="0" /></a></p><p>
And some seals swimming around. Good thing no sharks are here. Hey wait a second,
a little further along they might be some.<br /><a href="content/binary/seattle2006_24.jpg"><img src="content/binary/seattle2006_24_small.jpg" border="0" /></a></p><p>
This room is pretty cool. It is basically a sphere with little windows in every direction.
And it is underwater, which would make sense in an aquarium with all these fishes
swimming around.<br /><a href="content/binary/seattle2006_25.jpg"><img src="content/binary/seattle2006_25_small.jpg" border="0" /></a></p><p>
Where are all these bubbles are coming from, and why is there a yellow tube going
down?<br /><a href="content/binary/seattle2006_26.jpg"><img src="content/binary/seattle2006_26_small.jpg" border="0" /></a></p><p>
Oh, a scuba diver is doing some fishing. Well, that is not really a big challenge
with all these fish in this tank.<br /><a href="content/binary/seattle2006_27.jpg"><img src="content/binary/seattle2006_27_small.jpg" border="0" /></a></p><p>
Some starfish, which can be touched. They are rock solid.<br /><a href="content/binary/seattle2006_28.jpg"><img src="content/binary/seattle2006_28_small.jpg" border="0" /></a></p><p>
But there were also a lot of wobbly and soft fishes and plants in the water, which
felt strange.<br /><a href="content/binary/seattle2006_29.jpg"><img src="content/binary/seattle2006_29_small.jpg" border="0" /></a></p><p>
Ahhh, there is a shark above me. Ohh, its just plastic.<br /><a href="content/binary/seattle2006_30.jpg"><img src="content/binary/seattle2006_30_small.jpg" border="0" /></a></p><p>
Hey, wait a second, this ones are not plastic. I wounder if they are strong enough
to kill me. They don't look very big or strong. But I'm no jackass going into the
water to find out :)<br /><a href="content/binary/seattle2006_31.jpg"><img src="content/binary/seattle2006_31_small.jpg" border="0" /></a></p><p>
Some very colorful fishes.<br /><a href="content/binary/seattle2006_32.jpg"><img src="content/binary/seattle2006_32_small.jpg" border="0" /></a></p><p>
And some more colorful plants. At least I'm not the only one taking pictures. But
I guess I'm the only one blogging about it and taking pictures of other people taking
pictures.<br /><a href="content/binary/seattle2006_33.jpg"><img src="content/binary/seattle2006_33_small.jpg" border="0" /></a></p><p>
Enough of that aquarium. Let's check out this "Ye Olde Curiosity Shop".<br /><a href="content/binary/seattle2006_34.jpg"><img src="content/binary/seattle2006_34_small.jpg" border="0" /></a></p><p>
3 Chinese Girls testing out crazy hats. But there was nothing useful in the shop for
me. I just got a couple of postcards.<br /><a href="content/binary/seattle2006_35.jpg"><img src="content/binary/seattle2006_35_small.jpg" border="0" /></a></p><p>
Wait a second? After leaving the shop and walking along the bay there is another shop
with the same name on it? Deja vu. The 2 shops are actually the same and for some
reason it is "normal" here to put up the same buildings right beside each other. For
example Seattle has build 2 new sport stadiums right beside each other instead of
improving the roads or even think of a better way to do public transportation.<br /><a href="content/binary/seattle2006_36.jpg"><img src="content/binary/seattle2006_36_small.jpg" border="0" /></a></p><p>
Time to leave the bay area and head to the city.<br /><a href="content/binary/seattle2006_38.jpg"><img src="content/binary/seattle2006_38_small.jpg" border="0" /></a></p><p>
Lets take the underground tour, so many people told me I had to do that.<br /><a href="content/binary/seattle2006_39.jpg"><img src="content/binary/seattle2006_39_small.jpg" border="0" /></a></p><p>
After an introduction and some history about Seattle the tour began. Hey look over
there, a sky scraper.<br /><a href="content/binary/seattle2006_40.jpg"><img src="content/binary/seattle2006_40_small.jpg" border="0" /></a></p><p>
This is actually the Smith Tower and it was once the biggest building in the US. It
was build by the Lyman C. Smith, which was one of the first manufacturer of typewriters.
Good thing I got my own layout and don't have to live with same same layout that was
invented over 100 years ago to prevent the keys of the typewriters to get stuck when
typing nearby keys too fast.<br /><a href="content/binary/seattle2006_41.jpg"><img src="content/binary/seattle2006_41_small.jpg" border="0" /></a></p><p>
Finally underground, which was once the ground level for this area of Seattle. It
was elevated to move everything up and make the city more secure and save against
floodings. But why am I looking at a toilet? Ohh well, toilets with the flush ability
were inveted here too ..<br /><a href="content/binary/seattle2006_42.jpg"><img src="content/binary/seattle2006_42_small.jpg" border="0" /></a></p><p>
This was the nice lady touring us through the underground. She made a lot of jokes
and we didn't get very much of them, but she kept going, which was funny again. In
the background you see a pic of time before the great fire in Seattle that destroyed
all these newly build wodden houses.<br /><a href="content/binary/seattle2006_43.jpg"><img src="content/binary/seattle2006_43_small.jpg" border="0" /></a></p><p>
Some junk down here from the time they build the new elevated street level.<br /><a href="content/binary/seattle2006_44.jpg"><img src="content/binary/seattle2006_44_small.jpg" border="0" /></a></p><p>
An old rusty tank.<br /><a href="content/binary/seattle2006_45.jpg"><img src="content/binary/seattle2006_45_small.jpg" border="0" /></a></p><p>
I also took a lot more pictures, but it was way too dark down there. And when I got
up it was dark too, but still kinda early (I sometimes stay up at this time ^^). Well,
my camera could not take any decent pictures and it has a long length of exposure
(which means I had to stay still for few seconds to get a steady image). 
</p><p>
Anyway, here are some random pictures from Seattle.<br /><a href="content/binary/seattle2006_46.jpg"><img src="content/binary/seattle2006_46_small.jpg" border="0" /></a></p><p>
This is the bottom of the pretty tall Rainier Square building with a nice laser showing
some figures.<br /><a href="content/binary/seattle2006_47.jpg"><img src="content/binary/seattle2006_47_small.jpg" border="0" /></a></p><p>
A glowing christmas tree made out of light tubes.<br /><a href="content/binary/seattle2006_48.jpg"><img src="content/binary/seattle2006_48_small.jpg" border="0" /></a></p><p>
This is how taxis look in Seattle.<br /><a href="content/binary/seattle2006_49.jpg"><img src="content/binary/seattle2006_49_small.jpg" border="0" /></a></p><p>
The monorail, a pretty cool train to drive you from the center of the city to the
Seattle Center (where the Space Needle is) in just a couple of minutes. It also doesn't
cost anything, but it just drives back and forth between these 2 points on a 3 stores
high railway.<br /><a href="content/binary/seattle2006_50.jpg"><img src="content/binary/seattle2006_50_small.jpg" border="0" /></a></p><p>
This is the Seattle Space Needle tower from below. But it was already very dark and
it would not make much sense to take pictures from above with this crappy camera.
I will probably come back here tomorrow and then waste the 14 dollars it takes just
to get up there.<br /><a href="content/binary/seattle2006_51.jpg"><img src="content/binary/seattle2006_51_small.jpg" border="0" /></a></p><p>
Before going back to my hotel I checked out the park a little bit and saw this cool
taffy machine.<br /><a href="content/binary/seattle2006_52.jpg"><img src="content/binary/seattle2006_52_small.jpg" border="0" /></a></p><p>
Well, this is actually a nice sign for me as the last pedestrian standing. I was just
a few hundred meters from my hotel, but this crazy 6 lane road was separating me from
the way to my hotel.<br /><a href="content/binary/seattle2006_53.jpg"><img src="content/binary/seattle2006_53_small.jpg" border="0" /></a></p><p>
Finally home I can now to some coding, my hands are shaking, I have to do something.
But maybe it is just all that coffee finally kicking in ;-)
</p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=b0a2e79e-9421-4fc3-809e-209b41a1b6fd" /></body>
      <title>Seattle Day 4 - From a tourist point of view</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,b0a2e79e-9421-4fc3-809e-209b41a1b6fd.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/12/SeattleDay4FromATouristPointOfView.aspx</link>
      <pubDate>Sun, 12 Nov 2006 06:52:10 GMT</pubDate>
      <description>Here are some pictures of my little tour through Seattle today. I made like 150 photos, but I don't want to post that many. Instead of doing an introduction here, lets just go to the photos.
&lt;p&gt;
After a rude wakeup from the housekeeping lady that didn't see me in my bed (how is
that even possible?) I collected some tourist info brochures and checked out where
I want to go today. Later I met up with Christina and Jerry and had some brunch. Not
only do Americans go out to eat in the evening, lunch and even breakfast/brunch is
popular too. I guess I can never adapt to that, it just costs so much time going out
all the time .. 
&lt;/p&gt;
&lt;p&gt;
Anyway, we ended up in the Fremont District. This is the Aurora Ave. North (99) Highway.&lt;br&gt;
&lt;a href="content/binary/seattle2006_16.jpg"&gt;&lt;img src="content/binary/seattle2006_16_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
And under it there is a troll eating and stealing cars. Its not a myth, there he is,
good thing I don't own a car.&lt;br&gt;
&lt;a href="content/binary/seattle2006_17.jpg"&gt;&lt;img src="content/binary/seattle2006_17_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
And the other direction. Nice HDR effect btw. It does also look a little nicer than
my XNA Racer game from below the road, but well, the game is above the road and it
looks good there.&lt;br&gt;
&lt;a href="content/binary/seattle2006_18.jpg"&gt;&lt;img src="content/binary/seattle2006_18_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Now thats a pretty interesting sign. It does not only tell you about the local directions,
it has also Taiwan, the Guggenheim museum in New York and the center of the world
on it. Just in case you forgot about any of these.&lt;br&gt;
&lt;a href="content/binary/seattle2006_19.jpg"&gt;&lt;img src="content/binary/seattle2006_19_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
There is the Seattle Space Needle at daylight and the Seattle Center Park it is in.
We will come back to that later.&lt;br&gt;
&lt;a href="content/binary/seattle2006_20.jpg"&gt;&lt;img src="content/binary/seattle2006_20_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
The skyline of Seattle at daylight. This picture was taken from the bay area. I'm
on my way to the Seattle Aquarium.&lt;br&gt;
&lt;a href="content/binary/seattle2006_21.jpg"&gt;&lt;img src="content/binary/seattle2006_21_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Yay, some water .. But it is very cold all year, you can't even swim in the ocean
in the summer time.&lt;br&gt;
&lt;a href="content/binary/seattle2006_22.jpg"&gt;&lt;img src="content/binary/seattle2006_22_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Here are some pictures from inside the Seattle Aquarium. This are 2 sea otters having
some fun.&lt;br&gt;
&lt;a href="content/binary/seattle2006_23.jpg"&gt;&lt;img src="content/binary/seattle2006_23_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
And some seals swimming around. Good thing no sharks are here. Hey wait a second,
a little further along they might be some.&lt;br&gt;
&lt;a href="content/binary/seattle2006_24.jpg"&gt;&lt;img src="content/binary/seattle2006_24_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
This room is pretty cool. It is basically a sphere with little windows in every direction.
And it is underwater, which would make sense in an aquarium with all these fishes
swimming around.&lt;br&gt;
&lt;a href="content/binary/seattle2006_25.jpg"&gt;&lt;img src="content/binary/seattle2006_25_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Where are all these bubbles are coming from, and why is there a yellow tube going
down?&lt;br&gt;
&lt;a href="content/binary/seattle2006_26.jpg"&gt;&lt;img src="content/binary/seattle2006_26_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Oh, a scuba diver is doing some fishing. Well, that is not really a big challenge
with all these fish in this tank.&lt;br&gt;
&lt;a href="content/binary/seattle2006_27.jpg"&gt;&lt;img src="content/binary/seattle2006_27_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Some starfish, which can be touched. They are rock solid.&lt;br&gt;
&lt;a href="content/binary/seattle2006_28.jpg"&gt;&lt;img src="content/binary/seattle2006_28_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
But there were also a lot of wobbly and soft fishes and plants in the water, which
felt strange.&lt;br&gt;
&lt;a href="content/binary/seattle2006_29.jpg"&gt;&lt;img src="content/binary/seattle2006_29_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Ahhh, there is a shark above me. Ohh, its just plastic.&lt;br&gt;
&lt;a href="content/binary/seattle2006_30.jpg"&gt;&lt;img src="content/binary/seattle2006_30_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Hey, wait a second, this ones are not plastic. I wounder if they are strong enough
to kill me. They don't look very big or strong. But I'm no jackass going into the
water to find out :)&lt;br&gt;
&lt;a href="content/binary/seattle2006_31.jpg"&gt;&lt;img src="content/binary/seattle2006_31_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Some very colorful fishes.&lt;br&gt;
&lt;a href="content/binary/seattle2006_32.jpg"&gt;&lt;img src="content/binary/seattle2006_32_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
And some more colorful plants. At least I'm not the only one taking pictures. But
I guess I'm the only one blogging about it and taking pictures of other people taking
pictures.&lt;br&gt;
&lt;a href="content/binary/seattle2006_33.jpg"&gt;&lt;img src="content/binary/seattle2006_33_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Enough of that aquarium. Let's check out this "Ye Olde Curiosity Shop".&lt;br&gt;
&lt;a href="content/binary/seattle2006_34.jpg"&gt;&lt;img src="content/binary/seattle2006_34_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
3 Chinese Girls testing out crazy hats. But there was nothing useful in the shop for
me. I just got a couple of postcards.&lt;br&gt;
&lt;a href="content/binary/seattle2006_35.jpg"&gt;&lt;img src="content/binary/seattle2006_35_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Wait a second? After leaving the shop and walking along the bay there is another shop
with the same name on it? Deja vu. The 2 shops are actually the same and for some
reason it is "normal" here to put up the same buildings right beside each other. For
example Seattle has build 2 new sport stadiums right beside each other instead of
improving the roads or even think of a better way to do public transportation.&lt;br&gt;
&lt;a href="content/binary/seattle2006_36.jpg"&gt;&lt;img src="content/binary/seattle2006_36_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Time to leave the bay area and head to the city.&lt;br&gt;
&lt;a href="content/binary/seattle2006_38.jpg"&gt;&lt;img src="content/binary/seattle2006_38_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Lets take the underground tour, so many people told me I had to do that.&lt;br&gt;
&lt;a href="content/binary/seattle2006_39.jpg"&gt;&lt;img src="content/binary/seattle2006_39_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
After an introduction and some history about Seattle the tour began. Hey look over
there, a sky scraper.&lt;br&gt;
&lt;a href="content/binary/seattle2006_40.jpg"&gt;&lt;img src="content/binary/seattle2006_40_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
This is actually the Smith Tower and it was once the biggest building in the US. It
was build by the Lyman C. Smith, which was one of the first manufacturer of typewriters.
Good thing I got my own layout and don't have to live with same same layout that was
invented over 100 years ago to prevent the keys of the typewriters to get stuck when
typing nearby keys too fast.&lt;br&gt;
&lt;a href="content/binary/seattle2006_41.jpg"&gt;&lt;img src="content/binary/seattle2006_41_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Finally underground, which was once the ground level for this area of Seattle. It
was elevated to move everything up and make the city more secure and save against
floodings. But why am I looking at a toilet? Ohh well, toilets with the flush ability
were inveted here too ..&lt;br&gt;
&lt;a href="content/binary/seattle2006_42.jpg"&gt;&lt;img src="content/binary/seattle2006_42_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
This was the nice lady touring us through the underground. She made a lot of jokes
and we didn't get very much of them, but she kept going, which was funny again. In
the background you see a pic of time before the great fire in Seattle that destroyed
all these newly build wodden houses.&lt;br&gt;
&lt;a href="content/binary/seattle2006_43.jpg"&gt;&lt;img src="content/binary/seattle2006_43_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Some junk down here from the time they build the new elevated street level.&lt;br&gt;
&lt;a href="content/binary/seattle2006_44.jpg"&gt;&lt;img src="content/binary/seattle2006_44_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
An old rusty tank.&lt;br&gt;
&lt;a href="content/binary/seattle2006_45.jpg"&gt;&lt;img src="content/binary/seattle2006_45_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
I also took a lot more pictures, but it was way too dark down there. And when I got
up it was dark too, but still kinda early (I sometimes stay up at this time ^^). Well,
my camera could not take any decent pictures and it has a long length of exposure
(which means I had to stay still for few seconds to get a steady image). 
&lt;/p&gt;
&lt;p&gt;
Anyway, here are some random pictures from Seattle.&lt;br&gt;
&lt;a href="content/binary/seattle2006_46.jpg"&gt;&lt;img src="content/binary/seattle2006_46_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
This is the bottom of the pretty tall Rainier Square building with a nice laser showing
some figures.&lt;br&gt;
&lt;a href="content/binary/seattle2006_47.jpg"&gt;&lt;img src="content/binary/seattle2006_47_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
A glowing christmas tree made out of light tubes.&lt;br&gt;
&lt;a href="content/binary/seattle2006_48.jpg"&gt;&lt;img src="content/binary/seattle2006_48_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
This is how taxis look in Seattle.&lt;br&gt;
&lt;a href="content/binary/seattle2006_49.jpg"&gt;&lt;img src="content/binary/seattle2006_49_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
The monorail, a pretty cool train to drive you from the center of the city to the
Seattle Center (where the Space Needle is) in just a couple of minutes. It also doesn't
cost anything, but it just drives back and forth between these 2 points on a 3 stores
high railway.&lt;br&gt;
&lt;a href="content/binary/seattle2006_50.jpg"&gt;&lt;img src="content/binary/seattle2006_50_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
This is the Seattle Space Needle tower from below. But it was already very dark and
it would not make much sense to take pictures from above with this crappy camera.
I will probably come back here tomorrow and then waste the 14 dollars it takes just
to get up there.&lt;br&gt;
&lt;a href="content/binary/seattle2006_51.jpg"&gt;&lt;img src="content/binary/seattle2006_51_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Before going back to my hotel I checked out the park a little bit and saw this cool
taffy machine.&lt;br&gt;
&lt;a href="content/binary/seattle2006_52.jpg"&gt;&lt;img src="content/binary/seattle2006_52_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Well, this is actually a nice sign for me as the last pedestrian standing. I was just
a few hundred meters from my hotel, but this crazy 6 lane road was separating me from
the way to my hotel.&lt;br&gt;
&lt;a href="content/binary/seattle2006_53.jpg"&gt;&lt;img src="content/binary/seattle2006_53_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Finally home I can now to some coding, my hands are shaking, I have to do something.
But maybe it is just all that coffee finally kicking in ;-)
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=b0a2e79e-9421-4fc3-809e-209b41a1b6fd" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,b0a2e79e-9421-4fc3-809e-209b41a1b6fd.aspx</comments>
      <category>All;Other;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=28956be8-fee9-4d03-8cfb-6ee452e45009</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,28956be8-fee9-4d03-8cfb-6ee452e45009.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,28956be8-fee9-4d03-8cfb-6ee452e45009.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=28956be8-fee9-4d03-8cfb-6ee452e45009</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Well, Day 3 was very interesting. There
are still a couple of things I could tweak in my code. I talked with a lot of guys
today, had lunch with Mitch Walker, then talked to a couple of guys and girls. In
the afternoon the XNA Team did a little presentation of all their internal games they
did. It is pretty amazing and coming from the outside you would never think that they
do so much cool stuff there. Where do they even get the time to develop their own
games beside their job.<br /><br />
I'm not sure if these games get ever released, I guess most of them will not be in
the final XNA Studio Express version coming out next month. Instead they will probably
published on several blogs, MSDN, Coding4Fun and sites like that.<br /><br />
My little stater kit XNA Racer is now almost complete, I fixed all graphic issues
this week and it runs now at a very good frame rate on the Xbox 360. Little fine tuning
and I'm done. More on that in the next weeks.<br /><br />
My cell phone went dead and I forgot to get my Usb cable to work today. Sorry, no
photos today, I just saw a lot people today and I guess most of them are glad I couldn't
take any pictures. Tomorrow I will be a tourist and check out Seattle a little bit
more and make more photos. There are some interesting attractions here.<br /><br />
In the evening I meet with <a href="http://www.thezbuffer.com">Andy Dunn (ZMan)</a> and <a href="http://www.managed-world.com/">Jason
Olson (Managed World blog)</a> and had something to eat in a nice traditional diner
(<a href="http://www.rubys.com/">Ruby's diner</a>, seems popular here, never heard
of it). We talked a lot about XNA, Microsoft, DirectX and everything on our mind.
It was very nice meeting up with Andy again (we meet at the PDC before) and it was
a pleasure to meet Jason it person.<br /><br />
There was a lot more going on today, but I'm way too tired right now to remember anything
more .. and its also kinda boring not posting any pics ^^<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=28956be8-fee9-4d03-8cfb-6ee452e45009" /></body>
      <title>Seattle Day 3 - XNA Presentations and Meeting ZMan and Jason Olson</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,28956be8-fee9-4d03-8cfb-6ee452e45009.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/11/SeattleDay3XNAPresentationsAndMeetingZManAndJasonOlson.aspx</link>
      <pubDate>Sat, 11 Nov 2006 07:35:07 GMT</pubDate>
      <description>Well, Day 3 was very interesting. There are still a couple of things I could tweak in my code. I talked with a lot of guys today, had lunch with Mitch Walker, then talked to a couple of guys and girls. In the afternoon the XNA Team did a little presentation of all their internal games they did. It is pretty amazing and coming from the outside you would never think that they do so much cool stuff there. Where do they even get the time to develop their own games beside their job.&lt;br&gt;
&lt;br&gt;
I'm not sure if these games get ever released, I guess most of them will not be in
the final XNA Studio Express version coming out next month. Instead they will probably
published on several blogs, MSDN, Coding4Fun and sites like that.&lt;br&gt;
&lt;br&gt;
My little stater kit XNA Racer is now almost complete, I fixed all graphic issues
this week and it runs now at a very good frame rate on the Xbox 360. Little fine tuning
and I'm done. More on that in the next weeks.&lt;br&gt;
&lt;br&gt;
My cell phone went dead and I forgot to get my Usb cable to work today. Sorry, no
photos today, I just saw a lot people today and I guess most of them are glad I couldn't
take any pictures. Tomorrow I will be a tourist and check out Seattle a little bit
more and make more photos. There are some interesting attractions here.&lt;br&gt;
&lt;br&gt;
In the evening I meet with &lt;a href="http://www.thezbuffer.com"&gt;Andy Dunn (ZMan)&lt;/a&gt; and &lt;a href="http://www.managed-world.com/"&gt;Jason
Olson (Managed World blog)&lt;/a&gt; and had something to eat in a nice traditional diner
(&lt;a href="http://www.rubys.com/"&gt;Ruby's diner&lt;/a&gt;, seems popular here, never heard
of it). We talked a lot about XNA, Microsoft, DirectX and everything on our mind.
It was very nice meeting up with Andy again (we meet at the PDC before) and it was
a pleasure to meet Jason it person.&lt;br&gt;
&lt;br&gt;
There was a lot more going on today, but I'm way too tired right now to remember anything
more .. and its also kinda boring not posting any pics ^^&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=28956be8-fee9-4d03-8cfb-6ee452e45009" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,28956be8-fee9-4d03-8cfb-6ee452e45009.aspx</comments>
      <category>All;Other;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=751e15cd-822f-44cb-810f-28e8303f749d</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,751e15cd-822f-44cb-810f-28e8303f749d.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,751e15cd-822f-44cb-810f-28e8303f749d.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=751e15cd-822f-44cb-810f-28e8303f749d</wfw:commentRss>
      <slash:comments>3</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Welcome back to my little photo diary of
my experiences here in Seattle. 
<p>
Today I worked a lot with the Xbox 360 side of XNA. In the earlier builds I had a
lot of problems with testing my starter kit on the Xbox 360, but most of these issues
are resolved now. About 99% works the same on the Windows and Xbox 360 platforms,
but if you hit that 1% it does still get you angry and pushing your head into the
wall. For example a couple of the more advanced shadow mapping shaders work fine on
the windows platform, but all kinds of crazy things happen on the Xbox 360, the game
crashes, you see black bars all over the screen or the output is just not right. 
</p><p>
If you are like me and have not worked with the Xbox 360 before, I can tell you that
it is not easy getting used to the way the console uses render targets. You have to
resolve them with a little helper method in XNA (or in the Xbox 360 SDK) to get the
contents copied over to your texture. This is not required on windows. But even if
you take care of that the shaders might behave a little different. For example most
of my post screen shaders use the background buffer to mix results and sometimes mix
them together several times. This works fine on the windows platform and behaves the
same way as it does in DirectX. 
</p><p>
But after some discussion with Tom Miller, Matt and Mitch Walker from the XNA Team
and debugging a little, it was clear that the background buffer can have garbage data
after rendering into render targets. This was very bad for one of the shaders because
it requires 2 separate images over several passes and then blend them together at
the last pass. I used the back buffer to hold one of them and a render target for
the other, but that had to be changed in order to run correctly on the Xbox 360. Good
thing this was just one shader, in my bigger game engine I have over 100 shaders and
it would not be fun to rethink all of the post screen shaders ^^ 
</p><p>
Anyway, this was just one of the many things today, I will talk about all this stuff
in the near future on my blog. Let's go to the pics .. 
</p><p>
Traffic was especially bad today, it took over an hour to get from Seattle to the
XNA Team Building (somewhere in that greater Microsoft Campus area, don't ask me,
I'm glad still knowing where the sky and ground are). I took a few pictures of the
building today, it is called Millennium Building or something ... 
<br /><a href="content/binary/seattle2006_10.jpg"><img src="content/binary/seattle2006_10_small.jpg" border="0" /></a></p><p>
And this is the entrance for some of the Xbox teams and XNA. I'm not sure why this
image is so wobbly. The building is straight. Maybe there is a post screen shader
in my camera, that would also explain the extremly blurry pictures I get out of it
most of the time. Btw: Really crazy street numbers, unimaginable in Germany where
every street that is longer than a few meters is renamed 7 times.<br /><a href="content/binary/seattle2006_11.jpg"><img src="content/binary/seattle2006_11_small.jpg" border="0" /></a></p><p>
Okay, this is how an office looks like at Microsoft. Usually everyone, no matter in
what position, gets his own office. But the XNA team is pretty big and they had to
put 2 people in some of the offices. I was staying in Matt's office most of the time
and he was really nice to me answering all kinds of questions.<br /><a href="content/binary/seattle2006_12.jpg"><img src="content/binary/seattle2006_12_small.jpg" border="0" /></a></p><p>
Still in the same office. Now thats how a bookshelf should look like. Lots of Game
Programming Gems Books (yeah, all of them). Feels like at home in my office. Ok, my
books are just piling up on my desk and it looks a bit more chaotic :-)<br /><a href="content/binary/seattle2006_13.jpg"><img src="content/binary/seattle2006_13_small.jpg" border="0" /></a></p><p>
Later that day I checked out one of the malls and I was not very impressed. Well,
I'm no big shopper anyways and the prices are too high for me, doesn't matter what
I was looking at. But I saw the WII console from Nintendo in one of the game shops
and played it for a bit, some fun racer. It looks really crazy holding the controller
like a wheel and controlling it like a maniac in the air.<br /><a href="content/binary/seattle2006_14.jpg"><img src="content/binary/seattle2006_14_small.jpg" border="0" /></a></p><p>
Hi there .. uh, not real?<br /><a href="content/binary/seattle2006_15.jpg"><img src="content/binary/seattle2006_15_small.jpg" border="0" /></a></p><p>
And finally my little list of pro/cons of living in the USA (from my limited knowledge
of course, and I rant a bit here):<br /><b>Pro:</b></p><ul><li>
People are very nice, last year in Los Angeles I also noticed that, but even here
in Seattle cars break for people and bikes. It doesn't seem like everyone is cursing
behind the wheel. And in general everyone was so nice to me and a pleasure to speak
with. 
</li><li>
Coffee makes you crazy, especially the amount in Seattle. Coffee everywhere ^^ Hey
wait? Shouldn't that be on the cons list? 
</li><li>
The cites look very bright and colorful at night. Like in the movies, just more real.
We in Germany don't waste that much energy and the stars are too far away to be THAT
bright. 
</li><li>
Yeah, the democrats won the last election here. Dunno what this has to do with my
blog, but yeah. 
</li><li>
You can pay everything with credit cards and it really makes you life more easy. In
Germany you can't pay with a credit card anywhere. And even our own sucky EC-Cards
are not accepted if the price is too low. It is just stupid that we Germans have our
own system, the rest of the world is using credit cards. Just for online transactions
a better system than just credit cards should be invented (ok, there is paypal, but
why should ebay become richer, banks themself should come up with something and compete). 
</li></ul><b>Cons:</b><ul><li>
Transportation really sucks here, trains were not invented here yet and the streets
are so incredible overfilled with cars it is not funny. And even if there is a clear
road ahead you can't drive faster than the speed limit of 55 mph (90 kmh) or similar.
In germany there is no speed limit at most of the highways and it really seems slow,
especially because the roads are usually filled to the max. And public transportation
sucks even more, it is either non existent or so far away that you still need 3 times
longer than driving slowly with a car. 
</li><li>
Dunno, but everything seems more expensive here. Well, everyone earns more, so that
could be ok. 
</li><li>
TV is better here, a lot of good and funny shows. But it is hard for me to compare
since I never watch TV in Germany anymore. Now why is this on the bad list? Well,
commercials ever 5 minutes? Are you guys crazy? It is even too annoying every 15-20
minutes like in Germany ... Whatever, TV is boring anyway. 
</li><li>
Some food tastes kinda boring. Most of this stuff was told me by other ppl who moved
over from Europe and they miss the taste of good beer, chocolate, cheese, dark bread,
etc. I would probably don't care and have forgotten about all of this in a short time. 
</li><li>
So much to do, so few time. 
</li></ul><b>Random things:</b><ul><li>
My freaking Simyo cell phone provider doesn't work at all here. I can receive some
calls and call to Germany, but not call any number here, which is really stupid and
it if it would work the prices are insane (costs like 30 times as much). 
</li><li>
Console games are much more important here. In Germany maybe 30% of a game shop is
used for console games, here it seem to be 70-80%. 
</li><li>
Internet is slow, Wireless LAN sucks and "high speed internet" at hotels is a bad
joke. At Microsoft most of the downloads I made were from Microsoft servers anyway
and that was pretty fast, but the Americans live with good cable connections for a
long time now and do not think the same way as we in Germany to go faster faster faster
:) This is just on the cons list because of my bad WiFi experiences, even Microsoft
can't figure this out for their internal network. Sorry guys, check out the <a href="http://www.freifunk.net">Freifunk
project</a> to see how to do WiFi internet with more than 1 Kb per sec :) Man, how
much longer until someone brings out useful wifi technology, all this bluetooth and
wifi stuff just sucks and is too slow and error prone.</li></ul>
Link for me to not forget about, pretty cool new project to allow converting HLSL
shaders to GLSL:<br /><a href="http://sourceforge.net/projects/hlsl2glsl/">http://sourceforge.net/projects/hlsl2glsl/</a><br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=751e15cd-822f-44cb-810f-28e8303f749d" /></body>
      <title>Seattle Day 2 - Second day at Microsoft</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,751e15cd-822f-44cb-810f-28e8303f749d.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/10/SeattleDay2SecondDayAtMicrosoft.aspx</link>
      <pubDate>Fri, 10 Nov 2006 07:29:03 GMT</pubDate>
      <description>Welcome back to my little photo diary of my experiences here in Seattle.
&lt;p&gt;
Today I worked a lot with the Xbox 360 side of XNA. In the earlier builds I had a
lot of problems with testing my starter kit on the Xbox 360, but most of these issues
are resolved now. About 99% works the same on the Windows and Xbox 360 platforms,
but if you hit that 1% it does still get you angry and pushing your head into the
wall. For example a couple of the more advanced shadow mapping shaders work fine on
the windows platform, but all kinds of crazy things happen on the Xbox 360, the game
crashes, you see black bars all over the screen or the output is just not right. 
&lt;/p&gt;
&lt;p&gt;
If you are like me and have not worked with the Xbox 360 before, I can tell you that
it is not easy getting used to the way the console uses render targets. You have to
resolve them with a little helper method in XNA (or in the Xbox 360 SDK) to get the
contents copied over to your texture. This is not required on windows. But even if
you take care of that the shaders might behave a little different. For example most
of my post screen shaders use the background buffer to mix results and sometimes mix
them together several times. This works fine on the windows platform and behaves the
same way as it does in DirectX. 
&lt;/p&gt;
&lt;p&gt;
But after some discussion with Tom Miller, Matt and Mitch Walker from the XNA Team
and debugging a little, it was clear that the background buffer can have garbage data
after rendering into render targets. This was very bad for one of the shaders because
it requires 2 separate images over several passes and then blend them together at
the last pass. I used the back buffer to hold one of them and a render target for
the other, but that had to be changed in order to run correctly on the Xbox 360. Good
thing this was just one shader, in my bigger game engine I have over 100 shaders and
it would not be fun to rethink all of the post screen shaders ^^ 
&lt;/p&gt;
&lt;p&gt;
Anyway, this was just one of the many things today, I will talk about all this stuff
in the near future on my blog. Let's go to the pics .. 
&lt;/p&gt;
&lt;p&gt;
Traffic was especially bad today, it took over an hour to get from Seattle to the
XNA Team Building (somewhere in that greater Microsoft Campus area, don't ask me,
I'm glad still knowing where the sky and ground are). I took a few pictures of the
building today, it is called Millennium Building or something ... 
&lt;br&gt;
&lt;a href="content/binary/seattle2006_10.jpg"&gt;&lt;img src="content/binary/seattle2006_10_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
And this is the entrance for some of the Xbox teams and XNA. I'm not sure why this
image is so wobbly. The building is straight. Maybe there is a post screen shader
in my camera, that would also explain the extremly blurry pictures I get out of it
most of the time. Btw: Really crazy street numbers, unimaginable in Germany where
every street that is longer than a few meters is renamed 7 times.&lt;br&gt;
&lt;a href="content/binary/seattle2006_11.jpg"&gt;&lt;img src="content/binary/seattle2006_11_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Okay, this is how an office looks like at Microsoft. Usually everyone, no matter in
what position, gets his own office. But the XNA team is pretty big and they had to
put 2 people in some of the offices. I was staying in Matt's office most of the time
and he was really nice to me answering all kinds of questions.&lt;br&gt;
&lt;a href="content/binary/seattle2006_12.jpg"&gt;&lt;img src="content/binary/seattle2006_12_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Still in the same office. Now thats how a bookshelf should look like. Lots of Game
Programming Gems Books (yeah, all of them). Feels like at home in my office. Ok, my
books are just piling up on my desk and it looks a bit more chaotic :-)&lt;br&gt;
&lt;a href="content/binary/seattle2006_13.jpg"&gt;&lt;img src="content/binary/seattle2006_13_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Later that day I checked out one of the malls and I was not very impressed. Well,
I'm no big shopper anyways and the prices are too high for me, doesn't matter what
I was looking at. But I saw the WII console from Nintendo in one of the game shops
and played it for a bit, some fun racer. It looks really crazy holding the controller
like a wheel and controlling it like a maniac in the air.&lt;br&gt;
&lt;a href="content/binary/seattle2006_14.jpg"&gt;&lt;img src="content/binary/seattle2006_14_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Hi there .. uh, not real?&lt;br&gt;
&lt;a href="content/binary/seattle2006_15.jpg"&gt;&lt;img src="content/binary/seattle2006_15_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
And finally my little list of pro/cons of living in the USA (from my limited knowledge
of course, and I rant a bit here):&lt;br&gt;
&lt;b&gt;Pro:&lt;/b&gt; 
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
People are very nice, last year in Los Angeles I also noticed that, but even here
in Seattle cars break for people and bikes. It doesn't seem like everyone is cursing
behind the wheel. And in general everyone was so nice to me and a pleasure to speak
with. 
&lt;/li&gt;
&lt;li&gt;
Coffee makes you crazy, especially the amount in Seattle. Coffee everywhere ^^ Hey
wait? Shouldn't that be on the cons list? 
&lt;/li&gt;
&lt;li&gt;
The cites look very bright and colorful at night. Like in the movies, just more real.
We in Germany don't waste that much energy and the stars are too far away to be THAT
bright. 
&lt;/li&gt;
&lt;li&gt;
Yeah, the democrats won the last election here. Dunno what this has to do with my
blog, but yeah. 
&lt;/li&gt;
&lt;li&gt;
You can pay everything with credit cards and it really makes you life more easy. In
Germany you can't pay with a credit card anywhere. And even our own sucky EC-Cards
are not accepted if the price is too low. It is just stupid that we Germans have our
own system, the rest of the world is using credit cards. Just for online transactions
a better system than just credit cards should be invented (ok, there is paypal, but
why should ebay become richer, banks themself should come up with something and compete). 
&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Cons:&lt;/b&gt; 
&lt;ul&gt;
&lt;li&gt;
Transportation really sucks here, trains were not invented here yet and the streets
are so incredible overfilled with cars it is not funny. And even if there is a clear
road ahead you can't drive faster than the speed limit of 55 mph (90 kmh) or similar.
In germany there is no speed limit at most of the highways and it really seems slow,
especially because the roads are usually filled to the max. And public transportation
sucks even more, it is either non existent or so far away that you still need 3 times
longer than driving slowly with a car. 
&lt;/li&gt;
&lt;li&gt;
Dunno, but everything seems more expensive here. Well, everyone earns more, so that
could be ok. 
&lt;/li&gt;
&lt;li&gt;
TV is better here, a lot of good and funny shows. But it is hard for me to compare
since I never watch TV in Germany anymore. Now why is this on the bad list? Well,
commercials ever 5 minutes? Are you guys crazy? It is even too annoying every 15-20
minutes like in Germany ... Whatever, TV is boring anyway. 
&lt;/li&gt;
&lt;li&gt;
Some food tastes kinda boring. Most of this stuff was told me by other ppl who moved
over from Europe and they miss the taste of good beer, chocolate, cheese, dark bread,
etc. I would probably don't care and have forgotten about all of this in a short time. 
&lt;/li&gt;
&lt;li&gt;
So much to do, so few time. 
&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Random things:&lt;/b&gt; 
&lt;ul&gt;
&lt;li&gt;
My freaking Simyo cell phone provider doesn't work at all here. I can receive some
calls and call to Germany, but not call any number here, which is really stupid and
it if it would work the prices are insane (costs like 30 times as much). 
&lt;/li&gt;
&lt;li&gt;
Console games are much more important here. In Germany maybe 30% of a game shop is
used for console games, here it seem to be 70-80%. 
&lt;/li&gt;
&lt;li&gt;
Internet is slow, Wireless LAN sucks and "high speed internet" at hotels is a bad
joke. At Microsoft most of the downloads I made were from Microsoft servers anyway
and that was pretty fast, but the Americans live with good cable connections for a
long time now and do not think the same way as we in Germany to go faster faster faster
:) This is just on the cons list because of my bad WiFi experiences, even Microsoft
can't figure this out for their internal network. Sorry guys, check out the &lt;a href="http://www.freifunk.net"&gt;Freifunk
project&lt;/a&gt; to see how to do WiFi internet with more than 1 Kb per sec :) Man, how
much longer until someone brings out useful wifi technology, all this bluetooth and
wifi stuff just sucks and is too slow and error prone.&lt;/li&gt;
&lt;/ul&gt;
Link for me to not forget about, pretty cool new project to allow converting HLSL
shaders to GLSL:&lt;br&gt;
&lt;a href="http://sourceforge.net/projects/hlsl2glsl/"&gt;http://sourceforge.net/projects/hlsl2glsl/&lt;/a&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=751e15cd-822f-44cb-810f-28e8303f749d" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,751e15cd-822f-44cb-810f-28e8303f749d.aspx</comments>
      <category>All;Game Development;Other;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=f672e94d-da4b-4305-9c96-8b68dbd18545</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,f672e94d-da4b-4305-9c96-8b68dbd18545.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,f672e94d-da4b-4305-9c96-8b68dbd18545.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=f672e94d-da4b-4305-9c96-8b68dbd18545</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">This was my first day working at Microsoft.
Pretty interesting people work there and a lot of them. Good thing no one noticed
that I'm not able to remember 500 names per second. I was installing stuff half of
the day, but I found out more about XNA and already fixed some issues. Before talking
more about my day, here are some News: 
<p>
The XNA Team did a little 2 minute video of a couple of XNA games, my starter kit
XNA Racer (which I hadn't talked about yet in detail, but that will come soon) can
be seen at the end of the video. I got a lot of nice comments about that already :)
</p><br /><a href="http://www.majornelson.com/archive/2006/11/08/zune-video-xna-video-montage.aspx"><img src="content/binary/XnaRacer01_small.jpg" border="0" /></a><p>
Here is the link to the video (Major Nelson has a nice blog btw):<br /><a href="http://www.majornelson.com/archive/2006/11/08/zune-video-xna-video-montage.aspx">http://www.majornelson.com/archive/2006/11/08/zune-video-xna-video-montage.aspx</a><br />
And this is David Weller talking about it:<br /><a href="http://letskilldave.com/archive/2006/11/08/XNA-Video-Montage-_2300_1-is-ready-for-you_2100_.aspx">http://letskilldave.com/archive/2006/11/08/XNA-Video-Montage-_2300_1-is-ready-for-you_2100_.aspx</a><br /></p><p>
A nice guy from France with the name "Marc Guevremont" made yet another Rocket Commander
Mod and this one just looks impressive. He managed to implement a landscape engine
with shadow mapping (I guess precalculated). It looks very much like Rebel Assault.
The game itself is still similar to Rocket Commander, but it looks so much different
and he also made 3 cool levels. The game is called Canyon Commander and will hopefully
be available soon. 
<br /><a href="content/binary/CanyonCommander01.jpg"><img src="content/binary/CanyonCommander01_small.jpg" border="0" /></a></p><p>
More information, screenshots and a video can be found in the Rocket Commander Forums
and here: <a href="http://www.webs7.com/Canyon/">http://www.webs7.com/Canyon/</a></p><p>
I did not make many pictures today and it was to dark when we drove back to make any
useful pictures with my phone camera. 
</p><p>
Driving through Seattle.<br /><a href="content/binary/seattle2006_07.jpg"><img src="content/binary/seattle2006_07_small.jpg" border="0" /></a></p><p>
And going over the long Evergreen Point Floating Bridge between Seattle and Redmond.
It goes over the lake Washington and I couldn't get an answer if a Russian atom u-boot
could fit under the bridge.<br /><a href="content/binary/seattle2006_08.jpg"><img src="content/binary/seattle2006_08_small.jpg" border="0" /></a></p><p>
I was told that Bill Gates has his house somewhere on the right here, but you can't
see it, too much leaves.<br /><a href="content/binary/seattle2006_09.jpg"><img src="content/binary/seattle2006_09_small.jpg" border="0" /></a></p><p>
More pictures tomorrow.
</p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=f672e94d-da4b-4305-9c96-8b68dbd18545" /></body>
      <title>Seattle Day 1 and XNA Video and Canyon Commander</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,f672e94d-da4b-4305-9c96-8b68dbd18545.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/09/SeattleDay1AndXNAVideoAndCanyonCommander.aspx</link>
      <pubDate>Thu, 09 Nov 2006 05:08:20 GMT</pubDate>
      <description>This was my first day working at Microsoft. Pretty interesting people work there and a lot of them. Good thing no one noticed that I'm not able to remember 500 names per second. I was installing stuff half of the day, but I found out more about XNA and already fixed some issues. Before talking more about my day, here are some News:
&lt;p&gt;
The XNA Team did a little 2 minute video of a couple of XNA games, my starter kit
XNA Racer (which I hadn't talked about yet in detail, but that will come soon) can
be seen at the end of the video. I got a lot of nice comments about that already :)
&lt;/p&gt;
&lt;br&gt;
&lt;a href="http://www.majornelson.com/archive/2006/11/08/zune-video-xna-video-montage.aspx"&gt;&lt;img src="content/binary/XnaRacer01_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;p&gt;
Here is the link to the video (Major Nelson has a nice blog btw):&lt;br&gt;
&lt;a href="http://www.majornelson.com/archive/2006/11/08/zune-video-xna-video-montage.aspx"&gt;http://www.majornelson.com/archive/2006/11/08/zune-video-xna-video-montage.aspx&lt;/a&gt;
&lt;br&gt;
And this is David Weller talking about it:&lt;br&gt;
&lt;a href="http://letskilldave.com/archive/2006/11/08/XNA-Video-Montage-_2300_1-is-ready-for-you_2100_.aspx"&gt;http://letskilldave.com/archive/2006/11/08/XNA-Video-Montage-_2300_1-is-ready-for-you_2100_.aspx&lt;/a&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
A nice guy from France with the name "Marc Guevremont" made yet another Rocket Commander
Mod and this one just looks impressive. He managed to implement a landscape engine
with shadow mapping (I guess precalculated). It looks very much like Rebel Assault.
The game itself is still similar to Rocket Commander, but it looks so much different
and he also made 3 cool levels. The game is called Canyon Commander and will hopefully
be available soon. 
&lt;br&gt;
&lt;a href="content/binary/CanyonCommander01.jpg"&gt;&lt;img src="content/binary/CanyonCommander01_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
More information, screenshots and a video can be found in the Rocket Commander Forums
and here: &lt;a href="http://www.webs7.com/Canyon/"&gt;http://www.webs7.com/Canyon/&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
I did not make many pictures today and it was to dark when we drove back to make any
useful pictures with my phone camera. 
&lt;/p&gt;
&lt;p&gt;
Driving through Seattle.&lt;br&gt;
&lt;a href="content/binary/seattle2006_07.jpg"&gt;&lt;img src="content/binary/seattle2006_07_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
And going over the long Evergreen Point Floating Bridge between Seattle and Redmond.
It goes over the lake Washington and I couldn't get an answer if a Russian atom u-boot
could fit under the bridge.&lt;br&gt;
&lt;a href="content/binary/seattle2006_08.jpg"&gt;&lt;img src="content/binary/seattle2006_08_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
I was told that Bill Gates has his house somewhere on the right here, but you can't
see it, too much leaves.&lt;br&gt;
&lt;a href="content/binary/seattle2006_09.jpg"&gt;&lt;img src="content/binary/seattle2006_09_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
More pictures tomorrow.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=f672e94d-da4b-4305-9c96-8b68dbd18545" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,f672e94d-da4b-4305-9c96-8b68dbd18545.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=5a92d25d-2711-4ef7-b26a-3ba53105aeb9</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,5a92d25d-2711-4ef7-b26a-3ba53105aeb9.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,5a92d25d-2711-4ef7-b26a-3ba53105aeb9.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=5a92d25d-2711-4ef7-b26a-3ba53105aeb9</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">I arrived in Seattle :) But that was a
long journey, it took over 15 hours and in Seattle it was just 3pm when I arrived.
At least I got some sleep in the plane. 
<p>
I made some photos, but the quality is not very good. Next time I should use a better
camera than the one in my cell. 
</p><p>
This is the ceiling at Hannover Airport. I was very tired and watched it for quite
a while. Has a pretty good shadow mapping algorithm if you ask me. Maybe they use
already Direct3D 10 and render into cubemaps :-) Btw: I am excited about the new NVidia
Geforce 8800 GPUs, will check them out next week when I am back. 
<br /><a href="content/binary/seattle2006_01.jpg"><img src="content/binary/seattle2006_01_small.jpg" border="0" /></a></p><p></p><p>
The second security control I had go through, in total it were at least 7 controlls
and a lot of time waiting between them at every airport.<br /><a href="content/binary/seattle2006_02.jpg"><img src="content/binary/seattle2006_02_small.jpg" border="0" /></a></p><p>
Guess what, waiting again. This time in Amsterdam. It was not even a security check,
just the passport control checkpoint. The people of Holland speak a really funny language,
at least it was fun to listen to it while being in Amsterdam. With knowledge of English
and German it is possible to guess most words and unterstanding at least what the
people are talking about.<br /><a href="content/binary/seattle2006_03.jpg"><img src="content/binary/seattle2006_03_small.jpg" border="0" /></a></p><p>
After sleeping a while in the plane and watching the shitty movie "My super ex girlfriend"
(wft, it was boring, unfunny and not exciting at all), I watched outside the window
for a bit. We had almost reached seattle. I guess this is already the Washington state,
some islands and a lot of water, looks nice from above. A few minutes later, everything
was foggy again.<br /><a href="content/binary/seattle2006_04.jpg"><img src="content/binary/seattle2006_04_small.jpg" border="0" /></a></p><p>
And finally after ariving and going through a bunch much security checks and questions
I took this photo at the first bargage drop point. Well, I was not really supposed
to take photos here as you can see on the warning signs there, I guess this is a top
secret area .. whatever ..<br /><a href="content/binary/seattle2006_05.jpg"><img src="content/binary/seattle2006_05_small.jpg" border="0" /></a></p><p>
After ariving at my hotel I checked out Seattle and walked around for a while searching
for power adapter for my laptop (I knew I forgot something home). Well, not fun without
a car .. I found a grocery store, but neither they nor my hotel had an adapter. Well,
the laptop sucks anyway, XNA does not work because for some reason it cannot use any
pixel or vertex shaders. NVidia says that the Geforce 4 Go fully supports DirectX
8, which would include ps1.1 and vs1.1, but I guess there is something missing. 
</p><p>
Anyway, after I have now almost depleted both my laptop batteries. I just made one
last photo and quickly wrote this post. Here is a view from my hotel room to the Seattle
Space Needle Tower at night. With a less crappy camera this would look nice, hehe. 
<br /><a href="content/binary/seattle2006_06.jpg"><img src="content/binary/seattle2006_06_small.jpg" border="0" /></a></p><p>
See ya tomorrow.
</p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=5a92d25d-2711-4ef7-b26a-3ba53105aeb9" /></body>
      <title>Seattle Day 0</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,5a92d25d-2711-4ef7-b26a-3ba53105aeb9.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/08/SeattleDay0.aspx</link>
      <pubDate>Wed, 08 Nov 2006 05:30:33 GMT</pubDate>
      <description>I arrived in Seattle :) But that was a long journey, it took over 15 hours and in Seattle it was just 3pm when I arrived. At least I got some sleep in the plane.
&lt;p&gt;
I made some photos, but the quality is not very good. Next time I should use a better
camera than the one in my cell. 
&lt;/p&gt;
&lt;p&gt;
This is the ceiling at Hannover Airport. I was very tired and watched it for quite
a while. Has a pretty good shadow mapping algorithm if you ask me. Maybe they use
already Direct3D 10 and render into cubemaps :-) Btw: I am excited about the new NVidia
Geforce 8800 GPUs, will check them out next week when I am back. 
&lt;br&gt;
&lt;a href="content/binary/seattle2006_01.jpg"&gt;&lt;img src="content/binary/seattle2006_01_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
The second security control I had go through, in total it were at least 7 controlls
and a lot of time waiting between them at every airport.&lt;br&gt;
&lt;a href="content/binary/seattle2006_02.jpg"&gt;&lt;img src="content/binary/seattle2006_02_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Guess what, waiting again. This time in Amsterdam. It was not even a security check,
just the passport control checkpoint. The people of Holland speak a really funny language,
at least it was fun to listen to it while being in Amsterdam. With knowledge of English
and German it is possible to guess most words and unterstanding at least what the
people are talking about.&lt;br&gt;
&lt;a href="content/binary/seattle2006_03.jpg"&gt;&lt;img src="content/binary/seattle2006_03_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
After sleeping a while in the plane and watching the shitty movie "My super ex girlfriend"
(wft, it was boring, unfunny and not exciting at all), I watched outside the window
for a bit. We had almost reached seattle. I guess this is already the Washington state,
some islands and a lot of water, looks nice from above. A few minutes later, everything
was foggy again.&lt;br&gt;
&lt;a href="content/binary/seattle2006_04.jpg"&gt;&lt;img src="content/binary/seattle2006_04_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
And finally after ariving and going through a bunch much security checks and questions
I took this photo at the first bargage drop point. Well, I was not really supposed
to take photos here as you can see on the warning signs there, I guess this is a top
secret area .. whatever ..&lt;br&gt;
&lt;a href="content/binary/seattle2006_05.jpg"&gt;&lt;img src="content/binary/seattle2006_05_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
After ariving at my hotel I checked out Seattle and walked around for a while searching
for power adapter for my laptop (I knew I forgot something home). Well, not fun without
a car .. I found a grocery store, but neither they nor my hotel had an adapter. Well,
the laptop sucks anyway, XNA does not work because for some reason it cannot use any
pixel or vertex shaders. NVidia says that the Geforce 4 Go fully supports DirectX
8, which would include ps1.1 and vs1.1, but I guess there is something missing. 
&lt;/p&gt;
&lt;p&gt;
Anyway, after I have now almost depleted both my laptop batteries. I just made one
last photo and quickly wrote this post. Here is a view from my hotel room to the Seattle
Space Needle Tower at night. With a less crappy camera this would look nice, hehe. 
&lt;br&gt;
&lt;a href="content/binary/seattle2006_06.jpg"&gt;&lt;img src="content/binary/seattle2006_06_small.jpg" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
See ya tomorrow.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=5a92d25d-2711-4ef7-b26a-3ba53105aeb9" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,5a92d25d-2711-4ef7-b26a-3ba53105aeb9.aspx</comments>
      <category>All;Game Development;Other;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=92434917-ddcc-4597-9e3f-d7cea7c109e8</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,92434917-ddcc-4597-9e3f-d7cea7c109e8.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,92434917-ddcc-4597-9e3f-d7cea7c109e8.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=92434917-ddcc-4597-9e3f-d7cea7c109e8</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <table border="0" cellspacing="5">
          <tbody>
            <tr>
              <td valign="top">
Yeah, flying around the world. In a couple of minutes I have to leave to the airport.
I will fly to the USA to visit the Microsoft XNA Team for a week. Pretty exciting
if you ask me. Maybe even too exciting, I did not get any sleep this night and last
night it were only 3 hours. I hope I can sleep on the plane ... 
<p>
I will try to make some photos and blog a little about my experiences there in Seattle.
The XNA Game and Starter Kit I'm currently developing will be improved a little bit
over there and I will have the chance to speak with the XNA team.
</p><p>
I'm not sure if I will have time to talk much about XNA on my blog right now since
I have so little time and so many projects. Hope that cools off in the next few weeks
and I can relax a little bit more and start blogging like a madman again :-)
</p></td>
              <td valign="top">
                <img src="images%5Cplane.jpg" border="0" />
              </td>
            </tr>
          </tbody>
        </table>
        <img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=92434917-ddcc-4597-9e3f-d7cea7c109e8" />
      </body>
      <title>Flying to the USA to visit the XNA Team</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,92434917-ddcc-4597-9e3f-d7cea7c109e8.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/07/FlyingToTheUSAToVisitTheXNATeam.aspx</link>
      <pubDate>Tue, 07 Nov 2006 05:12:14 GMT</pubDate>
      <description>&lt;table border="0" cellspacing="5"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td valign="top"&gt;
Yeah, flying around the world. In a couple of minutes I have to leave to the airport.
I will fly to the USA to visit the Microsoft XNA Team for a week. Pretty exciting
if you ask me. Maybe even too exciting, I did not get any sleep this night and last
night it were only 3 hours. I hope I can sleep on the plane ... 
&lt;p&gt;
I will try to make some photos and blog a little about my experiences there in Seattle.
The XNA Game and Starter Kit I'm currently developing will be improved a little bit
over there and I will have the chance to speak with the XNA team.
&lt;/p&gt;
&lt;p&gt;
I'm not sure if I will have time to talk much about XNA on my blog right now since
I have so little time and so many projects. Hope that cools off in the next few weeks
and I can relax a little bit more and start blogging like a madman again :-)
&lt;/p&gt;
&lt;/td&gt;
&lt;td valign="top"&gt;
&lt;img src="images%5Cplane.jpg" border="0"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=92434917-ddcc-4597-9e3f-d7cea7c109e8" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,92434917-ddcc-4597-9e3f-d7cea7c109e8.aspx</comments>
      <category>All;Game Development;Other;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=6788af22-768d-407c-944e-cfe77325bd65</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,6788af22-768d-407c-944e-cfe77325bd65.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,6788af22-768d-407c-944e-cfe77325bd65.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=6788af22-768d-407c-944e-cfe77325bd65</wfw:commentRss>
      <slash:comments>3</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://msdn.microsoft.com/directx/art/Hero/XNA_Hero_Banner.jpg" />
        <br />
        <br />
Microsoft has just released the new Beta 2 version of the XNA Game Studio Express
IDE, which allows you to create great games for the windows and Xbox 360 platforms.
It contains all the stuff from the beta 1 (like the SpaceWar starter kit, which was
a improved a little bit). Additionally it now looks a lot more polished and you can
check out the new content pipeline, which allows you to import 3d models from .x and
.fbx files to do some cool 3d graphics. Btw: Check out the new logo of XNA. I first
was a little bit confused since I was used to the old XNA logo, which has been around
for several years now. But after a while you will get used to the new logo and start
to like it ;-)<br /><br />
While you can compile games for the XBox 360, the XNA Creators Club membership is
not yet available and theirfore you cannot test on the Xbox 360 yet. The XNA Creators
Club membership stuff will be available later this year and then it is time to play
your games on your Xbox 360.<br /><br />
You can find more information about XNA and download XNA Game Studio Express here:<br /><a href="http://msdn.microsoft.com/directx/xna/gse/">http://msdn.microsoft.com/xna/</a><br /><br />
Also be sure to check out the boards, there is a lot of stuff to read and a ton of
games (mostly 2d) came out in the last couple of months.<br /><br />
I will try to blog little bit more about XNA as it gets closer to the release. I got
some great stories to tell :D<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=6788af22-768d-407c-944e-cfe77325bd65" /></body>
      <title>XNA Game Studio Express Beta 2 released</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,6788af22-768d-407c-944e-cfe77325bd65.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/11/02/XNAGameStudioExpressBeta2Released.aspx</link>
      <pubDate>Thu, 02 Nov 2006 04:44:52 GMT</pubDate>
      <description>&lt;img src="http://msdn.microsoft.com/directx/art/Hero/XNA_Hero_Banner.jpg"&gt;
&lt;br&gt;
&lt;br&gt;
Microsoft has just released the new Beta 2 version of the XNA Game Studio Express
IDE, which allows you to create great games for the windows and Xbox 360 platforms.
It contains all the stuff from the beta 1 (like the SpaceWar starter kit, which was
a improved a little bit). Additionally it now looks a lot more polished and you can
check out the new content pipeline, which allows you to import 3d models from .x and
.fbx files to do some cool 3d graphics. Btw: Check out the new logo of XNA. I first
was a little bit confused since I was used to the old XNA logo, which has been around
for several years now. But after a while you will get used to the new logo and start
to like it ;-)&lt;br&gt;
&lt;br&gt;
While you can compile games for the XBox 360, the XNA Creators Club membership is
not yet available and theirfore you cannot test on the Xbox 360 yet. The XNA Creators
Club membership stuff will be available later this year and then it is time to play
your games on your Xbox 360.&lt;br&gt;
&lt;br&gt;
You can find more information about XNA and download XNA Game Studio Express here:&lt;br&gt;
&lt;a href="http://msdn.microsoft.com/directx/xna/gse/"&gt;http://msdn.microsoft.com/xna/&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Also be sure to check out the boards, there is a lot of stuff to read and a ton of
games (mostly 2d) came out in the last couple of months.&lt;br&gt;
&lt;br&gt;
I will try to blog little bit more about XNA as it gets closer to the release. I got
some great stories to tell :D&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=6788af22-768d-407c-944e-cfe77325bd65" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,6788af22-768d-407c-944e-cfe77325bd65.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=44339eda-86da-4a2d-ae94-9387aad9c178</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,44339eda-86da-4a2d-ae94-9387aad9c178.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,44339eda-86da-4a2d-ae94-9387aad9c178.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=44339eda-86da-4a2d-ae94-9387aad9c178</wfw:commentRss>
      <slash:comments>5</slash:comments>
      <title>Quick Tips for XNA Beta 1 (aka My Own XNA FAQ)</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,44339eda-86da-4a2d-ae94-9387aad9c178.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/08/31/QuickTipsForXNABeta1AkaMyOwnXNAFAQ.aspx</link>
      <pubDate>Thu, 31 Aug 2006 06:07:47 GMT</pubDate>
      <description>&lt;a href="http://msdn.microsoft.com/directx/xna/"&gt;&lt;img src="images/XnaLogo.jpg" border="0"&gt;&lt;/a&gt; 
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://msdn.microsoft.com/directx/xna/gse/"&gt;Download XNA Beta1&lt;/a&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=846&amp;amp;SiteID=1"&gt;XNA
Framework Forum&lt;/a&gt; and &lt;a href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=882&amp;amp;SiteID=1"&gt;XNA
Game Studio Express Forum&lt;/a&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
Getting Started: Open C# Express (which is XNA Game Studio), Help-&amp;gt;Content-&amp;gt;Select
XNA and navigate to Getting Started with XNA and read through &lt;b&gt;Your First XNA Game&lt;/b&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
Next you could try out the &lt;b&gt;Space War Starter Kit&lt;/b&gt; Game. If you can't control
the game read &lt;a href="http://www.xnaspot.com/Tutorial_GettingStarted.aspx"&gt;this tutorial
from xnaspot.com&lt;/a&gt; about changing it to support keyboard input.&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
x64 Bit platform support: Read &lt;a href="http://exdream.no-ip.info/blog/PermaLink.aspx?guid=8962e9a7-3185-438d-882a-e8e919771dc2"&gt;this
blog entry&lt;/a&gt; for an easy fix. Basically just add &lt;font color="#0000ff"&gt;&amp;lt;PlatformTarget&amp;gt;x86&amp;lt;/PlatformTarget&amp;gt;&lt;/font&gt; to
your csproj file.&lt;br&gt;
Or download and extract &lt;a href="http://exdream.no-ip.info/blog/Xna64BitSupport.zip"&gt;this
file (Xna64BitSupport.zip 14 KB)&lt;/a&gt; into:&lt;br&gt;
&lt;font color="#808080"&gt;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\VCSExpress\&lt;/font&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
Blogs:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://blogs.msdn.com/xna/"&gt;http://blogs.msdn.com/xna/&lt;/a&gt; XNA Team blog
to get news from the makers 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://xbox360homebrew.com/"&gt;http://xbox360homebrew.com/&lt;/a&gt; XBOX 360 Homebrew,
quite good 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://thezbuffer.com/"&gt;http://thezbuffer.com/&lt;/a&gt; Always a good resource,
biggest MDX site ever 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://letskilldave.com/"&gt;http://letskilldave.com/&lt;/a&gt; Let's Kill Dave! Davil
Weller about XNA. He posts a lot of interessting things. 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://blogs.msdn.com/tmiller/"&gt;http://blogs.msdn.com/tmiller/&lt;/a&gt; Tom Millers
Blog, yeah, this is the MDX father of all things :) 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://blogs.msdn.com/mitchw/"&gt;http://blogs.msdn.com/mitchw/&lt;/a&gt; Mitch Walker,
one of the XNA guys 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://blogs.msdn.com/al_msft/"&gt;http://blogs.msdn.com/al_msft/&lt;/a&gt; Albert
Ho, XNA Redux, another XNA guy 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://blogs.msdn.com/mklucher/default.aspx"&gt;http://blogs.msdn.com/mklucher/default.aspx&lt;/a&gt; Michael
Klucher's XNA Blog, guess what, another XNA guy 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://blogs.msdn.com/shawnhar/default.aspx"&gt;http://blogs.msdn.com/shawnhar/default.aspx&lt;/a&gt; Shawn
Hargreaves Blog, Game programming, C#, and the XNA Framework Content Pipeline 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://blogs.msdn.com/rickhos/default.aspx"&gt;http://blogs.msdn.com/rickhos/default.aspx&lt;/a&gt; Rick
Hoskinson's Blog about XNA 
&lt;/li&gt;
&lt;li&gt;
And there are many more, but who's got the time ^^ 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
Tutorials:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://www.xnadevelopment.com/"&gt;http://www.xnadevelopment.com/&lt;/a&gt; XNA Development,
Tutorials and Co 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://learn-xna.com/default.aspx"&gt;http://learn-xna.com/default.aspx&lt;/a&gt; Learn
XNA I guess, not much there yet 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.xnaspot.com/"&gt;http://www.xnaspot.com/&lt;/a&gt; XNA Spot, got already
a nice tutorial about Getting started with the Space War Starter Kit 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
Interessting reads:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://msdn.microsoft.com/directx/XNA/default.aspx"&gt;http://msdn.microsoft.com/directx/XNA/default.aspx&lt;/a&gt; XNA
Info and FAQ 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://forums.microsoft.com/msdn/default.aspx?forumgroupid=20&amp;amp;siteid=1"&gt;http://forums.microsoft.com/msdn/default.aspx?forumgroupid=20&amp;amp;siteid=1&lt;/a&gt; XNA
Forums 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://makeitbigingames.com/blog/?p=34"&gt;http://makeitbigingames.com/blog/?p=34&lt;/a&gt; XNA
Game Studio Express Doubters Get It Wrong 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://xbox360homebrew.com/blogs/homebrew360/archive/2006/08/24/75.aspx"&gt;http://xbox360homebrew.com/blogs/homebrew360/archive/2006/08/24/75.aspx&lt;/a&gt; Hearing
some Audio from the Games Convention in Leipzig (scroll to 48:00 minutes). It demonstrates
basically a Torque X game with XNA, but its quite interessting. 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=634578&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=634578&amp;amp;SiteID=1&lt;/a&gt; Forum
post about Xbox 360 Official Dev Kit vs. "the XNA thing" 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=684005&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=684005&amp;amp;SiteID=1&lt;/a&gt; Pretty
negative post about XNA, he wants to stay with c++ and DX (ever heard of MDX?)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
And now finally my own thoughts and tips:&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;How to render fonts like with Direct3D.Font?&lt;/b&gt;
&lt;p&gt;
Well, thats not possible, there are not Font classes in XNA at all yet! You have to
create your own font code by rendering bitmap fonts. If you want to see some code
about that check out the SpaceWar Starter Kit and look inside the Font.cs class. The
fonts in SpaceWar just contain numbers, but the game contains some text. How did they
do that? Well, they just put most of the text in the game directly onto the textures,
buttons, etc.&lt;br&gt;
&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683983&amp;amp;SiteID=1"&gt;Here
is also a forum post&lt;/a&gt; about this issue and some source code, which might help. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;How to play sounds?&lt;/b&gt;
&lt;p&gt;
Thats quite easy, create sounds with XAct, load them in your game and then use the
SoundBank class to play your sounds. Some tutorials can be found in the help and a
simple example is in the Sound.cs file in SpaceWar Starter Kit. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Okay, where do I add my mp3 for some music playback?&lt;/b&gt;
&lt;p&gt;
Could you stop asking this questions? Arg, I'm asking myself this, oh no. But I guess
sooner or later this would come up anyway. Well the solution? There is none. No, I'm
not kidding. There is no support for mp3, wma or CD playback of music in XNA. On the
windows platform you could use some external stuff (DirectShow, MCI, external libraries,
etc.), but on the XBox360 you are stuck with XAct, which does just support sound effect
files.
&lt;/p&gt;
&lt;p&gt;
Ok, then just let add the .mp3 as a .wav file there. Yup, thats possible, but consider
your game size. If your binaries are maybe 1MB, textures 5-10MB and sounds 2MB you
don't want to add 3*50MB for 3 music files. I had quite a long discussion with some
music artist about this issue and we agreed that it would be best to do try out some
22kHz mono sounds for the music for a smaller game size. Don't even try to think about
any compression, the only format that XAct eats is PCM .Wav files. Sample them down
or live with mega-files, your choice ... 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;How to add Controller (Mouse, Keyboard, XBox360 Controller) support?&lt;/b&gt;
&lt;p&gt;
Again, this is not hard stuff. If you have worked with XInput before, this will be
easy for you. Otherwise just read the XNA Programming Guide-&amp;gt;Input pages, which
all contain easy to work with code samples. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;How to show a mouse cursor?&lt;/b&gt;
&lt;p&gt;
You might notice that there is no mouse cursor in the samples, starter kit or any
new project you create. The reason for this is that by default the Game.IsMouseVisible
is set to false. If you set it to true (e.g. in your game constructor) you will see
the mouse cursor again (write: &lt;b&gt;this.IsMouseVisible = true;&lt;/b&gt;). Another way would
be to display your own custom mouse cursor as a sprite at the current mouse position
(see help to get mouse position, it is quit easy). 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;How to capture keyboard text?&lt;/b&gt;
&lt;p&gt;
Well, thats not that easy. You can only check the state of each button (mouse, keyboard,
whatever), but you can't get the text directly like with the OnKeyPress event in window
forms. One way would be to write your own custom text handling, like this:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&lt;font color="#0000ff"&gt; string chatText = "";&lt;br&gt;
List&lt;/font&gt;
&lt;keys&gt;
&lt;font color="#0000ff"&gt; keysLastFrame = new List&lt;/font&gt;
&lt;keys&gt;
&lt;font color="#0000ff"&gt;();&lt;br&gt;
&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
Keys[] keysNow = Keyboard.GetState().GetPressedKeys();&lt;br&gt;
foreach (Keys key in keysNow)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (keysLastFrame.Contains(key) == false)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; chatText += key.ToString();&lt;br&gt;
keysLastFrame = new List&lt;/font&gt; 
&lt;keys&gt;
&lt;font color="#0000ff"&gt;(keysNow);&lt;/font&gt;
&lt;br&gt;
&lt;/keys&gt;
&lt;/keys&gt;
&lt;/keys&gt;
&lt;/code&gt; 
&lt;br&gt;
But this has the disadvantage if you run low on frames or the user types very fast
you might miss some keys (test this by adding Thread.Sleep(50)), which really sucks.
It is also a bit of work to get all the special keys, shift combinations, backspace,
etc. working. For windows apps it might be wise to think about capuring the keyboard
directly with some dummy form (very easy to get text then with OnKeyPress). Another
approach would be to create an extra thread just for handling the keyboard at a high
rate to make sure you catch all the keys. More about this solution can be found in &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683173&amp;amp;SiteID=1"&gt;this
post&lt;/a&gt;. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;What about drawing lines, boxes or other simple 2d stuff?&lt;/b&gt;
&lt;p&gt;
Oh no, this is one of the parts that is really annoying and this does require some
rethinking because all this kind of rendering was done with help of the fixed function
pipeline (hello DirectX 7), which is no longer supported in XNA. It was never easy
in DirectX to draw lines or filled boxes, you had to create your own vertex buffer
or just draw some primitives and set all kinds of renderstages, but with XNA this
gets even more complicated. Better not tell anyone how simple this is in OpenGL (glLine
anyone ^^). 
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt; So how can we draw some lines in 3d?&lt;/b&gt; 
&lt;/p&gt;
&lt;p&gt;
Again: It is very important to know that you have to do EVERYTHING with shaders! The
Sprite classes are just some helpers, but for 3d you need shaders, nothing else will
work! I say this that often because many people in the XNA Forum already having problems
rendering data and do not understand that if you don't have a shader around your rendering
code, nothing will happen! Additionally you have to make sure you pass all the required
data to your shader, there is a lot more work involved that just rendering some primitives
in DirectX using the fixed function pipeline.
&lt;/p&gt;
&lt;p&gt;
I will try to keep this as short as possible, but you will see this is quite a lot
of code for just rendering a single line. Here we go. We start with the variables
we need (add to your Game class):
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;font color="#0000ff"&gt; Matrix Projection = Matrix.Identity,&lt;br&gt;
View = Matrix.Identity;&lt;br&gt;
Vector3 pos1 = new Vector3(0, 0, 0),&lt;br&gt;
pos2 = new Vector3(100, 100, 100);&lt;br&gt;
VertexPositionColor[] lineVertices =&lt;br&gt;
new VertexPositionColor[2];&lt;br&gt;
lineVertices[0] = new VertexPositionColor(pos1, Color.Red);&lt;br&gt;
lineVertices[1] = new VertexPositionColor(pos2, Color.Yellow);&lt;br&gt;
&lt;br&gt;
Effect effect = null;&lt;br&gt;
EffectParameter worldViewProj = null;&lt;/font&gt; 
&lt;br&gt;
&lt;/code&gt; 
&lt;/p&gt;
&lt;p&gt;
We will use the Projection and View to calculate the worldViewProj matrix for our
shader to convert the 3d coordinates to 2d (yep, I told you, we have to do everything
ourself). If you want some camera control, always update the View matrix, which again
you have to manage yourself (hello XNA team, some help with this basic stuff plz).
Ok, lets continue before I explode, here is the initialization code (copy to your
Game constructor):
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;font color="#0000ff"&gt; float aspectRatio = (float)TestGame.Width / (float)TestGame.Height;&lt;br&gt;
Projection = Matrix.CreatePerspectiveFieldOfView(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; (float)Math.PI / 2, aspectRatio, 0.1f, 1000.0f);&lt;br&gt;
View = Matrix.CreateLookAt(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; new Vector3(0, 0, -50), Vector3.Zero, Vector3.Up);&lt;br&gt;
&lt;br&gt;
CompiledEffect compiledEffect = Effect.CompileEffectFromFile(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; "Shaders\\LineRendering.fx", null, null, CompilerOptions.None,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; TargetPlatform.Windows);&lt;br&gt;
effect = new Effect(TestGame.Device,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; compiledEffect.GetShaderCode(), CompilerOptions.None, null);&lt;br&gt;
&lt;br&gt;
worldViewProj = effect.Parameters["worldViewProj"];&lt;/font&gt; 
&lt;br&gt;
&lt;/code&gt; 
&lt;/p&gt;
&lt;p&gt;
Ok, what happens here? First of all we calculate our aspect ratio, nothing special.
Then we have to calculate our projection and view matrices (please read the DirectX
documentation if you have no idea what I'm talking about). Basically we have a field
of view of 90 degrees (PI/2), we use our aspect ratio and we have a view range from
0.1 (near) to 1000.0 units (far). Then we create our camera at the position (0, 0,
-50) looking at the center of our scene.
&lt;/p&gt;
&lt;p&gt;
Next we have to load our shader effect file. Yes, I told you about that earlier, we
need a freaking shader to draw our simple line. We will get into that in a little
bit, but ALWAYS make sure the .fx file is correct (test with FX Composer first). If
the .fx file contains compiler errors you get unfunny NullReferenceExceptions, which
won't help you (see below). Finally we are getting the worldViewProj parameter. This
is the only line of this whole line code I really appreciate. Getting shader parameters
is now a lot easier and cleaner, good work here! Also working with shaders is very
easy now. 
&lt;/p&gt;
&lt;p&gt;
Time to continue with our code, we need the rendering code (add to Draw()) now:
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;font color="#0000ff"&gt;&lt;font color="#008000"&gt; // Start line shader&lt;/font&gt;
&lt;br&gt;
effect.Begin(EffectStateOptions.Default);&lt;br&gt;
effect.Techniques[0].Passes[0].Begin();&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt; // Render line&lt;/font&gt;
&lt;br&gt;
worldViewProj.SetValue(View * Projection);&lt;br&gt;
TestGame.device.VertexDeclaration = new VertexDeclaration(&lt;br&gt;
TestGame.device, VertexPositionColor.VertexElements);&lt;br&gt;
&lt;br&gt;
TestGame.device.DrawUserPrimitives&lt;/font&gt; 
&lt;vertexpositioncolor&gt;
&lt;font color="#0000ff"&gt;(&lt;br&gt;
PrimitiveType.LineList, 1, lineVertices);&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt; // End shader&lt;/font&gt;
&lt;br&gt;
effect.Techniques[0].Passes[0].End();&lt;br&gt;
effect.End();&lt;/font&gt; 
&lt;br&gt;
&lt;/vertexpositioncolor&gt;
&lt;/code&gt; 
&lt;/p&gt;
&lt;p&gt;
This code is pretty straight forward. We start our shader and select the first technique
(the only one we got). Then we calculate our worldViewProj matrix from the View and
Projection matrices we calculated in the constructor. After setting the VertexDeclaration
we can draw our primitives, which are lines in our case. Just one to be more specific.
Adding more lines is quite easy at this point. Finally we have to close the rendering
pass (we just got 1 pass, else we would have to make a foreach loop around this code)
and we also close the shader. 
&lt;/p&gt;
&lt;p&gt;
So far so good, but how does the rendering now happen? 100% in the shader, the code
we just wrote will do nothing more than calling the shader with the data we set, the
line point positions and colors. So lets take a look at the shader, which does all
the rendering. The shader itself is quite simple: 
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;font color="#008000"&gt; // File: LineRendering.fx, Author: Abi&lt;br&gt;
// Code lines: 52, Size of file: 1,18 KB&lt;br&gt;
// Creation date: 31.08.2006 05:36&lt;br&gt;
// Last modified: 31.08.2006 06:44&lt;br&gt;
// Generated with Commenter by abi.exDream.com&lt;br&gt;
// Note: To test this use FX Composer from NVIDIA!&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;font color="#0000ff"&gt; string description = "Line rendering helper shader for XNA";&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt; // Default variables, supported by the engine&lt;/font&gt;
&lt;br&gt;
float4x4 worldViewProj : WorldViewProjection;&lt;br&gt;
&lt;br&gt;
struct VertexInput&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; float3 pos : POSITION;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; float4 color : COLOR;&lt;br&gt;
};&lt;br&gt;
&lt;br&gt;
struct VertexOutput 
&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; float4 pos : POSITION;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; float4 color : COLOR;&lt;br&gt;
};&lt;br&gt;
&lt;br&gt;
VertexOutput LineRenderingVS(VertexInput In)&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; VertexOutput Out;&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Transform position&lt;/font&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Out.pos = mul(float4(In.pos, 1), worldViewProj);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Out.color = In.color;&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // And pass everything to the pixel shader&lt;/font&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return Out;&lt;br&gt;
} &lt;font color="#008000"&gt;// LineRenderingVS(VertexInput In)&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
float4 LineRenderingPS(VertexOutput In) : Color&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return In.color;&lt;br&gt;
} &lt;font color="#008000"&gt;// LineRenderingPS(VertexOutput In)&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt; // Techniques&lt;/font&gt;
&lt;br&gt;
technique LineRendering&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pass Pass0&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; VertexShader = compile vs_1_1 LineRenderingVS();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PixelShader = compile ps_1_1 LineRenderingPS();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;font color="#008000"&gt;// Pass0&lt;/font&gt;
&lt;br&gt;
} &lt;font color="#008000"&gt;// LineRendering&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000"&gt; &lt;/font&gt; 
&lt;br&gt;
&lt;/code&gt; 
&lt;/p&gt;
&lt;p&gt;
And thats it. As you can see we just take the input position, transform it and then
output the color we interpolated through the vertex shader. The pixel shader has just
to output the color. Working with other primitive types can be done in a similar way,
so I hope this code helps. 
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;And what about 2d lines?&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
2D lines can be done quite similary. In DirectX you would never think about rendering
2D lines with shaders, when it is so much easier with the fixed function pipeline.
But this is not possible in XNA, so we have to use shaders again. Lets go quickly
through the code that is required:
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;font color="#0000ff"&gt; Matrix Projection = Matrix.Identity,&lt;br&gt;
View = Matrix.Identity;&lt;br&gt;
Point pos1 = new Point(0, 0),&lt;br&gt;
pos2 = new Point(500, 250);&lt;br&gt;
VertexPositionColor[] lineVertices =&lt;br&gt;
new VertexPositionColor[2];&lt;br&gt;
Effect effect = null;&lt;br&gt;
EffectParameter worldViewProj = null;&lt;/font&gt;
&lt;br&gt;
&lt;/code&gt; 
&lt;/p&gt;
&lt;p&gt;
Very similar to what we had above, only our positions are now Points and not Vector3.
Also note we don't calculate the lineVertices here because the data is resolution
dependant and we have to grab the resolution from the graphics object first. Lets
take a look at the initialization code:
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;font color="#0000ff"&gt; float aspectRatio = (float)TestGame.Width / (float)TestGame.Height;&lt;br&gt;
Projection = Matrix.CreatePerspectiveFieldOfView(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; (float)Math.PI / 2, aspectRatio, 0.1f, 1000.0f);&lt;br&gt;
View = Matrix.CreateLookAt(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; new Vector3(0, 0, -50), Vector3.Zero, Vector3.Up);&lt;br&gt;
&lt;br&gt;
lineVertices[0] = new VertexPositionColor(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; new Vector3(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; -1.0f + 2.0f * pos1.X / TestGame.Width,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; -(-1.0f + 2.0f * pos1.Y / TestGame.Height), 0), Color.Red);&lt;br&gt;
lineVertices[1] = new VertexPositionColor(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; new Vector3(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; -1.0f + 2.0f * pos2.X / TestGame.Width,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; -(-1.0f + 2.0f * pos2.Y / TestGame.Height), 0), Color.Green);&lt;br&gt;
&lt;br&gt;
CompiledEffect compiledEffect = Effect.CompileEffectFromFile(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; "Shaders\\LineRendering2D.fx", null, null, CompilerOptions.None,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; TargetPlatform.Windows);&lt;br&gt;
effect = new Effect(TestGame.Device,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; compiledEffect.GetShaderCode(), CompilerOptions.None, null);&lt;br&gt;
&lt;br&gt;
worldViewProj = effect.Parameters["worldViewProj"];&lt;/font&gt; 
&lt;br&gt;
&lt;/code&gt; 
&lt;/p&gt;
&lt;p&gt;
This looks slightly more complex. The reason for that is the conversation from pixel
coordinates to screen space, which goes from -1 to +1 and has y inverted. We could
also do this calculation in the vertex shader, but I like C# more ^^ Please also note
that we don't need the z coordinate, but it is way easier to just use the VertexPositionColor
struct instead of creating our own struct. Lets continue with the rendering.
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;font color="#0000ff"&gt;&lt;font color="#008000"&gt; // Start line shader&lt;/font&gt;
&lt;br&gt;
effect.Begin(EffectStateOptions.Default);&lt;br&gt;
effect.Techniques[0].Passes[0].Begin();&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt; // Render line&lt;/font&gt;
&lt;br&gt;
worldViewProj.SetValue(View * Projection);&lt;br&gt;
TestGame.device.VertexDeclaration = new VertexDeclaration(&lt;br&gt;
TestGame.device, VertexPositionColor.VertexElements);&lt;br&gt;
&lt;br&gt;
TestGame.device.DrawUserPrimitives&lt;/font&gt; 
&lt;vertexpositioncolor&gt;
&lt;font color="#0000ff"&gt;(&lt;br&gt;
PrimitiveType.LineList, 1, lineVertices);&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt; // End shader&lt;/font&gt;
&lt;br&gt;
effect.Techniques[0].Passes[0].End();&lt;br&gt;
effect.End();&lt;/font&gt; 
&lt;br&gt;
&lt;/vertexpositioncolor&gt;
&lt;/code&gt; 
&lt;/p&gt;
&lt;p&gt;
Nothing changed here, nothing we have to discuss. Everything works just the same.
lets take a look at the shader!
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;font color="#008000"&gt; // File: LineRendering2D.fx, Author: Abi&lt;br&gt;
// Code lines: 52, Size of file: 1,18 KB&lt;br&gt;
// Creation date: 31.08.2006 05:36&lt;br&gt;
// Last modified: 31.08.2006 06:55&lt;br&gt;
// Generated with Commenter by abi.exDream.com&lt;br&gt;
// Note: To test this use FX Composer from NVIDIA!&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
string description = "Line rendering in 2D space shader for XNA";&lt;br&gt;
&lt;font color="#008000"&gt;
&lt;br&gt;
// Default variables, supported by the engine&lt;/font&gt;
&lt;br&gt;
float4x4 worldViewProj : WorldViewProjection;&lt;br&gt;
&lt;br&gt;
struct VertexInput&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; float3 pos : POSITION;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; float4 color : COLOR;&lt;br&gt;
};&lt;br&gt;
&lt;br&gt;
struct VertexOutput 
&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; float4 pos : POSITION;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; float4 color : COLOR;&lt;br&gt;
};&lt;br&gt;
&lt;br&gt;
VertexOutput LineRendering2DVS(VertexInput In)&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; VertexOutput Out;&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Transform position&lt;/font&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Out.pos = float4(In.pos, 1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Out.color = In.color;&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // And pass everything to the pixel shader&lt;/font&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return Out;&lt;br&gt;
} // LineRendering2DVS(VertexInput In)&lt;br&gt;
&lt;br&gt;
float4 LineRendering2DPS(VertexOutput In) : Color&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return In.color;&lt;br&gt;
} &lt;font color="#008000"&gt;// LineRendering2DPS(VertexOutput In)&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;font color="#008000"&gt; // Techniques&lt;/font&gt;
&lt;br&gt;
technique LineRendering2D&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pass Pass0&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; VertexShader = compile vs_1_1 LineRendering2DVS();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PixelShader = compile ps_1_1 LineRendering2DPS();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;font color="#008000"&gt;// Pass0&lt;/font&gt;
&lt;br&gt;
} &lt;font color="#008000"&gt;// LineRendering2D&lt;/font&gt;
&lt;br&gt;
&lt;/code&gt; 
&lt;/p&gt;
&lt;p&gt;
Not much changed here either. Only the vertex shader is changed, we don't have to
use our worldViewProj matrix anymore. We are just copying the data over to the pixel
shader for rendering the screen stuff directly.
&lt;/p&gt;
&lt;p&gt;
Thats it for rendering 2D data. I guess most 2D stuff will be covered by the Sprite
class, but if you need some custom 2d stuff (lines, boxes, etc.) this code should
help you out. Have fun writing more complex stuff. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Ok, if the line stuff is that hard, lets do some simple mesh rendering, right?&lt;/b&gt;
&lt;p&gt;
Wrong again. While this was planed for the XNA Beta release, it didn't make it into
the beta and you have to do your own mesh loading, handling and rendering. In the
SpaceWar Starter Kit game you can find some code to load swm model files (wtf is this
format?), but you can't render .x or .fbx files that easily yet. In the future no
problem, but right know you are f .. erm, not able to ^^. When I got some code for
mesh loading and rendering, I will show it :-) 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Content Management, what about that?&lt;/b&gt;
&lt;p&gt;
Well, its quite cool to just drop your content files into your project and then you
can directly access them in your code. But since this feature is not supported yet,
there is no point discussing it ... If you want to read stuff anyway, check this blog
posts about the content pipeline out: &lt;a href="http://blogs.msdn.com/xna/archive/2006/08/29/730168.aspx"&gt;http://blogs.msdn.com/xna/archive/2006/08/29/730168.aspx&lt;/a&gt; and &lt;a href="http://blogs.msdn.com/shawnhar/archive/2006/08/26/725954.aspx"&gt;http://blogs.msdn.com/shawnhar/archive/2006/08/26/725954.aspx&lt;/a&gt;. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Why are there so few help topics in the most important namespace Microsoft.XNA.Graphics,
especially for 3d rendering?&lt;/b&gt;
&lt;p&gt;
Well, since most of the line rendering, mesh or even the content pipeline is not supported,
it is no wonder some important topics are missing. The help basically just tells you
how to create a textured cube yet, nothing else. But this is also an early beta release,
expect more help topics in the future. The many new XNA pages that are created these
days (like 10 new ones each day ^^) will also provide a lot of resources. I bet XNA
will have a really big community after a while. XNA has already interessted a lot
of people about this new technology.
&lt;/p&gt;
&lt;p&gt;
Please also try to use the &lt;a href="http://msdn.microsoft.com/directx/"&gt;DirectX documentation&lt;/a&gt; as
backup help in case you need more tutorials, samples and documentation.
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Shaders?&lt;/b&gt;
&lt;p&gt;
Yap, everything except Sprites has to be done with shaders. I guess this will be reason
enough for most XNA games to never have any 3d content. Working with sprites is quite
easy, but having to write custom shader code, declaring vertex types and having crazy
random exceptions is nothing easy.
&lt;/p&gt;
&lt;p&gt;
For example if your shader fails to compile you get just a &lt;b&gt;System.NullReferenceException:
Object reference not set to an instance of an object.&lt;/b&gt; There is no explanation
what did went wrong, which is pretty bad IMO. Shaders are really a pain in the ass
because they are not managed in any way. Its just some script that gets compiled for
the GPU and if anything went wrong you can hope your tools tell you exactly what to
do. MDX did already suck in this regard, but from my quick early preview XNA is way
worse. I really hope this part gets improved. What does nice and clean sprite, sound
and controller programming help me if the 3d code is ugly as hell and as hard to write
as c++ minus the debugging benefits from DirectX.
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;Debugging DirectX?&lt;/b&gt; Yes, lets do that. First you need VS 2005 (see below how
to get that to work with XNA). Now activate unmanaged Debugging and make sure DirectX
is running in Debug mode (either go to your control panel and open up DirectX or use
Start-&amp;gt;Programs-&amp;gt;DirectX-&amp;gt;Utilities-&amp;gt;Control Panel (which is the only
available choice on x64 bit), now select debug mode and also set the Managed DirectX
dlls to debug for better debugging support. Now when crazy NullReferenceExceptions
happen and you are lucky you might see some helpful explanation.
&lt;/p&gt;
&lt;p&gt;
Scroll above to see some simple shaders for the line rendering stuff. There is also
another shader example in the documentation, work with that code and change it with
help of tools like &lt;a href="http://developer.nvidia.com/object/fx_composer_home.html"&gt;FX
Composer&lt;/a&gt; to find out about compiling errors beforehand. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Do I have to dispose textures, models, etc. like in MDX?&lt;/b&gt;
&lt;p&gt;
Not really. I didn't notice any problems yet. I guess XNA has some mechanisms to collect
all resources when disposing itself (game component and device). As you can see in
the SpaceWar Starter Kit they didn't had to implement any disposing for their MeshCache
or TextureCache lists in SpacewarGame.cs.
&lt;/p&gt;
&lt;p&gt;
This is quite cool IMO, it makes coding even easier than it was in MDX. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Why does my game crash with a NullReferenceException when I drag it over to another
screen when using SpriteBatches?&lt;/b&gt;
&lt;p&gt;
I guess this is some bug in the SpriteBatch class, which does not handle the device
lost event correctly or something. It always crashes in the Begin() method when dragging
the window out of my first screen. Since the SpriteBatch class does not have any events
other than disposing, the best and simplest solution is just to add a event handler
for the OnCreateDevice event and put your SpriteBatch creation code there too. This
way it gets re-created when you need it. Would be nice if you didn't have to do this
yourself ... XNA team reading this? Who knows ^^ 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Occlusion quering for example for lens flare effects?&lt;/b&gt;
&lt;p&gt;
Not supported, check out &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683808&amp;amp;SiteID=1"&gt;this
post&lt;/a&gt;. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;What about Physics, AI, Collision, Particles, etc.?&lt;/b&gt;
&lt;p&gt;
Not supported right now, check out &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=684033&amp;amp;SiteID=1"&gt;this
post&lt;/a&gt;. Since XNA is mainly a graphic engine with sound and controller support,
it is not very likely you get advanced engine features soon. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;How to get XNA working in VS 2005 (with all the plugins you might have, which do
not work in Express)?&lt;/b&gt;
&lt;p&gt;
Thats not supported or even possible out of the box! Read more about this &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683964&amp;amp;SiteID=1&amp;amp;mode=1"&gt;here
(Forum)&lt;/a&gt; and in the &lt;a href="http://msdn.microsoft.com/directx/xna/faq/"&gt;FAQ&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
But since I'm such a clever guy I modified the XNA templates quite a bit and added
support opening the project in VS 2005. &lt;a href="http://exdream.no-ip.info/blog/PermaLink.aspx?guid=8962e9a7-3185-438d-882a-e8e919771dc2"&gt;Read
the full story here&lt;/a&gt;. Basically just download this: &lt;a href="%3Ca%20href=" http://exdream.no-ip.info/blog/xna64bitsupport.zip=""&gt;Xna64BitSupport.zip
(14 KB)&lt;/a&gt; and extract it to:&lt;br&gt;
&lt;font color="#808080"&gt; C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\VCSExpress\&lt;/font&gt;
&lt;br&gt;
Now you can open your created XNA Game Studio Express projects in VS 2005 and continue
working on them there. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Unit Testing in XNA?&lt;/b&gt;
&lt;p&gt;
Quite simple, just add NUnit.Framework.dll, which is fully managed and should even
work on the XBox360 (not that you need unit testing there). If you use VS Express, &lt;a href="http://www.testdriven.net/"&gt;TestDriven.NET&lt;/a&gt; will
not work (unless you have a version from last year, which still supported it). If
you use VS 2005 use &lt;a href="http://www.testdriven.net/"&gt;TestDriven.NET&lt;/a&gt; or &lt;a href="http://www.mailframe.net/products/testrunner.htm"&gt;TestRunner&lt;/a&gt; (tested
it few weeks ago, very nice, but does not support static unit tests, big nono for
me).
&lt;/p&gt;
&lt;p&gt;
I also suggest using a TestGame class and do many static unit tests to play around
with XNA (I already wrote 5 static unit tests today). Thats much faster than to create
a new project everytime. And each test looks much easier and shorter than a complete
new project. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Performance of XNA compared to MDX or native DirectX.&lt;/b&gt;
&lt;p&gt;
I couldn't detect any performance penalities yet, someone in the XNA forums had some
problems archiving 800 fps when using bitmap fonts, dunno what that was about. But
it is very hard to say how XNA performs in relation to MDX because there is not much
code or games we can compare yet.
&lt;/p&gt;
&lt;p&gt;
But in my opinion it does not even matter, the XBox360 is fast enough even if you
write really shitty code and the windows platform is also quite fast with all this
dual core around. For most simpler or casual games this will never matter much. However
I do strongly believe that XNA will perform on the same level as MDX and DirectX. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;But I want to play my XNA game on my XBox 360?&lt;/b&gt;
&lt;p&gt;
Me too, but we have to wait for the next drop of XNA ^^ Not supported yet. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;What about Rocket Commander for the XBox 360?&lt;/b&gt;
&lt;p&gt;
Well, I thought about that, but since many of the classes used in Rocket Commander
are not supported yet in XNA and the actual XBox360 execution is not yet possible,
why even bother? As soon as XBox360 XNA'ing is possible, I will consider a Rocket
Commander port again. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Btw: Why is the SpaceWar Starter Kit so big (155 MB uncompressed)?&lt;/b&gt; There is
not even music in it.&lt;p&gt;
Most textures are uncompressed as .tga files, not good ... Rocket Commander has more
graphics, music and I guess more sound files too, but is less than 10 MB. 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Need more help?&lt;/b&gt; Then ask in the &lt;a href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=846&amp;amp;SiteID=1"&gt;XNA
Forums&lt;/a&gt; and not here, I got stuff to do :D 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
Hope this helps. I will post more about XNA Trick &amp;amp; Tips soon ;-) 
&lt;p&gt;
Yes, I'm writing a XNA game too. It will even be a Starter Kit for the next XNA Game
Studio Release, more about that next week, I will post weekly screenshots like in
the Rocket Commander Development time.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=44339eda-86da-4a2d-ae94-9387aad9c178" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,44339eda-86da-4a2d-ae94-9387aad9c178.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;Rocket Commander;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=b3da75a1-7f20-483d-9057-6fc91aa89f41</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,b3da75a1-7f20-483d-9057-6fc91aa89f41.aspx</pingback:target>
      <dc:creator />
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,b3da75a1-7f20-483d-9057-6fc91aa89f41.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=b3da75a1-7f20-483d-9057-6fc91aa89f41</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://msdn.microsoft.com/directx/art/Hero/XNA_Hero_Banner.jpg" />
        <br />
        <br />
Microsoft has released their XNA Framework and the XNA Game Studio Express (which
is based on Visual Studio C# Express). You can now start developing your own games
using the XNA Framework.<br /><br />
The download includes some documentation (not much on 3d graphics I have to say) and
a pretty cool and interessting Starter Kit "SpaceWar", which is an Asteroids clone
with both retro and modern graphics. More content, more help and more starter kits
will come in the future.<br /><br />
Sadly there is no direct XBox360 support yet, so you cannot plugin your XBox360 and
play your XNA games right now. As stated in the <a href="http://msdn.microsoft.com/directx/xna/faq/">XNA
FAQ</a> this will be possible in the near future (next drop in a few months maybe).<br /><br />
Anyways, download the XNA Game Studio out and check it out:<br /><a href="http://msdn.microsoft.com/directx/xna/gse/">http://msdn.microsoft.com/directx/xna/gse/</a><br /><br />
There are many questions in the XNA Boards, a lot of stuff to read ^^ If you are searching
for some early XNA Tutorials, Samples and Blog, check out the links in this thread:<br /><a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=682393&amp;SiteID=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=682393&amp;SiteID=1</a><br /><br />
Great stuff ahead, but be aware, this is still beta and might not be complete enough
for every need. I guess some of the helper classes and 3d graphic classes will be
extended and there will be much more help available in the future :-)<br /><br />
I will also blog alot about XNA in the near future, but first of all I need to do
more XNA coding and find stuff out.<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=b3da75a1-7f20-483d-9057-6fc91aa89f41" /></body>
      <title>XNA Game Studio Express Beta1 Released</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,b3da75a1-7f20-483d-9057-6fc91aa89f41.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2006/08/30/XNAGameStudioExpressBeta1Released.aspx</link>
      <pubDate>Wed, 30 Aug 2006 18:18:45 GMT</pubDate>
      <description>&lt;img src="http://msdn.microsoft.com/directx/art/Hero/XNA_Hero_Banner.jpg"&gt;
&lt;br&gt;
&lt;br&gt;
Microsoft has released their XNA Framework and the XNA Game Studio Express (which
is based on Visual Studio C# Express). You can now start developing your own games
using the XNA Framework.&lt;br&gt;
&lt;br&gt;
The download includes some documentation (not much on 3d graphics I have to say) and
a pretty cool and interessting Starter Kit "SpaceWar", which is an Asteroids clone
with both retro and modern graphics. More content, more help and more starter kits
will come in the future.&lt;br&gt;
&lt;br&gt;
Sadly there is no direct XBox360 support yet, so you cannot plugin your XBox360 and
play your XNA games right now. As stated in the &lt;a href="http://msdn.microsoft.com/directx/xna/faq/"&gt;XNA
FAQ&lt;/a&gt; this will be possible in the near future (next drop in a few months maybe).&lt;br&gt;
&lt;br&gt;
Anyways, download the XNA Game Studio out and check it out:&lt;br&gt;
&lt;a href="http://msdn.microsoft.com/directx/xna/gse/"&gt;http://msdn.microsoft.com/directx/xna/gse/&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
There are many questions in the XNA Boards, a lot of stuff to read ^^ If you are searching
for some early XNA Tutorials, Samples and Blog, check out the links in this thread:&lt;br&gt;
&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=682393&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=682393&amp;amp;SiteID=1&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Great stuff ahead, but be aware, this is still beta and might not be complete enough
for every need. I guess some of the helper classes and 3d graphic classes will be
extended and there will be much more help available in the future :-)&lt;br&gt;
&lt;br&gt;
I will also blog alot about XNA in the near future, but first of all I need to do
more XNA coding and find stuff out.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=b3da75a1-7f20-483d-9057-6fc91aa89f41" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,b3da75a1-7f20-483d-9057-6fc91aa89f41.aspx</comments>
      <category>All;Game Development;Other;Programming;Reviews;XNA</category>
    </item>
  </channel>
</rss>