<?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>DevLog &#187; C++</title>
	<atom:link href="http://82.30.70.163/BlueThen/wordpress/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://82.30.70.163/BlueThen/wordpress</link>
	<description></description>
	<lastBuildDate>Mon, 06 Sep 2010 15:24:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Day 10</title>
		<link>http://82.30.70.163/BlueThen/wordpress/2010/01/day-10/</link>
		<comments>http://82.30.70.163/BlueThen/wordpress/2010/01/day-10/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 04:46:53 +0000</pubDate>
		<dc:creator>BlueThen</dc:creator>
				<category><![CDATA[Chase Engine]]></category>
		<category><![CDATA[Dev Log]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Chase]]></category>
		<category><![CDATA[coordinate]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[devlog]]></category>
		<category><![CDATA[geometric]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[polygon]]></category>
		<category><![CDATA[transformation]]></category>

		<guid isPermaLink="false">http://82.30.70.163/BlueThen/BlueThen/wordpress/?p=185</guid>
		<description><![CDATA[Remember yesterday, I said &#8220;If tomorrow also provides the convenience of a snow day, I&#8217;ll take advantage of that as well&#8230;&#8221;? Well, today happened to also be a snow day (woohoo!), and I did as I told you. I worked on Chase&#8217;s Engine. I&#8217;m currently at about 744 lines of code, so I&#8217;ve made some [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/BlueThen/wordpress/wp-content/uploads/2010/01/flowChart.jpg"><img src="/BlueThen/wordpress/wp-content/uploads/2010/01/flowChart-300x243.jpg" alt="" title="flowChart" width="300" height="243" class="alignleft size-medium wp-image-186" /></a>
<p style="text-indent:20pt; line-height:20pt;">Remember <a href="http://82.30.70.163/BlueThen/BlueThen/wordpress/2010/01/day-9/">yesterday</a>, I said &#8220;If tomorrow also provides the convenience of a snow day, I&#8217;ll take advantage of that as well&#8230;&#8221;? Well, today happened to also be a snow day (woohoo!), and I did as I told you. I worked on Chase&#8217;s Engine. I&#8217;m currently at about 744 lines of code, so I&#8217;ve made some progress since I started the conversion. Yesterday&#8217;s version included support for handling coordinates, polygons, and models in 3D space. It also had some transformation functions (translate, dilate, and rotate) for coordinates and polygons.</p>
<p><span id="more-185"></span></p>
<p style="text-indent:20pt; line-height:20pt;">I&#8217;ll probably delete those transformation functions the next time I edit. Today I&#8217;ve nested support for adding, subtracting, dividing, and multiplying in both the polygon and coordinate function. Not only an add/sub/etc function, but operator overloading (like for +, -, or *). This will allow me to use coordinate and polygon data types, for example: </p>
<p><code>polygonA * ((coordinateA + coordinateB) / coordinateC)</code></p>
<p style="text-indent:20pt; line-height:20pt;">This will be exactly why I won&#8217;t need my transformation functions. Any sort of geometric manipulating can simply done using the nested math functions or use the coordinates/polygons in a formula. I also added in a rotation function to both classes. Another neat feature I&#8217;ve implemented is 2 and 3 dimensional support for the Coordinate and Polygon class. I was originally going to have a separate class for 2 and 3 dimensions (eg. Coord2D and Coord3D), but that won&#8217;t be necessary with the mighty convenience of <a href="http://www.codersource.net/cpp_tutorial_function_overloading.html">function overloading in C++</a>.</p>
<p style="text-indent:20pt; line-height:20pt;">The picture above shows a rough draft code flow chart of Chase&#8217;s graphic engine. I drew this on the first this month (and year!), and will probably, if not definitely, will change as I refine my concept for Chase&#8217;s engine.</p>
 <img src="http://82.30.70.163/BlueThen/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=185" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://82.30.70.163/BlueThen/wordpress/2010/01/day-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Day 9</title>
		<link>http://82.30.70.163/BlueThen/wordpress/2010/01/day-9/</link>
		<comments>http://82.30.70.163/BlueThen/wordpress/2010/01/day-9/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 21:57:47 +0000</pubDate>
		<dc:creator>BlueThen</dc:creator>
				<category><![CDATA[Chase Engine]]></category>
		<category><![CDATA[Dev Log]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Chase]]></category>
		<category><![CDATA[cpp]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[dev-C++]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[snow day]]></category>

		<guid isPermaLink="false">http://82.30.70.163/BlueThen/BlueThen/wordpress/?p=169</guid>
		<description><![CDATA[Good day! Over the winter break, I began working on Chase&#8217;s conversion over to C++. Today, I&#8217;ve had the convenience of a snow day, so I took advantage of it and proceeded to work on Chase&#8217;s Engine. Note, however, I haven&#8217;t really made any *real* progress. I will count this as a day though, since [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/BlueThen/wordpress/wp-content/uploads/2010/01/soureDist.jpg"><img src="/BlueThen/wordpress/wp-content/uploads/2010/01/soureDist-217x300.jpg" alt="" title="soureDist" width="217" height="300" class="alignleft size-medium wp-image-170" /></a>
<p style="text-indent:20pt; line-height:20pt;">Good day! Over the winter break, I began working on Chase&#8217;s conversion over to C++. Today, I&#8217;ve had the convenience of a snow day, so I took advantage of it and proceeded to work on Chase&#8217;s Engine. Note, however, I haven&#8217;t really made any *real* progress. I will count this as a day though, since a lot has been done in the conversion.</p>
<p style="text-indent:20pt; line-height:20pt;">The conversion isn&#8217;t done yet. I&#8217;ve got all the coordinate, polygon, and model classes converted (although certainly not finished in terms of features), as well as the transformation functions. If tomorrow also provides the convenience of a snow day, I&#8217;ll take advantage of that as well, and hopefully get Chase&#8217;s C++ engine up to an equivalent of Chase&#8217;s <a href="http://processing.org/">Processing</a> (the API for Java!) engine.</p>
<p style="text-indent:20pt; line-height:20pt;">I&#8217;ve uploaded a picture of my colorfully written rough draft for how my .h and .cpp files should work out. My compiler (<a href="http://www.bloodshed.net/devcpp.html">Dev-C++</a>) has an awfully convenient feature which allows me to place individual files in their own folders unlike the Processing <a href="http://en.wikipedia.org/wiki/Integrated_development_environment">IDE</a>, as far as I&#8217;m aware of. You can check out the picture by clicking the image to the left/top of this post&#8217;s text. Feel free to give me any feedback or comments.</p>
 <img src="http://82.30.70.163/BlueThen/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=169" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://82.30.70.163/BlueThen/wordpress/2010/01/day-9/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Day 7</title>
		<link>http://82.30.70.163/BlueThen/wordpress/2009/12/71/</link>
		<comments>http://82.30.70.163/BlueThen/wordpress/2009/12/71/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 03:01:14 +0000</pubDate>
		<dc:creator>BlueThen</dc:creator>
				<category><![CDATA[Chase Engine]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Chase]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[isometric]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://82.30.70.163/BlueThen/BlueThen/wordpress/?page_id=260</guid>
		<description><![CDATA[There&#8217;s officially been about a week&#8217;s worth of development for Chase. Today, however, was admittedly disappointing in terms of progress. I started working on a quick reference, since the code was getting more and more complex, and keeping track of parameters for each function was difficult. This would be especially useful, since I&#8217;m developing Chase [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s officially been about a week&#8217;s worth of development for Chase.</p>
<p>Today, however, was admittedly disappointing in terms of progress. I started working on a quick reference, since the code was getting more and more complex, and keeping track of parameters for each function was difficult. This would be especially useful, since I&#8217;m developing Chase over a long time (up to a week or two between development days). The quick reference, however, wasn&#8217;t so quick. It ended up taking me longer to document the different functions than it did for me to actually make some of the functions, so I decided that it was a waste of time, and to ditch it. If it&#8217;s getting difficult for me to keep track of things, then it&#8217;s probably time for me to re-organize and clean up the code a bit.<img title="More..." src="https://bluethen.wordpress.com/wp-includes/js/tinymce/plugins/BlueThen/wordpress/img/trans.gif" alt="" /></p>
<p><span id="more-71"></span></p>
<p><a href="http://bluethen.files.wordpress.com/2009/12/3drotate.gif"><img class="alignright" title="3Drotate" src="http://bluethen.files.wordpress.com/2009/12/3drotate.gif" alt="" width="356" height="322" /></a>I did get a working 3D rotation function in today. It&#8217;ll allow me to rotate models, polygons, and coordinates along the x, y, or z axis freely.</p>
<p>I&#8217;ll probably devote an entire day to organizing and cleaning up the code soon, and start following a little more strict and consistent standard of coding. I might even start naming functions <a href="http://en.wikibooks.org/wiki/OpenGL_Programming/Basics/NamingConventions#OpenGL_Functions">the same way openGL does with their functions</a>. Being somewhat new to programming,  it&#8217;s best for me to set some good habits for the long run.</p>
<p>Even though I haven&#8217;t programmed in the past week and a half until today, I&#8217;ve been hard at work at composing some of the formulas to be used in Chase. One that&#8217;ll be particularly essential is line to polygon intersection detection in 3D space. This would be used in my lighting algorithm and collision detection, unless I pick up a more efficient method of calculating these.</p>
<p>Another feature I&#8217;ll implement is culling. There&#8217;s a working zbuffer right now, but polygons intersection won&#8217;t actually draw that way. I&#8217;ll hopefully implement that eventually as well.</p>
<p>By the end of Winter Break, I hope to port the entire engine to C++. I originally chose Processing for ease of creation, and to make playing convenient and available to users from within their browser. Chase is looking a little too ambitious to be ran quickly within the browser. Making Chase in a lower level language (compared to Processing) will probably be a wise decision, since it&#8217;ll allow me more resources.</p>
 <img src="http://82.30.70.163/BlueThen/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=71" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://82.30.70.163/BlueThen/wordpress/2009/12/71/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
