<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>eNtropology Games</title>
	<atom:link href="http://entropologygames.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://entropologygames.wordpress.com</link>
	<description>Game Developer's journey</description>
	<lastBuildDate>Mon, 28 Feb 2011 19:59:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='entropologygames.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>eNtropology Games</title>
		<link>http://entropologygames.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://entropologygames.wordpress.com/osd.xml" title="eNtropology Games" />
	<atom:link rel='hub' href='http://entropologygames.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Making Pong using Farseer Physics engine II</title>
		<link>http://entropologygames.wordpress.com/2011/02/01/making-pong-using-farseer-physics-engine-ii/</link>
		<comments>http://entropologygames.wordpress.com/2011/02/01/making-pong-using-farseer-physics-engine-ii/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 23:55:49 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[box2d]]></category>
		<category><![CDATA[Farseer]]></category>

		<guid isPermaLink="false">https://entropologygames.wordpress.com/2011/02/01/making-pong-using-farseer-physics-engine-ii/</guid>
		<description><![CDATA[If you followed my last two posts (basics and part I), you will have a paddle and a ball setup in the game. However, if you run the game, you’d observe the ball on collision with paddle; just blows it away. Instead, we’d want the ball to just bounce off. There are two options: BodyType.Kinematic: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=272&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you followed my last two posts (<a href="http://entropologygames.wordpress.com/2011/01/28/box2d-farseer-physics-engine-basics/" target="_blank">basics</a> and <a href="http://entropologygames.wordpress.com/2011/01/28/making-pong-using-farseer-physics-engine/" target="_blank">part I</a>), you will have a paddle and a ball setup in the game.</p>
<p>However, if you run the game, you’d observe the ball on collision with paddle; just blows it away. Instead, we’d want the ball to just bounce off.</p>
<p>There are two options:</p>
<ul>
<li><strong>BodyType.Kinematic: </strong>We can make the paddle bodytype kinematic. This way, the ball would just bounce off the paddle. This however introduces another problem. Kinematic bodies don’t collide with other static/kinematic bodies. Thus, the paddle would not be restricted by the boundaries of the world box (unless, you manually cap it with hardcoded values). </li>
<li><strong>Fixed Prismatic Joint</strong>: There are good resources online to understand what this is. (Search for prismatic joint in <a href="http://box2d.org/manual.html" target="_blank">box2d manual</a> and <a href="http://www.animatlab.com/BodyEditor/Joints/Prismatic.htm" target="_blank">here</a>). It essentially restricts the body(s ) translation along one axis only. This fits the bill perfectly! (Remember bodies have to be dynamic type to be simulated for joint-physics). </li>
</ul>
<p>Using Fixed prismatic joint we can restrict the paddle to move along only Y axis. Appetizer code follows:</p>
<pre class="code"><span style="color:#2b91af;">FixedPrismaticJoint </span>fixedPrismJoint = <span style="color:blue;">new </span><span style="color:#2b91af;">FixedPrismaticJoint</span>(mBody, </pre>
<pre class="code">mBody.Position, <span style="color:blue;">new </span><span style="color:#2b91af;">Vector2</span>(0, 1f));</pre>
<p>&#160;</p>
<p>translates to: Create a joint for this body, at the given position, along the given axis (0, 1f). This way, the paddle is restricted to this axis, and moves only about the given position.</p>
<p><strong>Setting limits </strong>to the movement of this joint:</p>
<pre class="code">fixedPrismJoint.LowerLimit = -45f;
fixedPrismJoint.UpperLimit = 45f;
fixedPrismJoint.LimitEnabled = <span style="color:blue;">true</span>;</pre>
<p>This would restrict (clamp) the body from moving beyond +/45 m along the given axis (0, 1f).</p>
<p><strong>Automating movement using motors:</strong></p>
<pre class="code">fixedPrismJoint.MotorSpeed = 5.0f; // in meters / second

fixedPrismJoint.MaxMotorForce = 1000.0f; // maximum force in Newtons
fixedPrismJoint.MotorEnabled = <span style="color:blue;">true</span>;
<font face="Georgia"></font></pre>
<pre class="code"><font face="Georgia">This would put the motor into effect, which would the make body automatically oscillate between the bounds with MotorSpeed.</font></pre>
<pre class="code"><font face="Georgia">What good a joint is, if we don’t add it to the world:</font></pre>
<pre class="code">Worldphy.AddJoint(fixedPrismJoint);</pre>
<p>That’s it! If you do this, you’ll have a paddle which only moves along Y axis, between those bounds and also simulates against the other elements in the world.</p>
<p><strong>Divine Human Intervention:</strong></p>
<p>In Paddle::Update():</p>
<pre class="code"><span style="color:blue;">if </span>(Input.IsNewKeyPress(<span style="color:#2b91af;">Keys</span>.W))
{
mBody.ApplyLinearImpulse(<span style="color:blue;">new </span><span style="color:#2b91af;">Vector2</span>(0f, 30.0f));
}
<span style="color:blue;">else if </span>(Input.IsNewKeyPress(<span style="color:#2b91af;">Keys</span>.S))
{
mBody.ApplyLinearImpulse(<span style="color:blue;">new </span><span style="color:#2b91af;">Vector2</span>(0, -30.0f));
}</pre>
<p>This makes sure the paddle responds by trying to go up/down when you hit W/S.</p>
<p>This would let you make a complete pong game! But often in your game, you’d want to see debug information about the shapes. For the visual delight, there is a debug library that comes along with farseer. Its really easy to set it up and align your textures with the physics objects. More on that in the next tutorial!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=272&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2011/02/01/making-pong-using-farseer-physics-engine-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>
	</item>
		<item>
		<title>Making Pong using Farseer Physics engine</title>
		<link>http://entropologygames.wordpress.com/2011/01/28/making-pong-using-farseer-physics-engine/</link>
		<comments>http://entropologygames.wordpress.com/2011/01/28/making-pong-using-farseer-physics-engine/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 23:51:03 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[box2d]]></category>
		<category><![CDATA[Farseer]]></category>

		<guid isPermaLink="false">https://entropologygames.wordpress.com/2011/01/28/making-pong-using-farseer-physics-engine/</guid>
		<description><![CDATA[In my attempt to learn farseer physics engine(3.2), I decided to make a pong game, using the engine and XNA 4.0. Physics engine is an overkill for pong, but it sure helps to learn some of the basic concepts in a simple environment. Please see my last post about some of the basic knowledge you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=267&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my attempt to learn farseer physics engine(3.2), I decided to make a pong game, using the engine and XNA 4.0. Physics engine is an overkill for pong, but it sure helps to learn some of the basic concepts in a simple environment.</p>
<p>Please see my last <a href="http://entropologygames.wordpress.com/2011/01/28/box2d-farseer-physics-engine-basics/">post</a> about some of the basic knowledge you need to get started.</p>
<p>This post is not about software design, and this is just my way of doing things. </p>
<p><strong>Setting up the world:</strong></p>
<p>I made a CollisionManager which contains the World from FPE, and exposes it as a property which others can use.</p>
<p>Creates a world with no gravity:</p>
<div id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> mWorld = <span style="color:#0000ff;">new</span> World(Vector2.Zero);</pre>
<p><!--CRLF--></div>
</div>
<p>In CollisionManager.Update(gameTime); ticks the world:</p>
<div id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> mWorld.Step((<span style="color:#0000ff;">float</span>)gameTime.ElapsedGameTime.TotalMilliseconds * 0.001f);</pre>
<p><!--CRLF--></div>
</div>
<p>By default, forces are automatically cleared in FPE, but in Box2D it is recommended to clear the forces.</p>
<div id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> mWorld.ClearForces();</pre>
<p><!--CRLF--></div>
</div>
<p>That is it! We’re done setting up the world.</p>
<p><strong>Setting up the Ball:</strong></p>
<p>GameOjbect just contains a reference to Body</p>
<div id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> Ball : GameObject</pre>
<p><!--CRLF--></div>
</div>
<p>Setting up the body:</p>
<div class="csharpcode">
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> mBody = BodyFactory.CreateBody(CollisionManager.Instance.Worldphy, <span style="color:#0000ff;">new</span> Vector2(10, 0));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> mBody.CreateFixture(<span style="color:#0000ff;">new</span> CircleShape(1.0f, 0.5f ));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> mBody.FixtureList[0].Restitution = 1f;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span> mBody.BodyType = FarseerPhysics.Dynamics.BodyType.Dynamic;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span> mBody.ApplyLinearImpulse(<span style="color:#0000ff;">new</span> Vector2(50, 0));</pre>
<p><!--CRLF--></div>
</p></div>
</div>
<p><strong></strong></p>
<ol>
<li>Create a body in world at vector2(10, 0) </li>
<li>Creates a fixture out of a shape for mBody:
<ol>
<li>A circle shape with a radius of 1.0f is created </li>
<li>Density is 0.5f </li>
</ol>
</li>
<li>For the fixture attached to body, we want to set the restitution. Restitution is a measure of bounciness of a collision (elasticity of collision). Value should be between 0 and 1.
<ol>
<li>0 = fully absorb the collision : dont bounce at all : inelastic collision </li>
<li>1 = perfect reflection : fully bounce back : elastic collision </li>
</ol>
</li>
<li>Setting the bodyType to be Dynamic </li>
<li>Give the ball an initial ‘impulse’ </li>
</ol>
<p><strong>Setting up a Paddle:</strong></p>
<p>Paddle also inherits from GameObject:</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> Paddle : GameObject</pre>
<p><!--CRLF--></div>
</div>
<p>Setting up the body:</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> Fixture fix = FixtureFactory.CreateRectangle(CollisionManager.Instance.Worldphy, 1, 3, 0.5f, posn);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> fix.Restitution = 0f;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> fix.Friction = 0f;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> mBody = fix.Body;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span> mBody.BodyType = BodyType.Dynamic;</pre>
<p><!--CRLF--></div>
</div>
<p>This time we choose to create a body using fixtures.</p>
<ol>
<li>Create a fixture in world, with a body at position: ‘posn’ and rectangle shape of width 1 unit and height 3 units (units are in the MKS system) (I pass the posn as a vector2 in the constructor of Paddle) </li>
<li>We want the restitution to be 0 since we dont want the paddle to bounce off. See above for what restitution is! </li>
<li>Assign the body reference in fixture to body of parent GameObject </li>
<li>Make the BodyType to be dynamic </li>
</ol>
<p>Moving the paddle:</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">if</span> (Input.IsNewKeyPress(Keys.W))</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>     mBody.ApplyForce(<span style="color:#0000ff;">new</span> Vector2(0f, 10.0f));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> <span style="color:#0000ff;">else</span> <span style="color:#0000ff;">if</span> (Input.IsNewKeyPress(Keys.S))</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>     mBody.ApplyForce(<span style="color:#0000ff;">new</span> Vector2(0f, -10.0f));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span> }</pre>
<p><!--CRLF--></div>
</div>
<p>When W is pressed, we want the paddle to move up (we apply a force in up direction with magnitude of 10f). When S is pressed, we want the paddle to move down (we apply a force in down direction with magnitude of -10f).</p>
<p>&#160;</p>
<p>That’s it. Instantiate a paddle and a Ball and you’ll see a ball moving towards right and if you press W/S the paddle would move either up/down.</p>
<p>You’ll also notice the ball to fly off the screen because there is nothing to bound it. I used this code from one of the testSamples for farseer to generate a big box, which would prevent the ball or paddle to fly away.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> List&lt;Vertices&gt; borders = <span style="color:#0000ff;">new</span> List&lt;Vertices&gt;(4);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">float</span> borderWidth = 0.2f;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">float</span> width = 40f;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">float</span> height = 25f;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span> <span style="color:#008000;">//Bottom</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span> borders.Add(PolygonTools.CreateRectangle(width, borderWidth, <span style="color:#0000ff;">new</span> Vector2(0, height), 0));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span> <span style="color:#008000;">//Left</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span> borders.Add(PolygonTools.CreateRectangle(borderWidth, height, <span style="color:#0000ff;">new</span> Vector2(-width, 0), 0));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span> <span style="color:#008000;">//Top</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span> borders.Add(PolygonTools.CreateRectangle(width, borderWidth, <span style="color:#0000ff;">new</span> Vector2(0, -height), 0));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span> <span style="color:#008000;">//Right</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span> borders.Add(PolygonTools.CreateRectangle(borderWidth, height, <span style="color:#0000ff;">new</span> Vector2(width, 0), 0));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span> List&lt;Fixture&gt; fixtures = FixtureFactory.CreateCompoundPolygon(mWorld, borders, 1, <span style="color:#0000ff;">new</span> Vector2(0, 0));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span> <span style="color:#0000ff;">foreach</span> (Fixture fixture <span style="color:#0000ff;">in</span> fixtures)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum22">  22:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum23">  23:</span>     fixture.Restitution = 1f;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum24">  24:</span>     fixture.Friction = 0;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum25">  25:</span> }</pre>
<p><!--CRLF--></div>
</div>
<p>By default, the bodyType is static, which is what we’d want the outer box to be. </p>
<p>The code is very intuitive if you followed the above post and read the basics in my last <a href="http://entropologygames.wordpress.com/2011/01/28/box2d-farseer-physics-engine-basics/">post</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=267&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2011/01/28/making-pong-using-farseer-physics-engine/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>
	</item>
		<item>
		<title>Box2D / Farseer Physics Engine basics</title>
		<link>http://entropologygames.wordpress.com/2011/01/28/box2d-farseer-physics-engine-basics/</link>
		<comments>http://entropologygames.wordpress.com/2011/01/28/box2d-farseer-physics-engine-basics/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 23:08:43 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[box2d]]></category>
		<category><![CDATA[Farseer]]></category>

		<guid isPermaLink="false">https://entropologygames.wordpress.com/2011/01/28/box2d-farseer-physics-engine-basics/</guid>
		<description><![CDATA[I recently wanted to use a physics engine for the game, and I saw a lot of documentation scattered across manual and the code. This is my effort to document as much as I can and hopefully it helps someone who are about to get started! I am using Farseer Physics Engine 3.2 which is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=265&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to use a physics engine for the game, and I saw a lot of documentation scattered across manual and the code. This is my effort to document as much as I can and hopefully it helps someone who are about to get started!</p>
<p>I am using Farseer Physics Engine 3.2 which is a port of Box2D (along with some other extra tools). Let&#8217;s get started:</p>
<p>Common Objects in the physics system:</p>
<p>- World    <br />- (Rigid)Body     <br />- Shape     <br />- Fixture </p>
<p><strong>World</strong>: World is the heart of <font color="#ff0000">FPE</font>. It makes the whole Physics world tick. There are multiple parameters that can be tweaked in this for efficiency, performance, accuracy etc. </p>
<p><strong>Rigid Body</strong>: Hard chunk of matter that keeps a track of the position of the object </p>
<p><strong>Shape</strong>: Object&#8217;s Geometrical shape like circle, rectangle, polygon etc </p>
<p><strong>Fixture</strong>: Fixture binds a shape to a body and adds material properties to the object. (Material properties such as density(mass per volume), friction, and restitution) </p>
<p>PS: Memory management in Box2D recommends never to &quot;new&quot; / &quot;malloc&quot; Body, Joint and Fixtures, since it has its own memory management implemented(Small Object Allocators). This does not apply to <font color="#ff0000">FPE</font>. </p>
<p><strong>World</strong>:     <br />- Create world:     </p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;">mWorld = <span style="color:#0000ff;">new</span> World(gravityVector); </pre>
<p></div>
<p>- Update World:<br />
  </p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;">mWorld.Step((<span style="color:#0000ff;">float</span>)gameTime.ElapsedGameTime.TotalMilliseconds * 0.001f); -- ticks the world. </pre>
<p></div>
<p>Basics can be read at: Simulating the world; sec 2.4 at <a href="http://www.box2d.org/manual.html#_Toc258082968">http://www.box2d.org/manual.html#_Toc258082968</a></p>
</p>
<p><span id="more-265"></span>
<p><strong>Rigid Body</strong>: </p>
<p>Create a body: </p>
<p>Body myBody; </p>
<p><font color="#ff0000">FPE</font>: We have multiple options here:</p>
<div id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;">myBody = <span style="color:#0000ff;">new</span> Body(World); // <span style="color:#0000ff;">do</span> we need to add myBody to world afterwards ?</pre>
<p><!--CRLF--></div>
</div>
<p>&#160;&#160;&#160; &#8211; using Factory which internally calls new Body with the right parameters </p>
<div id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;">mBody = BodyFactory.CreateBody(...); </pre>
<p><!--CRLF--></div>
<p>&#160;&#160;&#160; &#8211; referencing body from fixture (assuming the fixture has been created) </p>
<p>&#160;&#160;&#160;&#160; </div>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;">mBody = myFixture.Body;</pre>
<p></div>
<p>Specifying Bodytype:<br />
  <br />- <strong>Static</strong> : DOES NOT MOVE. Infinite mass. Can be set by user </p>
<p>- <strong>Kinematic</strong>: Respond to velocity and not to forces. They also don&#8217;t collide with other kinematic or static bodies. Velocity is set by user </p>
<p>- <strong>Dynamic</strong>: Fully simulated body. </p>
<p><font color="#ff0000">FPE</font>: </p>
<p></p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;">mBody.BodyType = BodyType.Dynamic; </pre>
<h1></h1>
<p></div>
<p><strong>Shape</strong>: </p>
<p>Object can be described by different shapes. Some of the common shapes and how to create them: </p>
<p><font color="#ff0000">FPE</font>:&#160; <br />&#160; </p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;">CircleShape circleShape = <span style="color:#0000ff;">new</span> CircleShape(radius, density ); </pre>
<p></div>
<p>&#160; &#8211; PolygonShape which relies on a Vertices (: List&lt;Vector2&gt;) =&gt; See PolygonTools to generate vertices and then make PolygonShape using them<br />
  <br />&#160; &#8211; Using FixtureFactory:: It creates the body and attaches the shape to it and returns the fixture </p>
<p></p>
<p><strong>Fixture</strong>: </p>
<p>It ties the geometrical shape to a body. A body is parent to a fixture and can have multiple fixtures, each adding to the mass of the object. </p>
<p>Creating a fixture: </p>
<p><font color="#ff0000">FPE</font>:&#160; <br />&#160; </p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">new</span> Fixture(Body, Shape); </pre>
<p></div>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;">mBody.CreateFixture(Shape); <span style="color:#008000;">// internally calls the new Fixture </span></pre>
<p></div>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;">FixtureFactory.CreateRectangle(...) <span style="color:#008000;">// creates a body and shape based on the parameters and attaches this fixture to body</span></pre>
<p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/265/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=265&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2011/01/28/box2d-farseer-physics-engine-basics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>
	</item>
		<item>
		<title>howto use Vertex Buffer objects(vbo) with opengl &amp; Qt</title>
		<link>http://entropologygames.wordpress.com/2009/10/31/howto-use-vertex-buffer-objectsvbo-with-opengl-qt/</link>
		<comments>http://entropologygames.wordpress.com/2009/10/31/howto-use-vertex-buffer-objectsvbo-with-opengl-qt/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 21:11:37 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[openGL]]></category>
		<category><![CDATA[qt]]></category>
		<category><![CDATA[vbo]]></category>

		<guid isPermaLink="false">http://entropologygames.wordpress.com/2009/10/31/howto-use-vertex-buffer-objectsvbo-with-opengl-qt/</guid>
		<description><![CDATA[This how-to concerns, including the functions needed for using Vertex Buffer Objects or VBOs; but in Qt framework. In short, this answers questions like: “ glGenbuffers : identifier not found error How do I resolve this (when working in Qt)? “ &#160; This article at gamedev explains the process very well. The article is old, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=251&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This how-to concerns, including the functions needed for using Vertex Buffer Objects or VBOs; but in Qt framework. In short, this answers questions like:</p>
<p>“ glGenbuffers : identifier not found error</p>
<p>How do I resolve this (when working in Qt)? “</p>
<p>&#160;</p>
<p>This <a href="http://www.gamedev.net/reference/programming/features/oglext/default.asp" target="_blank">article at gamedev</a> explains the process very well. The article is old, but I would recommend reading it since you then understand what the problem is and why is it giving you this error.</p>
<p>After you’re done reading that, you’d know that you are still using openGL v1.1 and need to access VBOs which is a feature of openGL v1.5. This is done by using v1.5 as extensions and interacting with the device drivers(assuming you have the latest drivers and they support v1.5), which is facilitated in code by specific function pointers. </p>
<p>&#160;</p>
<p>By now, you’d know how to get this fixed if you were on a windows machine. But, I was using Qt and needed a way to get it to work with that. I came across these files:</p>
<p>glextensions.h and </p>
<p>glextensions.cpp</p>
<p>provided by Qt in one of there demos (<strong>boxes</strong>). These would resolve the functions you need for using VBOs. To get it to work, the code is not trivial.</p>
<p>After including the files in your header, one needs to “resolve()” the associated functions with a “context” (which is provided by the QGLWidget (or a class that you might have derived from it) ).</p>
<p>This is how I resolve them from within my class which derives from QGLWidget: </p>
<p>getGLExtensionFunctions().resolve(this-&gt;context() );</p>
<p>&#160;</p>
<p>Functions like glGenBuffers, glBindBuffer, glBufferData etc are now ready to be used.</p>
<p>&#160;</p>
<p>Also, I heard a lot of people using GLEW but I did not explore that route, so if you are stuck that might be something worthwile to checkout.</p>
<p>I hope it this article has saved you both, hours and tears. Let me know if you need any help.</p>
<p>(PS: When you call the resolve() function, the context should be available. I am still not 100% clear on how Qt manages the context for you, but I call it within InitializeGL(), since the context would be ready when the control reaches there. Also, take a look at the glextensions files to see they do pretty much the same thing as mentioned in the <a href="http://www.gamedev.net/reference/programming/features/oglext/default.asp" target="_blank">gamedev article</a> )</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/251/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=251&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2009/10/31/howto-use-vertex-buffer-objectsvbo-with-opengl-qt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>
	</item>
		<item>
		<title>More screenshots : My Collada renderer now supports PolyList</title>
		<link>http://entropologygames.wordpress.com/2009/10/13/more-screenshots-my-collada-renderer-now-supports-polylist/</link>
		<comments>http://entropologygames.wordpress.com/2009/10/13/more-screenshots-my-collada-renderer-now-supports-polylist/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 10:06:43 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[collada]]></category>

		<guid isPermaLink="false">http://entropologygames.wordpress.com/2009/10/13/more-screenshots-my-collada-renderer-now-supports-polylist/</guid>
		<description><![CDATA[Yayy! Let them screenshots do the talking (Primitive: Polylist) More stuff coming up!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=239&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yayy! Let them screenshots do the talking <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (Primitive: Polylist)</p>
<table border="1" cellspacing="0" cellpadding="2" width="732">
<tbody>
<tr>
<td width="730" valign="top"><a href="http://entropologygames.files.wordpress.com/2009/10/hatxsi1.png"><img style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" title="hatxsi" src="http://entropologygames.files.wordpress.com/2009/10/hatxsi_thumb1.png?w=244&#038;h=243" border="0" alt="hatxsi" width="244" height="243" /></a></td>
</tr>
<tr>
<td width="730" valign="top"><a href="http://entropologygames.files.wordpress.com/2009/10/seymourplane2.png"><img style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" title="seymourplane" src="http://entropologygames.files.wordpress.com/2009/10/seymourplane_thumb2.png?w=244&#038;h=175" border="0" alt="seymourplane" width="244" height="175" /></a></td>
</tr>
<tr>
<td width="730" valign="top"><a href="http://entropologygames.files.wordpress.com/2009/10/morph.png"><img style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" title="morph" src="http://entropologygames.files.wordpress.com/2009/10/morph_thumb.png?w=392&#038;h=484" border="0" alt="morph" width="392" height="484" /></a></td>
</tr>
<tr>
<td width="730" valign="top"><a href="http://entropologygames.files.wordpress.com/2009/10/astroboy.png"><img style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" title="astroBoy" src="http://entropologygames.files.wordpress.com/2009/10/astroboy_thumb.png?w=244&#038;h=219" border="0" alt="astroBoy" width="244" height="219" /></a></td>
</tr>
<tr>
<td width="730" valign="top"><a href="http://entropologygames.files.wordpress.com/2009/10/jaixsi.png"><img style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" title="jaixsi" src="http://entropologygames.files.wordpress.com/2009/10/jaixsi_thumb.png?w=324&#038;h=191" border="0" alt="jaixsi" width="324" height="191" /></a></td>
</tr>
</tbody>
</table>
<p><a href="http://entropologygames.files.wordpress.com/2009/10/bikexsi.png"><img style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" title="bikexsi" src="http://entropologygames.files.wordpress.com/2009/10/bikexsi_thumb.png?w=644&#038;h=380" border="0" alt="bikexsi" width="644" height="380" /></a></p>
<p>More stuff coming up!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/239/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=239&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2009/10/13/more-screenshots-my-collada-renderer-now-supports-polylist/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/hatxsi_thumb1.png" medium="image">
			<media:title type="html">hatxsi</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/seymourplane_thumb2.png" medium="image">
			<media:title type="html">seymourplane</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/morph_thumb.png" medium="image">
			<media:title type="html">morph</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/astroboy_thumb.png" medium="image">
			<media:title type="html">astroBoy</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/jaixsi_thumb.png" medium="image">
			<media:title type="html">jaixsi</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/bikexsi_thumb.png" medium="image">
			<media:title type="html">bikexsi</media:title>
		</media:content>
	</item>
		<item>
		<title>Screenie from my collada renderer / processor</title>
		<link>http://entropologygames.wordpress.com/2009/10/12/screenie-from-my-collada-renderer-processor/</link>
		<comments>http://entropologygames.wordpress.com/2009/10/12/screenie-from-my-collada-renderer-processor/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 05:53:09 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[collada]]></category>

		<guid isPermaLink="false">http://entropologygames.wordpress.com/2009/10/12/screenie-from-my-collada-renderer-processor/</guid>
		<description><![CDATA[While, I’ve not been posting for quite some time now, I got myself a prototype collada dae file reader and renderer working! It works for triangles primitives for now. Anyways, mumbo jumbo stuff is going to follow, but here is the screenshot of a “duck”. &#160; My output Original model images &#160; I also have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=204&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While, I’ve not been posting for quite some time now, I got myself a prototype collada dae file reader and renderer working! It works for triangles primitives for now. Anyways, mumbo jumbo stuff is going to follow, but here is the screenshot of a “duck”.</p>
<p>&#160;</p>
<table cellspacing="0" cellpadding="2" width="400" border="1">
<tbody>
<tr>
<td valign="top" width="200">My output</td>
<td valign="top" width="200">Original model images</td>
</tr>
<tr>
<td valign="top" width="200"><a href="http://entropologygames.files.wordpress.com/2009/10/duck.png"><img title="duck" style="display:inline;border-width:0;" height="159" alt="duck" src="http://entropologygames.files.wordpress.com/2009/10/duck_thumb.png?w=244&#038;h=159" width="244" border="0" /></a></td>
<td valign="top" width="200"><a href="http://entropologygames.files.wordpress.com/2009/10/duckdae.png"><img title="duckDae" style="display:inline;border-width:0;" height="194" alt="duckDae" src="http://entropologygames.files.wordpress.com/2009/10/duckdae_thumb.png?w=244&#038;h=194" width="244" border="0" /></a> </td>
</tr>
<tr>
<td valign="top" width="200"><a href="http://entropologygames.files.wordpress.com/2009/10/cad.png"><img title="cad" style="display:inline;border-width:0;" height="232" alt="cad" src="http://entropologygames.files.wordpress.com/2009/10/cad_thumb.png?w=244&#038;h=232" width="244" border="0" /></a> </td>
<td valign="top" width="200"><a href="http://entropologygames.files.wordpress.com/2009/10/caddae.png"><img title="cadDae" style="display:inline;border-width:0;" height="194" alt="cadDae" src="http://entropologygames.files.wordpress.com/2009/10/caddae_thumb.png?w=244&#038;h=194" width="244" border="0" /></a> </td>
</tr>
<tr>
<td valign="top" width="200"><a href="http://entropologygames.files.wordpress.com/2009/10/mushroom.png"><img title="mushroom" style="display:inline;border-width:0;" height="198" alt="mushroom" src="http://entropologygames.files.wordpress.com/2009/10/mushroom_thumb.png?w=244&#038;h=198" width="244" border="0" /></a> </td>
<td valign="top" width="200"><a href="http://entropologygames.files.wordpress.com/2009/10/cadmushroom.png"><img title="cadMushroom" style="display:inline;border-width:0;" height="194" alt="cadMushroom" src="http://entropologygames.files.wordpress.com/2009/10/cadmushroom_thumb.png?w=244&#038;h=194" width="244" border="0" /></a> </td>
</tr>
<tr>
<td valign="top" width="200"><a href="http://entropologygames.files.wordpress.com/2009/10/seymourplane.png"><img title="seymourplane" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="165" alt="seymourplane" src="http://entropologygames.files.wordpress.com/2009/10/seymourplane_thumb.png?w=244&#038;h=165" width="244" border="0" /></a> </td>
<td valign="top" width="200"><a href="http://entropologygames.files.wordpress.com/2009/10/seymourplanedae.png"><img title="seymourplaneDAE" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="244" alt="seymourplaneDAE" src="http://entropologygames.files.wordpress.com/2009/10/seymourplanedae_thumb.png?w=244&#038;h=244" width="244" border="0" /></a> </td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<p><a href="http://entropologygames.files.wordpress.com/2009/10/face.png"><img title="face" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="244" alt="face" src="http://entropologygames.files.wordpress.com/2009/10/face_thumb.png?w=217&#038;h=244" width="217" border="0" /></a> </p>
<p>I also have the normal, texture&#160; and color information being processed and stored per vertex (just that I was too lazy to put in the code for rendering)</p>
<p>Yeeehaw ! </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=204&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2009/10/12/screenie-from-my-collada-renderer-processor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/duck_thumb.png" medium="image">
			<media:title type="html">duck</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/duckdae_thumb.png" medium="image">
			<media:title type="html">duckDae</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/cad_thumb.png" medium="image">
			<media:title type="html">cad</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/caddae_thumb.png" medium="image">
			<media:title type="html">cadDae</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/mushroom_thumb.png" medium="image">
			<media:title type="html">mushroom</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/cadmushroom_thumb.png" medium="image">
			<media:title type="html">cadMushroom</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/seymourplane_thumb.png" medium="image">
			<media:title type="html">seymourplane</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/seymourplanedae_thumb.png" medium="image">
			<media:title type="html">seymourplaneDAE</media:title>
		</media:content>

		<media:content url="http://entropologygames.files.wordpress.com/2009/10/face_thumb.png" medium="image">
			<media:title type="html">face</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install CGAL (on Windows) and make it work with Visual Studio</title>
		<link>http://entropologygames.wordpress.com/2009/10/02/how-to-install-cgal-on-windows-and-make-it-work-with-visual-studio/</link>
		<comments>http://entropologygames.wordpress.com/2009/10/02/how-to-install-cgal-on-windows-and-make-it-work-with-visual-studio/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 16:48:19 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[libs]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://entropologygames.wordpress.com/2009/10/02/how-to-install-cgal-on-windows-and-make-it-work-with-visual-studio/</guid>
		<description><![CDATA[Download the binary for windows at http://gforge.inria.fr/frs/?group_id=52 Run the executable and let it roll After the installer is done with its thing, fire up CMake-gui Use in-place compilation or otherwise (I prefer to make a “new folder” and make CMake output the solution files in that folder). I will assume that you do the same. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=201&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>Download the binary for windows at <a title="http://gforge.inria.fr/frs/?group_id=52" href="http://gforge.inria.fr/frs/?group_id=52">http://gforge.inria.fr/frs/?group_id=52</a></li>
<li>Run the executable and let it roll</li>
<li>After the installer is done with its thing, fire up CMake-gui</li>
<li>Use in-place compilation or otherwise (I prefer to make a “new folder” and make CMake output the solution files in that folder). I will assume that you do the same.</li>
<li>PS: Choose Visual Studio 200X compiler depending on whichever compiler you use.</li>
<li>Once CMake is done with generating VS .sln file, open it</li>
<li>Do: </li>
<ul>
<li>Clean Solution</li>
<li>Rebuild Solution</li>
</ul>
<li>Just two more things need to be done now..</li>
<ul>
<li>Include : Goto “new folder/include/CGAL” (in the new folder where cmake output its stuff): copy compiler_config.h to the “CGAL_DIR/include/CGAL”</li>
<li>Lib : </li>
<ul>
<li>Make a new folder “lib” in CGAL_DIR/</li>
<li>Copy “new folder/Debug/” (&amp; release if you built it in release mode) to CGAL_DIR/lib (copy the *.lib and *.pdb)</li>
</ul>
</ul>
</ul>
<p>&#160;</p>
<p>Voila~ You’re done!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/201/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=201&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2009/10/02/how-to-install-cgal-on-windows-and-make-it-work-with-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install Boost</title>
		<link>http://entropologygames.wordpress.com/2009/09/29/how-to-install-boost/</link>
		<comments>http://entropologygames.wordpress.com/2009/09/29/how-to-install-boost/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 06:18:41 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[libs]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://entropologygames.wordpress.com/2009/09/29/how-to-install-boost/</guid>
		<description><![CDATA[How to get Boost working on windows:: 1. Download and extract the .zip/.7z etc from boost website to any folder (lets assume: D:\) 2. Open command prompt and goto that folder (D:\boost_1_39_0) 3. Since, boost does not require building code other than the libraries that it provides, go through the following only if you want [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=200&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How to get Boost working on windows::</p>
<p>1. Download and extract the .zip/.7z etc from boost website to any folder (lets assume: D:\)</p>
<p>2. Open command prompt and goto that folder (D:\boost_1_39_0)</p>
<p>3. Since, boost does not require building code other than the libraries that it provides, go through the following only if you want to install any of the libraries:<br />
At command prompt:<br />
(I am trying to install filesystem,system)</p>
<p>- bootstrap.bat &#8211;with-library=filesystem,system stage<br />
- bjam &#8211;with-filesystem variant=debug link=static threading=single,multi &#8211;libdir=&#8221;D:\Libraries\boost_1_39_0\lib&#8221;<br />
(PS: These are the options that I chose, one can choose otherwise, as well. Use bjam &#8211;help for more options)</p>
<p>You should now have a folder called stage/lib which would have the processed libraries/dll</p>
<p>(WordPress formatting screwed the text which needs to be put in command prompt. I have made a word doc from which commands can be pasted with appropriate changes made to reflect the directory structure)</p>
<p><a href="../files/2009/09/boost-readme.doc"></a><a href="http://entropologygames.files.wordpress.com/2009/09/boost-readme.doc"></a><a href="http://entropologygames.files.wordpress.com/2009/09/boost-readme2.doc"><br />
</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=200&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2009/09/29/how-to-install-boost/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>
	</item>
		<item>
		<title>How to use Qt 4.3 with Visual Studio 2008 Express</title>
		<link>http://entropologygames.wordpress.com/2009/09/16/how-to-use-qt-4-3-with-visual-studio-2008-express/</link>
		<comments>http://entropologygames.wordpress.com/2009/09/16/how-to-use-qt-4-3-with-visual-studio-2008-express/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 02:14:50 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[libs]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://entropologygames.wordpress.com/2009/09/16/how-to-use-qt-4-3-with-visual-studio-2008-express/</guid>
		<description><![CDATA[BUILD VC++ VERSION OF QT 1.  Download and install qt-sdk-win-opensource-2009.01.exe.  Install into the default c:\qt\2009.01.  It contains MingGW (the gcc toolset for Windows) and Qt Creator, and pre-built binaries built by GCC.  You can use this installation as-is if you want to experiment with Qt Creator. 2.  Copy the entire folder of c:\qt\2009.01 to c:\qt\4.5.0-vc.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=191&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>BUILD VC++ VERSION OF QT</p>
<p>1.  Download and install qt-sdk-win-opensource-2009.01.exe.  Install into the default c:\qt\2009.01.  It contains MingGW (the gcc toolset for Windows) and Qt Creator, and pre-built binaries built by GCC.  You can use this installation as-is if you want to experiment with Qt Creator.</p>
<p>2.  Copy the entire folder of c:\qt\2009.01 to c:\qt\4.5.0-vc.  We will be modifying c:\qt\4.5.0-vc to build the libraries with VC++.  Both directories can co-exist.  Use the c:\qt\2009.01 with Qt Creator, and use c:\qt\4.5.0-vc with Visual Studio.  (We will see how to use it in Visual Studio later).</p>
<p>3.    Open a (Visual Studio Tools) command prompt and run Configure to target platform win32-msvc2005 (substitute win32-msvc2008 for VC2008):<br />
c:\&gt; cd c:\qt\4.5.0-vc\qt</p>
<p>c:\qt\4.5.0-vc\qt&gt; configure -no-qt3support -platform win32-msvc2008</p>
<p>In the above command-line, change the Configure command-line parameters as desired, but be sure to specify -platform to target the desired Visual Studio toolset.  Run Configure with no parameters to see a help screen.  Configure generates nmake compatible makefiles to build all the libraries.</p>
<p>PS: You might need to run “setenv” at command prompt if the system cries for not finding the right stuff in the right place.</p>
<p>4.  Run &#8220;nmake&#8221; to build.  NOTE:  You may need to execute Visual Studio&#8217;s VCVARS32.BAT (located in e.g. &#8220;C:\Program Files\VS2005\VC\bin&#8221;) to setup the environment (such as path) to find the VC++ tools like nmake, etc.</p>
<p>5. Let us set up a couple of environment variables that make life easier for us. To edit environment variables, you need to right click “My Computer &gt; Properties &gt; Advanced &gt; Environment Variables”. Add a new (system) variable QTDIR pointing to your Qt install directory, and edit your PATH to include Qt’s “bin” directory as follows:</p>
<p>Variable Name : Value<br />
QTDIR : c:\qt\4.5.0-vc\qt</p>
<p>Append to path Path &gt;c:\qt\4.5.0-vc\bin</p>
<p>6. Now let’s try to get Qt’s “Hello World” tutorial program running from the command line. Fire up the Visual Studio Command Prompt, and create a file “Hello.cpp” containing the following code in a new directory called “hello”:</p>
<pre class="brush: cpp;">

#include &quot;QApplication&quot;
#include &quot;QPushButton&quot;
int main(int argc, char *argv[])
{
 QApplication app(argc, argv);
 QPushButton hello(&quot;Hello world&quot;);
 hello.resize(100, 30);
 hello.show();
 return app.exec();
}
</pre>
<p>Now, type the following commands in this new folder:</p>
<p>qmake -project<br />
qmake hello.pro<br />
nmake</p>
<p>You should see hello.exe in the Debug folder.</p>
<p>7. If you wish to use the Visual Studio Express IDE, here’s what you should do.<br />
Fire it up, and go to “Tools &gt; Options &gt; Projects and Solutions &gt; VC++ Directories”. Add “$(QTDIR)\include” to the “Include files”, and “$(QTDIR)\lib” to the “Library files” drop-down lists respectively.</p>
<p>Thats it!</p>
<p>Links:<br />
<a href="http://dcsoft.com/community_server/blogs/dcsoft/archive/2009/03/06/how-to-setup-qt-4-5-visual-studio-integration.aspx">http://dcsoft.com/community_server/blogs/dcsoft/archive/2009/03/06/how-to-setup-qt-4-5-visual-studio-integration.aspx</a><br />
<a href="http://www.pc-maniac.com/?p=59">http://www.pc-maniac.com/?p=59</a><br />
<a href="http://rajorshi.net/blog/2009/01/using-qt-with-msvc-express-2008/">http://rajorshi.net/blog/2009/01/using-qt-with-msvc-express-2008/</a></p>
<p>This worked for me:</p>
<pre class="brush: cpp;">&lt;/pre&gt;
#include &lt;QtGui/QApplication&gt;
 #include &lt;QtGui/QPushButton&gt;
 int main(int argc, char *argv[])
 {
 QApplication app(argc, argv);
 QPushButton hello(&quot;Hello ME&quot;);
 hello.resize(100, 30);
 hello.show();
 return app.exec();
 }
&lt;pre&gt;</pre>
<p>Following linker libraries are what I needed:<br />
* QtCore4.lib<br />
* QtGui4.lib</p>
<p>To do so, from project properties:<br />
Configuration Properties &#8211;&gt; Linker &#8211;&gt; Input &#8211;&gt; Additional Dependencies &#8211;&gt; add &#8220;QtCore4.lib QtGui4.lib&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=191&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2009/09/16/how-to-use-qt-4-3-with-visual-studio-2008-express/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>
	</item>
		<item>
		<title>Enabling super fast build time; all hail pre-compiled header files</title>
		<link>http://entropologygames.wordpress.com/2009/08/25/enabling-super-fast-build-time-all-hail-pre-compiled-header-files/</link>
		<comments>http://entropologygames.wordpress.com/2009/08/25/enabling-super-fast-build-time-all-hail-pre-compiled-header-files/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 23:50:05 +0000</pubDate>
		<dc:creator>brainydexter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c++ techniques]]></category>

		<guid isPermaLink="false">http://entropologygames.wordpress.com/2009/08/25/enabling-super-fast-build-time-all-hail-pre-compiled-header-files/</guid>
		<description><![CDATA[Recently, I was exploring Boost (the c++ library) and I started out writing a simple program where it would recursively return the files and directories in a given directory. Boost is great, but my biggest rant was: its just too slow when I compile it. It was taking a lot of time for a program [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=162&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently, I was exploring Boost (the c++ library) and I started out writing a simple program where it would recursively return the files and directories in a given directory. Boost is great, but my biggest rant was: its just too slow when I compile it. It was taking a lot of time for a program as simple as I had written. And, all I was including was:</p>
<pre class="brush: cpp;">

#include &quot;boost\filesystem.hpp&quot;   // includes all needed Boost.Filesystem declarations

#include &lt;iostream&gt;               // for std::cout
#include &lt;string&gt;
#include &lt;vector&gt;
</pre>
<p>Thats all! A quick google search on this, made me realize that this is something that a lot of people despise about Boost. Somebody, then recommended me looking up &#8220;Pre-compiled Header files&#8221;. Oh man, it worked like a charm and guess what, after my first build, the build time dropped from 0:11 to 0:02 seconds, Nhaaice!</p>
<p>There are some nuances that I am exploring, but am convinced, its a good thing to use in a big project where you are including big and heavy header files like windows.h or STL stuff.</p>
<p>Here is a great article at <a href="http://www.cygnus-software.com/papers/precompiledheaders.html" target="_blank">Fractal eXtreme</a>, that says it all.</p>
<p>Some of the in-general quick tips that I learnt from there: (MS VS express 2008 c++)</p>
<ol>
<li>Seeing your build time: In the VS IDE; goto: Tools -&gt; Options -&gt; Projects &amp; Solutions -&gt; VC++ Project Settings -&gt; Build Timing :: Set it to yes</li>
<li>See the list of header files that get included: goto Project properties -&gt; C++ -&gt; Advanced -&gt; Show Includes :: Set it to yes</li>
</ol>
<p>Here is my sample code listing:</p>
<pre class="brush: cpp;">

template &lt;class Type&gt;
vector&lt;Type&gt; CFileUtility::FilesInDirectory(const bfs::path &amp;dirPath, bool recursive)
{
 vector&lt;Type&gt; fileList;

 if( !exists(dirPath) )
 {
 throw new exception(string(dirPath.string() + &quot; not found!&quot;).c_str()); ;
 }
 else if( bfs::is_regular_file(dirPath) )
 {
 throw new exception(string(dirPath.string() + &quot; is a File!&quot;).c_str());
 }
 else
 {
 bfs::directory_iterator iter(dirPath), iter_end;

 for(;iter != iter_end; iter++)
 {
 if( bfs::is_directory(*iter) )
 {
 if(recursive)
 {
 vector&lt;Type&gt; list = FilesInDirectory&lt;Type&gt;(*iter, recursive);
 fileList.insert(fileList.end(), list.begin(), list.end() );
 }
 continue;
 }
 else
 fileList.push_back( iter-&gt;string() );
 }
 }
 return fileList;
}
</pre>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=db2cb6d3-0b64-8d62-9d12-dc07cceb1977" alt="" /></div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/entropologygames.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/entropologygames.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/entropologygames.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/entropologygames.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/entropologygames.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/entropologygames.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/entropologygames.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/entropologygames.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/entropologygames.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/entropologygames.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/entropologygames.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/entropologygames.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/entropologygames.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/entropologygames.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=entropologygames.wordpress.com&amp;blog=7251578&amp;post=162&amp;subd=entropologygames&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://entropologygames.wordpress.com/2009/08/25/enabling-super-fast-build-time-all-hail-pre-compiled-header-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/171b07ba15c1db361fd3e36977cb9e21?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brainydexter</media:title>
		</media:content>

		<media:content url="http://img.zemanta.com/pixy.gif?x-id=db2cb6d3-0b64-8d62-9d12-dc07cceb1977" medium="image" />
	</item>
	</channel>
</rss>
