<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cannontrodder's world</title>
	<atom:link href="http://www.cannontrodder.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cannontrodder.net</link>
	<description>cannontrodder - Getting nothing done since 1975.</description>
	<lastBuildDate>Sat, 06 Feb 2010 22:19:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL Server 2008 x64 Express on Windows Server 2008 x64 is UTTERLY BROKEN</title>
		<link>http://www.cannontrodder.net/2009/07/24/sql-server-2008-x64-on-windows-server-2008-x64-is-utterly-broken/</link>
		<comments>http://www.cannontrodder.net/2009/07/24/sql-server-2008-x64-on-windows-server-2008-x64-is-utterly-broken/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 14:22:27 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[Web Dev]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/?p=108</guid>
		<description><![CDATA[I&#8217;ve had the most frustrating 4 hours trying to install SQL Server 2008.
It boils down to this: the sql installer has five bugs that stop you installing it properly. Now I&#8217;m not sure if most people have seen the SQL Server 2008 installer but it goes on and on checking pre-requisites and performing other tests [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had the most frustrating 4 hours trying to install SQL Server 2008.</p>
<p>It boils down to this: the sql installer has five bugs that stop you installing it properly. Now I&#8217;m not sure if most people have seen the SQL Server 2008 installer but it goes on and on checking pre-requisites and performing other tests yet completely and utterly FAILS when trying to do ANY type of install on Windows 2008 Server x64 when you&#8217;ve removed SQL Server 2005 beforehand.</p>
<p><span id="more-108"></span>I get the error message: &#8220;<em>The <strong>INSTANCESHAREDWOWDIR</strong> command line value is not valid.</em>&#8221;</p>
<p>&#8230;and I get it when I click <em>next</em> on this screen populated with default values:</p>
<div id="attachment_109" class="wp-caption alignleft" style="width: 310px"><a href="http://www.cannontrodder.net/wp-content/sqlinstallmadness.png" rel="lightbox[108]"><img class="size-medium wp-image-109" title="SQL Server 2008 Madness" src="http://www.cannontrodder.net/wp-content/sqlinstallmadness-300x225.png" alt="These are the default values!" width="300" height="225" /></a><p class="wp-caption-text">These are the default values!</p></div>
<p>This problem seems to occur when you have removed SQL 2005 (which I had to do on our newly commissioned server from 1and1) and then try to install SQL 2008.</p>
<p>It turns out you need to over-ride one of the values passed into the installer &#8211; <strong>INSTALLEDSHAREDWOWDIR</strong> &#8211; yes, the error message is actually WRONG, there is no such parameter as <strong>INSTANCESHAREDWOWDIR</strong> (bug #1). So, set the <strong>INSTALLSHAREDWOWDIR</strong> parameter via the command-line. But don&#8217;t set it to <strong>&#8220;C:\Program Files(x86)\Microsoft SQL Server\&#8221;</strong>, because you already have the shared feature folder option set to  <strong>&#8220;C:\Program Files(x86)\Microsoft SQL Server\&#8221;</strong> from the previous install and it won&#8217;t allow them to be the same. Even though it won&#8217;t let you change it&#8230;. (bug #2)</p>
<p>Now when you try and change  the <strong>INSTALLSHAREDWOWDIR</strong> parameter via the command-line, it complains that you have not set the <strong>INSTANCESHAREDDIR</strong> parameter. But that parameter does not exist (bug #3), it means <strong>INSTALLSHAREDDIR</strong> even though a value for that is set in the dialog which it won&#8217;t let you change&#8230;..</p>
<p>So, you have to run the setup.exe from the command line like this:</p>
<p><code>setup /action=install /INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server\\" /INSTALLSHAREDWOWDIR="C:\Program Files\Microsoft SQL Server Shared\\"</code></p>
<p>Let&#8217;s just skim over the crazy double back-slash escaping at the end by just stating that it is insane.</p>
<p>I have to point out that the parameter for <strong>INSTALLSHAREDDIR</strong> gets ignored anyway (bug #4), it still uses the default value in the image above but at least it stops moaning about it. I&#8217;ve set the shared folder to a new one of my own choosing because I have a bad feeling something else later on down the line is going to clash with it.</p>
<p>Once you have done this, you will get past that install screen that held me captive for 4 hours and be able to set the instance name. (Do yourself a favour, specify the instance name manually as MSSQLSERVER if you want it to be the default instance. That&#8217;s because the default instance option doesn&#8217;t work either. (bug #5))</p>
<p>This all left me in a position where we had paid for a server that should have been completely compatible with the configuration I needed but we simply could not install it. That&#8217;s not a nice feeling at all!</p>
<p>SQL 2008 &#8211; utterly, utterly, utterly CRAP installer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2009/07/24/sql-server-2008-x64-on-windows-server-2008-x64-is-utterly-broken/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>3DMagix Try To Muscle In On Blender</title>
		<link>http://www.cannontrodder.net/2009/07/08/3dmagix-try-to-muscle-in-on-blender/</link>
		<comments>http://www.cannontrodder.net/2009/07/08/3dmagix-try-to-muscle-in-on-blender/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 00:05:52 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Blender]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/?p=106</guid>
		<description><![CDATA[Please give support to BlenderNation in highlighting this company directly selling Blender while claiming it is their own software.
Original Article
]]></description>
			<content:encoded><![CDATA[<p>Please give support to BlenderNation in highlighting this company directly selling Blender while claiming it is their own software.</p>
<p><a href="http://www.blendernation.com/2009/06/11/3dmagix-re-branding-and-selling-the-free-software-blender/">Original Article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2009/07/08/3dmagix-try-to-muscle-in-on-blender/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPlayer Videos &#8211; on the Android G1</title>
		<link>http://www.cannontrodder.net/2009/05/04/iplayer-videos-on-the-android-g1/</link>
		<comments>http://www.cannontrodder.net/2009/05/04/iplayer-videos-on-the-android-g1/#comments</comments>
		<pubDate>Mon, 04 May 2009 22:47:51 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/?p=97</guid>
		<description><![CDATA[Don&#8217;t get over-excited, you can&#8217;t stream them yet! 
July 26th 2009 addition: I&#8217;m being disingenuous here, Dave Johnston has created a free Android application called Beebplayer which you can grab from the marketplace. It&#8217;s fantastic! It gives you access to the standard mobile streaming encodes the BBC provide which work great but don&#8217;t match the [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t get over-excited, you can&#8217;t stream them yet! </p>
<p><strong>July 26th 2009 addition</strong>: I&#8217;m being disingenuous here, <a href="http://davejohnston.posterous.com/">Dave Johnston</a> has created a free Android application called Beebplayer which you can grab from the marketplace. It&#8217;s fantastic! It gives you access to the standard mobile streaming encodes the BBC provide which work great but don&#8217;t match the quality of the encodes provided for the iPhone. This guide focusses on getting a copy of an iPlayer video for viewing off-line in a format which is just about as good as you could want quickly.</p>
<p>The bbc provide access to iPlayer for the iPhone but not via flash, they actually provide a http stream with h264 video and AAC audio in it.  Hang on! The G1 could play that!!!! Read on to find out how to do it.<br />
<span id="more-97"></span><br />
Well, it can&#8217;t &#8211; not directly. The BBC have encoded their programmes for iPhones in a friendly format of 480&#215;270 (16:9 widescreen), 400Kbps H.264 video and 116Kbps AAC audio which the G1 can play <strong>fine</strong>.</p>
<p>The problem is that the .mov container is slightly different to the .mp4 container in how it stores AAC audio and the G1 won&#8217;t play the audio on the device.</p>
<p>I&#8217;ve attached a <a href="http://www.cannontrodder.net/wp-content/iPlayerOfflineForAndroid.zip">package</a> to help you download and convert programmes from iPlayer for the G1.</p>
<p>* Unzip it somewhere<br />
* Find the programme you want on iPlayer and navigate to the screen that shows the flash movie, ready for you to click play<br />
* Run the program ipdl.exe ( by <a href="http://po-ru.com/projects/iplayer-downloader/">Paul Battley</a> &#8211; he maintains this actively so if you have problems, get the updated ipdl.exe from there ), paste in the url from your web browser and then click download<br />
* Choose where you want the file to download and wait for it to complete<br />
* Drag the .mov file you have downloaded over onto the convert.bat file<br />
* The batch file will strip the raw video and audio out and recombine into an Android friendly mp4 file!</p>
<p>The length of the download depends on the length of the BBC programme but the conversion at the end is very quick as no re-encoding is required. As a result, the quality is as good as it can possibly be for the G1.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2009/05/04/iplayer-videos-on-the-android-g1/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Game Rage</title>
		<link>http://www.cannontrodder.net/2009/02/25/game-rage/</link>
		<comments>http://www.cannontrodder.net/2009/02/25/game-rage/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 00:35:12 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[Gaming]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/?p=86</guid>
		<description><![CDATA[A fellow blogger has staggering new view on the video-game/violence link debate. While everyone is being diverted with the numerous claims against games such as GTAIV, he hypothesises that the true culprits are hiding right under our noses&#8230;
]]></description>
			<content:encoded><![CDATA[<p>A fellow <a title="Deadly From Six Inches" href="http://goalscrounger.blogspot.com/">blogger</a> has staggering new view on the video-game/violence link debate. While everyone is being diverted with the numerous claims against games such as GTAIV, <a title="Taking my ball home" href="http://goalscrounger.blogspot.com/2009/02/taking-my-ball-home.html">he hypothesises</a> that the true culprits are hiding right under our noses&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2009/02/25/game-rage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Blender and the Collada exporter</title>
		<link>http://www.cannontrodder.net/2008/03/19/installing-blender-and-the-collada-exporter/</link>
		<comments>http://www.cannontrodder.net/2008/03/19/installing-blender-and-the-collada-exporter/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 01:01:12 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[XNA with Blender]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/2008/03/19/installing-blender-and-the-collada-exporter/</guid>
		<description><![CDATA[This is a guide on how to set up Blender and the Collada exporter plug-in. You&#8217;ll need to follow this guide in order to be able to use my XNA Blender importer.

First you will need to install Blender itself. There are new versions released quite often but at the time of writing, the current stable [...]]]></description>
			<content:encoded><![CDATA[<p>This is a guide on how to set up Blender and the Collada exporter plug-in. You&#8217;ll need to follow this guide in order to be able to use my XNA Blender importer.</p>
<p><span id="more-84"></span></p>
<p>First you will need to install Blender itself. There are new versions released quite often but at the time of writing, the current stable version is 2.45 and I suggest downloading it <a title="link Blender download page" href="http://www.blender.org/download/get-blender/" target="_blank">directly from the Blender Foundation</a>.</p>
<p>Installation should be simple, just use the defaults but make sure you have the following selected when the installer asks you:</p>
<p align="center"><img height="272" alt="Image" src="http://www.cannontrodder.net/wp-content/image-3.jpg" width="424" /></p>
<p>I chose the installation folder of <strong>&#8220;C:\Program Files\Blender Foundation\Blender&#8221;</strong> but if you install somewhere else, that is fine &#8211; just remember where as you are going to need to install the Collada exporter plugin there shortly.</p>
<p>Next, you need to install Python. Blender requires you to have Python installed as it&#8217;s what most of the custom Blender import/export plugins are written in. Blender 2.45 was compiled against Python 2.5 and you need to <a title="link to Python 2.5 download" href="http://www.python.org/download/releases/2.5/" target="_blank">download</a> and install that too. The Python project releases bug fixes from time to time while maintaining compatibility and currently the latest version of Python 2.5 is actually numbered 2.5.2. If a new version is released, anything matching 2.5.x will do. Just install Python with all the default options.</p>
<p><img height="103" alt="Image" src="http://www.cannontrodder.net/wp-content/image-4.jpg" width="376" align="right" />When you open Blender after this, you will notice that it opens a separate window apart from the main Blender one. In this window you will see the debug output from any Python plugins. If you installed Blender and Python correctly, you should see it confirm that Python has been detected.</p>
<p>Finally, we need to get the Collada Export plugin for Blender. You might notice if you look at the Blender export plugins in the File-&gt;Export menu, that there is already an entry for the Collada 1.4 exporter. Don&#8217;t use it. It&#8217;s the version that comes with the Blender installer and it&#8217;s broken. It bombs out when you try to export meshes so you need to get the latest bleeding-edge version from Sourceforge, directly from the subversion repository.</p>
<p><strong>Subversion?</strong></p>
<p>In case you don&#8217;t know about it, Subversion is a source-code revision control system which allows developers to collaborate on the same project, checking in their changes when they are happy and updating their local copy to bring in changes from other developers working along with them. I happen to use a Subversion repository at home and at work for my professional and part-time coding projects and highly recommend it. The developers of the Collada Blender export plugin also use a Subversion repository hosted at <a title="link to Sourceforge" href="http://sourceforge.net/" target="_blank">Sourceforge</a>. To get the latest version of the code, you&#8217;ll need to install a Subversion client to connect to and export the code to your local machine.</p>
<p>TortoiseSVN is the de-facto client for Windows and I&#8217;m currently running an alpha version of their up-coming 1.5.0 release. If you&#8217;d prefer not to install alpha version software, install the most recent stable version from <a title="TortoiseSVN download page" href="http://tortoisesvn.net/downloads" target="_blank">here</a>. I&#8217;m using <a title="TortoiseSVN Alpha download page" href="http://tortoisesvn.net/node/310" target="_blank">this one</a> but the instructions are the same, you just need to be aware that my screenshot will differ from yours cosmetically.</p>
<p>Once you have installed TortoiseSVN and rebooted, browse to the Blender installation folder. Remember, the default is &#8220;C:\Program Files\Blender Foundation\Blender\&#8221;. Then navigate to the .blender folder in there to find where all the plugins live. Right-click on the &#8220;scripts&#8221; folder and choose the option &#8220;TortoiseSVN-&gt;Export&#8221; from the context menu that pops up.</p>
<p>In the &#8220;URL of repository&#8221; text box, put this:</p>
<pre>
<code>https://colladablender.svn.sourceforge.net/svnroot/colladablender/trunk</code>
</pre>
<p>Then select the &#8220;<em>Immediate children, including folders</em>&#8221; option from the dropdown. It should look like this:</p>
<p align="center"><img height="389" alt="Image" src="http://www.cannontrodder.net/wp-content/image-5.jpg" width="555" /></p>
<p>Hit ok and it will export the latest version of the plugin, directly from the source-code repository the developers use, into your machines Blender plugin folder. It may be slow, and do not be surprised at data transfer rates of 1k/s &#8211; luckily the plugin is very small. If it asks you if you are sure, confirm your paths are exactly as in the image above and hit yes.</p>
<p>You are now ready to launch Blender and start exporting Blender models into Collada files!<img height="348" alt="Image" src="http://www.cannontrodder.net/wp-content/image-6.jpg" width="237" align="right" /></p>
<p>To do this, go to the File-&gt;Export menu in Blender and choose &#8220;COLLADA 1.4&#8243; and be sure to select the options in the image to the right, to avoid any errors.</p>
<p>Choosing to export to triangles is important as Blender allows you to model using quads which, while great for modelling, is not much use to hardware rendering code which requires geometry to be passed as triangles.</p>
<p>Disabling physics is important as the ability to export this is still under development and will cause an error if you do not disable it.</p>
<p>It will export the files with a .dae extension. Visual C# Express will still display it as an XML file with collapsible nodes to make browsing it easier. It also helps identify the file when added as content in an XNA project as the BlenderXNA Content Importer is setup to be automatically applied to .dae files by default.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2008/03/19/installing-blender-and-the-collada-exporter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forum up!</title>
		<link>http://www.cannontrodder.net/2008/03/18/forum-up/</link>
		<comments>http://www.cannontrodder.net/2008/03/18/forum-up/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 16:19:46 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/2008/03/18/forum-up/</guid>
		<description><![CDATA[I&#8217;ve installed some forums to facilitate feedback for the BlenderXNA project.

There&#8217;s not much in there, in fact there is nothing at all in there right now! You can find them by following the link in the menu up there ^^^, or by this link.
This is where I will post releases and it is also a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve installed some forums to facilitate feedback for the BlenderXNA project.</p>
<p><span id="more-79"></span></p>
<p>There&#8217;s not much in there, in fact there is nothing at all in there right now! You can find them by following the link in the menu up there ^^^, or by <a title="forums" href="http://forum.cannontrodder.net/" target="_blank">this link</a>.</p>
<p>This is where I will post releases and it is also a place for people to give feedback, ask for help or make suggestions.</p>
<p>Just a quick note about registering. My experience of phpbb is that it is a good idea to request users to activate their logins via email as a measure to avoid spam.</p>
<p>I will state now that:</p>
<p><strong>I will <em>never</em> give your email to anyone else &#8211; <em>ever</em>.</strong></p>
<p><strong>I will <em>not</em> use the email to contact you either directly or via any form of mailing list.</strong></p>
<p><strong>I am notified of all posts to feedback and support and I <em>will</em> respond.</strong></p>
<p>I just wanted to clear that up so people can feel free to subscribe to the &#8220;release&#8221; forum in there in order to be informed of new releases.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2008/03/18/forum-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Even more fun with PIX</title>
		<link>http://www.cannontrodder.net/2008/03/17/even-more-fun-with-pix/</link>
		<comments>http://www.cannontrodder.net/2008/03/17/even-more-fun-with-pix/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 01:43:58 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[XNA]]></category>
		<category><![CDATA[XNA General]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/2008/03/17/even-more-fun-with-pix/</guid>
		<description><![CDATA[This is turning out to be a series in itself! Not much of an update here, more a triumphant fist in the air for when things actually work as they should.


The image on the left is a render of Suzanne from Blender, and the one on the right is a render from within the Windows [...]]]></description>
			<content:encoded><![CDATA[<p>This is turning out to be a series in itself! Not much of an update here, more a triumphant fist in the air for when things actually work as they should.</p>
<p><span id="more-77"></span></p>
<p align="center"><img height="193" alt="blender render" src="http://www.cannontrodder.net/wp-content/blender-render.png" width="228" /><img height="193" alt="xna render" src="http://www.cannontrodder.net/wp-content/xna-render.png" width="228" /></p>
<p>The image on the left is a render of Suzanne from Blender, and the one on the right is a render from within the Windows build of my current codebase. No more <a title="Link to previous progress *with* distortion" href="http://www.cannontrodder.net/2008/03/16/more-fun-with-pix/" target="_blank">distortion</a>! The distortion was caused by incorrectly creating the Quaternion rotations from the x, y and z planes in the Collada model which, when combined with my translate and scale transformations, caused <em>all kinds</em> of weirdness.</p>
<p>I would never have got this far without PIX, I think I quite like it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2008/03/17/even-more-fun-with-pix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>More fun with PIX</title>
		<link>http://www.cannontrodder.net/2008/03/16/more-fun-with-pix/</link>
		<comments>http://www.cannontrodder.net/2008/03/16/more-fun-with-pix/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 00:05:44 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[XNA]]></category>
		<category><![CDATA[XNA General]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/2008/03/16/more-fun-with-pix/</guid>
		<description><![CDATA[Just another progress update&#8230;


The above is a screen capture from the windows version of my current code-base. Blender-heads will recognise the (slightly distorted) image of Suzanne, the built-in Blender equivalent to the teapot model.
PIX was able to show me that I was not passing my transformation matrices to the correct parameter in the vertex shader. [...]]]></description>
			<content:encoded><![CDATA[<p>Just another progress update&#8230;</p>
<p><span id="more-74"></span></p>
<p align="center"><img height="373" alt="suzanne" src="http://www.cannontrodder.net/wp-content/suzanne.png" width="210" /></p>
<p>The above is a screen capture from the windows version of my current code-base. Blender-heads will recognise the (slightly distorted) image of <a title="Wiki page showing background of Suzanne in Blender" href="http://en.wikipedia.org/wiki/Blender_(software)#Suzanne" target="_blank">Suzanne</a>, the built-in Blender equivalent to the <a title="Wiki page on the standard teapot reference model" href="http://en.wikipedia.org/wiki/Utah_teapot" target="_blank">teapot model</a>.</p>
<p>PIX was able to show me that I was not passing my transformation matrices to the correct parameter in the vertex shader. As a result they all defaulted to empty matrices and every vertex position output from it was then (0,0,0). I was simply telling my effect technique to use the wrong vertex shader in my .fx file, and that shader expected the &#8220;WorldViewProjection&#8221; parameter. Unfortunately, I was populating the &#8220;World&#8221;, &#8220;View&#8221; and &#8220;Projection&#8221; parameters!</p>
<p>After fixing the error in my .fx file, I managed to render <em>something</em>. And a quick Visual C# debug session later, I realised that I had a silly bug in the parsing code I use to pull the data out of the Collada files. And now I can render a monkey!</p>
<p>There&#8217;s clearly some work to be done to fix the distortion issues above but real progress has been made. I&#8217;ll fix those issues, tidy up the code and probably release a simple demo just for people who are interested.</p>
<p>I&#8217;ll be continuing the <a title="Blender and XNA part 1" href="http://www.cannontrodder.net/2008/03/08/blender-and-xna-part-1/" target="_blank">Blender and XNA</a> series soon which should help those who wonder how I have achieved the above.</p>
<p>I&#8217;ve posted <a title="Even More Fun With PIX" href="http://www.cannontrodder.net/2008/03/17/even-more-fun-with-pix/"> an update</a> to this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2008/03/16/more-fun-with-pix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fun with PIX</title>
		<link>http://www.cannontrodder.net/2008/03/13/fun-with-pix/</link>
		<comments>http://www.cannontrodder.net/2008/03/13/fun-with-pix/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 22:47:07 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[XNA]]></category>
		<category><![CDATA[XNA General]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/2008/03/13/fun-with-pix/</guid>
		<description><![CDATA[Just a quick update from my last post.

I mentioned that I was just getting the following output from my current rendering code:

I had posted on the XNA Forums that I was &#8220;completely in the dark&#8221; as to what was going on after a call to draw my model. The suggestion there was to use PIX, [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick update from my <a href="http://www.cannontrodder.net/2008/03/10/blender-and-xna-part-2/">last post</a>.</p>
<p><span id="more-72"></span></p>
<p>I mentioned that I was just getting the following output from my current rendering code:</p>
<p align="center"><img style="WIDTH: 222px; HEIGHT: 202px" alt="image-2.jpg" hspace="0" src="http://www.cannontrodder.net/wp-content/image-2.jpg" border="0" /></p>
<p>I had <a title="Link to forum post" href="http://forums.xna.com/thread/50280.aspx" target="_blank">posted</a> on the XNA Forums that I was &#8220;completely in the dark&#8221; as to what was going on after a call to draw my model. The suggestion there was to use <a title="PIX msdn article" href="http://msdn2.microsoft.com/en-us/library/bb173085(VS.85).aspx">PIX</a>, which is part of the <a title="DirectX SDK download" href="http://msdn2.microsoft.com/en-us/directx/aa937788.aspx" target="_blank">DirectX SDK</a> for Windows. Well, one 438MB download later and feeling like a challenge, it seems PIX has helped me at least identify the issue.</p>
<p>I am sending the position, normal and colour information to the graphics device plus the indices to tell it how to arrange that data into triangles. Well for testing purposes, I have told it to draw 1 triangle and I seem to be getting the right size vertex buffer to be passed to the graphics device but <strong>all its values are 0</strong>.</p>
<p>This essentially means I am drawing an object so small it has no dimensions, in black and on a black background. Working as intended then&#8230;</p>
<p>I am clearly missing the point somewhere when I construct my VertexBuffer in my ContentProcessor but at least PIX showed me the way!</p>
<p>I&#8217;ve posted <a title="More Fun With PIX" href="http://www.cannontrodder.net/2008/03/16/more-fun-with-pix/"> an update</a> to this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2008/03/13/fun-with-pix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blender and XNA &#8211; Part 2</title>
		<link>http://www.cannontrodder.net/2008/03/10/blender-and-xna-part-2/</link>
		<comments>http://www.cannontrodder.net/2008/03/10/blender-and-xna-part-2/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 15:50:02 +0000</pubDate>
		<dc:creator>cannontrodder</dc:creator>
				<category><![CDATA[XNA]]></category>
		<category><![CDATA[XNA with Blender]]></category>

		<guid isPermaLink="false">http://www.cannontrodder.net/2008/03/10/blender-and-xna-part-2/</guid>
		<description><![CDATA[In part 1, I looked at the Content Pipeline and it&#8217;s components. In this article, I will be looking at the files I am going to be importing and the tool I will be using to create them.

Why Blender?
Blender is an open-source 3D modelling package which is under active development by the Blender Foundation, a [...]]]></description>
			<content:encoded><![CDATA[<p>In part 1, I looked at the Content Pipeline and it&#8217;s components. In this article, I will be looking at the files I am going to be importing and the tool I will be using to create them.</p>
<p><span id="more-68"></span></p>
<p><strong>Why Blender?</strong></p>
<p><a title="Blender home page" href="http://www.blender.org/">Blender</a> is an open-source 3D modelling package which is under active development by the <a title="About Blender Foundation" href="http://www.blender.org/blenderorg/blender-foundation/">Blender Foundation</a>, a non-profit public benefit corporation. It is released under the terms of the <a title="GNU License" href="http://www.gnu.org/copyleft/gpl.html">GNU Public License</a> and is free for anyone to download and run on a wide-range of platforms, including Windows. There is a <a title="Blender Newbies" href="http://blendernewbies.blogspot.com/">huge</a> <a title="Blender nation" href="http://www.blendernation.com/">active</a> <a title="Blender artists site" href="http://blenderartists.org/">community</a> <a title="Blender website list of other community sites." href="http://www.blender.org/community/user-community/">around</a> the world currently using Blender.</p>
<p>It offers functionality to rival that of commercial packages, it&#8217;s very quick and it has a user interface that is centred on making your workflow as fast as possible.</p>
<p>Because Blender is free, there&#8217;ll be no worry that you&#8217;ll have to ditch it&#8217;s use when you one day decide to release a game. That might not be the case with using a <a title="maya learning edition" href="http://usa.autodesk.com/adsk/servlet/item?siteID=123112&amp;id=7679058">learning edition</a> version of a commercial package.</p>
<p><strong>Exporting from Blender</strong></p>
<p><img height="564" alt="A screenshot of the Blender export menu." src="http://www.cannontrodder.net/wp-content/blender-exportlist.png" width="295" align="left" />Because of the open nature of Blender people can extend it to provide export tools for others to use. This is made possible by having Blender integrated with <a title="Python" href="http://www.python.org/">Python</a>, another open-source package. Python is a script-based language that is often used to enable macros or scripting support in other applications.</p>
<p>As you can see from the image, there are quite a few different export plugins that come with Blender upon install. You might notice that XNA already supports two of the formats in this list: FBX (Autodesk) and X (DirectX). I actually don&#8217;t want to those though. I want to use <a title="COLLAborative Design Activity" href="http://www.collada.org/mediawiki/index.php/Main_Page">Collada</a>.</p>
<p><strong>Why Collada?</strong></p>
<p>Collada files are XML files, firstly. This makes them really easy to parse and also really easy to explore in Visual C# Express.</p>
<p>It&#8217;s an open standard which has the remit to provide a standard format for exchange of 3D assets between applications. The potential in the future is that this plugin can support all those other applications.</p>
<p><strong>The Plan</strong></p>
<p>By using Collada, I hope to make my ContentImporter support as much of it&#8217;s flexibility as possible. Then it would be useful just as a general purpose Collada importer for interfacing with other packages and tools you may wish to create. A level editor, for example.</p>
<p>It should be possible to use the plugin to read Collada files into the standard XNA Model class (which I think many users would want) but I also want to explore using it to import into custom classes. My plan is not to just use this to import meshes, but to import other things such as bounding boxes, level floor plans or skeletal animations.</p>
<p><strong>The Code</strong></p>
<p>Right now it is not ready for release in any form. The current status is I have written the ContentImporter, ContentProcessor, ContentTypeWriter, and ContentTypeReader and I&#8217;ve dropped a few test blender meshes into my current version of my framework:</p>
<p><strong>A centred cube.</strong></p>
<p><strong>Two cube meshes in different positions and rotations.</strong></p>
<p><img height="187" alt="Image" src="http://www.cannontrodder.net/wp-content/image-1.jpg" width="207" align="right" /><strong>Two instances of the same cube mesh but in different positions and rotations.</strong></p>
<p><strong>A cube made from multiple materials.</strong></p>
<p><strong>The Blender Suzanne built-in test model (<em>pictured right</em>).</strong></p>
<p>The good news?</p>
<p>They all import without errors. By tracing through the whole process with the simple cube models, I can see that the data is being passed through to my rendering code. The issue I have is that I have written the full pipeline form scratch and could be introducing problems at any point. In fact the current screen display is this:</p>
<p align="center"><img height="202" alt="Errrmm....." src="http://www.cannontrodder.net/wp-content/image-2.jpg" width="222" /></p>
<p>I&#8217;m literally in the dark as to what is happening in the code. The data is passed to the graphics device and I just have to cross my fingers and hope it will work.</p>
<p>To investigate this, I need to use <a title="PIX" href="http://msdn2.microsoft.com/en-us/library/bb173085(VS.85).aspx">PIX</a> the DirectX debugging tool.</p>
<p>I&#8217;ll put up an unsupported demo once I can iron out the rendering bugs, just so people can take a look but then the next task is to package it into more user-friendly plugins they can just drop into their existing projects.</p>
<h1>Next time&#8230;</h1>
<p>I&#8217;ll be looking at the Collada file format in more detail with a glimpse of some code examples to show how it will be parsed. I&#8217;ll also document progress on my work with PIX, something I think will be an interesting task.</p>
<p><a title="Blender and XNA - Part 2" href="http://www.cannontrodder.net/2008/03/08/blender-and-xna-part-1/">Read part 1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cannontrodder.net/2008/03/10/blender-and-xna-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
