<?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>Bjarni Thor &#187; C#</title>
	<atom:link href="http://bjarni.us/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://bjarni.us</link>
	<description>A place that random tech ramblings can call home</description>
	<lastBuildDate>Tue, 26 Jul 2011 01:10:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Nvidia NvPerfHud and XNA / C#</title>
		<link>http://bjarni.us/nvidia-nvperfhud-and-xna-c/</link>
		<comments>http://bjarni.us/nvidia-nvperfhud-and-xna-c/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 01:49:47 +0000</pubDate>
		<dc:creator>Bjarni Arnason</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[NvPerfHud]]></category>
		<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://bjarni.us/?p=354</guid>
		<description><![CDATA[Just wanted to post this here in hopes that Google will pick it up and help others that might encounter the same problem since I found absolutely nothing about this on the INTERTUBES. NvPerfHud crashes horribly every time we try to run it with our game through it. The crashes make little sense, as it [...]]]></description>
			<content:encoded><![CDATA[<p>Just wanted to post this here in hopes that Google will pick it up and help others that might encounter the same problem since I found absolutely nothing about this on the INTERTUBES.</p>
<p>NvPerfHud crashes horribly every time we try to run it with our game through it. The crashes make little sense, as it is not our executable that is crashing, but csc.exe (C# command line compiler) as well as some other stuff like the windows error reporting mechanism. Other XNA applications work fine however so I knew it had to be something specific to our game. After hours of debugging and talking to some Nvidia guys on their <a href="http://developer.nvidia.com/forums/index.php?showtopic=4127">forums</a>, I managed to find out that it was XML deserialization that was causing the culprit. Apparently when C# deserializes an XML file (that we use for settings and particle systems) it creates temporary code in your temporary folder and compiles it to a dll that it then loads to deserialize the XML.</p>
<p>I do however not have a solution for this (yet), we just disabled the component that was loading the XML. This would probably be fixable by precompiling the XML serialization routines, which is possible with some tools (such as <a href="http://msdn.microsoft.com/en-us/library/bk3w6240%28VS.80%29.aspx ">Sgen</a>), but they did not work for me due to some weird namespace conflicts, which were a documented limitation of the tools.</p>
]]></content:encoded>
			<wfw:commentRss>http://bjarni.us/nvidia-nvperfhud-and-xna-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Semester wrap up</title>
		<link>http://bjarni.us/semester-wrap-up/</link>
		<comments>http://bjarni.us/semester-wrap-up/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 21:13:16 +0000</pubDate>
		<dc:creator>Bjarni Arnason</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Cosmopolis]]></category>
		<category><![CDATA[HLSL]]></category>
		<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://bjarni.us/?p=315</guid>
		<description><![CDATA[2 cold spells, 1 imagine cup and 1 demo day later, this semester is over, the Christmas break has arrived and a quick wrap up is in order. Cosmopolis was selected as a finalist for the US Imagine Cup which will be held in Washington DC sometime late April. We&#8217;ll get shipped up there for [...]]]></description>
			<content:encoded><![CDATA[<p>2 cold spells, 1 imagine cup and 1 demo day later, this semester is over, the Christmas break has arrived and a quick wrap up is in order.</p>
<p>Cosmopolis was selected as a finalist for the US Imagine Cup which will be held in Washington DC sometime late April. We&#8217;ll get shipped up there for a weekend of who-knows-what. With some luck and a lot of hard work, we&#8217;ll hopefully break into the international finals in Poland later that year.</p>
<p>Demo Day* was a huge success an enormous failure at the same time. Huge failure because I somehow managed to book my flight back to Iceland in the morning meaning that I&#8217;d miss the entire Demo Day, something I did not realize until 2 days before. I need a personal assistant to book my flights in the future. The Cosmopolis demo however was a huge success from what I&#8217;ve heard, the best one there by most people&#8217;s accounts. Just wish I had been there.</p>
<p>*Demo Day  is a dedicated day at the end of the semester where people from the game industry come to USC and watch students present the best projects of the semester for almost an entire day.</p>
<p>With that in mind, here is what matters, the videos presented at Demo Day. Keep in mind that these are probably unnecessarily  long, intended for someone to be talking while they are playing. Maybe we&#8217;ll put up annotations sometime. The videos are in HD, so fullscreen + HD is recommended.</p>
<p>What I specifically worked on in this is pretty much the programming of everything you see (and don&#8217;t see, ie core engine stuff) except the animation system. I wrote all the shaders and pretty much everything graphics related (vegetation, terrain, water, time of day, shadows, particle system, etc), as well as a big part of the gameplay (including network) for both (sub)games.</p>
<p><strong><br />
Cosmopolis: United Nations Millennium Challenge.</strong><br />
This game (or subgame actually) was our Imagine Cup submission, although the graphics have been improved a little bit since our original submission. The premise here is that you play as a United Nations officer trying to build up a war torn nation. The specific gameplay that we implemented was de-mining. You have a mine detector and a map at your disposal and take a part of a collaberative and persistent de-mining efftort, where individual score is kept track of. The mine detector is sound based and and once you have locked down the position of the mine you throw rocks at it to blow it up.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="295" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/cNrXce3bdmM&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="295" src="http://www.youtube.com/v/cNrXce3bdmM&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><strong><br />
Cosmopolis: WarPipe.</strong><br />
This subgame is compltely different from UNMC and is meant to be used for research purposes in the near future. Right now the gameplay is pretty much just a free for all killfest involving an assault rifle and 3 types of grenades (smoke, flashbang and frag). Teamplay is the #1 thing to add in the next semester.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="295" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/P8KV0cVTAok&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="295" src="http://www.youtube.com/v/P8KV0cVTAok&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><strong><br />
Cosmopolis: World Tools</strong><br />
This is just a demo of the tools we used to create the Cosmopolis world.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="295" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/cQH3hyx7BBc&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="295" src="http://www.youtube.com/v/cQH3hyx7BBc&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://bjarni.us/semester-wrap-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Imagine Cup Challenge!</title>
		<link>http://bjarni.us/imagine-cup-challenge/</link>
		<comments>http://bjarni.us/imagine-cup-challenge/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 17:45:33 +0000</pubDate>
		<dc:creator>Bjarni Arnason</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Cosmopolis]]></category>
		<category><![CDATA[HLSL]]></category>
		<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://bjarni.us/?p=253</guid>
		<description><![CDATA[As a part of entering the Imagine Cup competition and getting a free PDC ticket to boot (worth ~$1600), I have been challenged to start writing some random blurbs about my Imagine Cup development experience as well as my experience at PDC. So&#8230; yeah! Our team at USC are making a game called Cosmopolis. The [...]]]></description>
			<content:encoded><![CDATA[<p>As a part of entering the <a href="http://imaginecup.us">Imagine Cup</a> competition and getting a free <a href="http://microsoftpdc.com/">PDC</a> ticket to boot (worth ~$1600), I have been challenged to start writing some random blurbs about my Imagine Cup development experience as well as my experience at PDC.</p>
<p>So&#8230; yeah! Our team at <a href="http://www.usc.edu">USC</a> are making a game called Cosmopolis. The gameplay will not be discussed but I&#8217;ll try to share some random technical details, both from the past and as they are implemented. Subjects could include for example: Ambient Occlusion, Parallel Split Shadow Maps, 3D Particle Systems, Terrain visualization and Nvidia Nexus experiences.</p>
<p>However, chances are that I will fail miserably like 95% of other &#8220;blo**&#8221; (I despite that word), so come back often to laugh in my face when I don&#8217;t post anything! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://bjarni.us/imagine-cup-challenge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

