<?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>Freya.no &#187; opengl</title>
	<atom:link href="http://wp.freya.no/tag/opengl/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.freya.no</link>
	<description>Knowledge is power</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:56:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making a game</title>
		<link>http://wp.freya.no/2010/08/making-a-game/</link>
		<comments>http://wp.freya.no/2010/08/making-a-game/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 11:11:41 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[c++]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[making a game]]></category>
		<category><![CDATA[opengl]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=814</guid>
		<description><![CDATA[Okay. This is going to be somewhat personal. I&#8217;m a professional software developer for a medium sized company, which is really not a software company. It&#8217;s only internal software I write. I&#8217;ve also wanted to make a game since I started playing games. That&#8217;s probably why I&#8217;m a software developer today. I&#8217;ve been doing more [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Okay. This is going to be somewhat personal.</p>
<p>I&#8217;m a professional software developer for a medium sized company, which is really not a software company. It&#8217;s only internal software I write.</p>
<p>I&#8217;ve also wanted to make a game since I started playing games. That&#8217;s probably why I&#8217;m a software developer today. I&#8217;ve been doing more or less C++ since I was 14, doing (at least trying to) 3D-graphics since I was 18. Without knowledge of the particular mathematics involved with 3D-graphics it proved to be difficult.</p>
<p>I&#8217;ve started numerous projects with OpenGL, and some are more advanced than others, but I didn&#8217;t continue working on a project for more than 2-3 days before I got tired.</p>
<p>I&#8217;ve started an other project now. I don&#8217;t know what I&#8217;ll make, or whether <em>if</em> I&#8217;ll make anything. But I&#8217;ve started an other project. The only real difference from previous projects is that I know the value of libraries and there is no point in re-inventing the wheel for every project.</p>
<p>Standard template library is there, Boost is there and some other libraries. I know how to use them. And I know they exist!</p>
<p>For this project I know I&#8217;m going to use</p>
<ul>
<li>STL</li>
<li>The boost libraries</li>
<li>Ogre3D for graphics</li>
</ul>
<p>I&#8217;m not so sure about the sound and physics part, but for now I think I&#8217;ll stick with</p>
<ul>
<li>Bullet for physics</li>
<li>FMOD for sound</li>
</ul>
<p>I must also review the licenses  for the libraries to make sure they are allowed to be used in commercial projects or not. I&#8217;m not saying my project is going to be commercial, but I won&#8217;t exclude it. I&#8217;ll also aim for Windows and Linux support. And probably Mac if it&#8217;s going to be commercial.</p>
<p>So far I have an empty scene with a blue background.</p>
<p><a href="http://wp.freya.no/files/2010/08/moz-screenshot.png"><img class="size-medium wp-image-817 alignnone" title="An empty scene" src="http://wp.freya.no/files/2010/08/moz-screenshot-300x232.png" alt="" width="300" height="232" /></a></p>
<p>It&#8217;s a start! &#8230; again</p>
 <img src="http://wp.freya.no/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=814" width="1" height="1" style="display: none;" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwp.freya.no%2F2010%2F08%2Fmaking-a-game%2F&amp;title=Making%20a%20game" id="wpa2a_6"><img src="http://wp.freya.no/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2010/08/making-a-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenGL Accumulation Buffer</title>
		<link>http://wp.freya.no/2007/05/opengl-accumulation-buffer/</link>
		<comments>http://wp.freya.no/2007/05/opengl-accumulation-buffer/#comments</comments>
		<pubDate>Mon, 07 May 2007 21:05:26 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Ikke interessant]]></category>
		<category><![CDATA[accumulation buffer]]></category>
		<category><![CDATA[opengl]]></category>

		<guid isPermaLink="false">http://wp.freya.no:8081/opengl-accumulation-buffer/</guid>
		<description><![CDATA[No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<pre class="brush: cpp; title: ; notranslate">void Display()
{
now = GetTickCount();
dt = (now - last) / 1000.0;
elapsed = (now - start) / 1000.0;

lookAt = Point3(0,0,0);

lookFrom.x = (10)*cos(elapsed);
lookFrom.y = 2;
lookFrom.z = (10)*sin(elapsed);

lookVec = lookFrom - lookAt;

lookUp = lookVec.cross(lookRight);
lookUp.normalize();
lookRight = lookVec.cross(lookUp);
lookRight.normalize();

float passes = 5.0f;

glClear(GL_ACCUM_BUFFER_BIT);

for (int n=0; n&amp;lt;passes; n++)
{

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

glLoadIdentity();

// FOKUS
gluLookAt(
lookFrom[0]+n*lookVec[0]/passes/20,
lookFrom[1]+n*lookVec[1]/passes/20,
lookFrom[2]+n*lookVec[2]/passes/20,

lookAt[0], lookAt[1], lookAt[2],
up[0], up[1], up[2]);
//*/

glPushMatrix();
GLDebug::drawCoords();
glPopMatrix();

scene.display();

glAccum(GL_ACCUM, 1.0/passes);
}

glAccum(GL_RETURN, 1.0);

SwapBuffers(hDC);

last = now;
}</pre>
 <img src="http://wp.freya.no/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=75" width="1" height="1" style="display: none;" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwp.freya.no%2F2007%2F05%2Fopengl-accumulation-buffer%2F&amp;title=OpenGL%20Accumulation%20Buffer" id="wpa2a_14"><img src="http://wp.freya.no/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2007/05/opengl-accumulation-buffer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

