<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 14. OpenGL Fog</title>
	<atom:link href="http://www.swiftless.com/tutorials/opengl/fog.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.swiftless.com/tutorials/opengl/fog.html</link>
	<description>Game Programming and Computer Graphics Tutorials</description>
	<lastBuildDate>Wed, 01 Feb 2012 09:19:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: TeXiCiTy</title>
		<link>http://www.swiftless.com/tutorials/opengl/fog.html/comment-page-1#comment-1694</link>
		<dc:creator>TeXiCiTy</dc:creator>
		<pubDate>Mon, 30 May 2011 18:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=168#comment-1694</guid>
		<description>@&quot;A Man&quot;: A simple piece of code I took from another OpenGL tutorial limits the frame rate:

bool limitFpsTo(int rate){
	static float last = GetTickCount() * 0.001f;
	static float elapsed = 0.0f;

	float currect = GetTickCount() * 0.001f;
	float delta = currect - last;
	float FPS = 1.0f/rate;

	elapsed+=delta;
	last=currect;

	if (elapsed&gt;FPS)
	{
		elapsed -=FPS;
		return true;
	}
	return false;
}

If you place the buffered keyOperations() function introduced in Tutorial 3 inside the if(limitFpsTo) in the display() function the speed should be fixed.</description>
		<content:encoded><![CDATA[<p>@&#8221;A Man&#8221;: A simple piece of code I took from another OpenGL tutorial limits the frame rate:</p>
<p>bool limitFpsTo(int rate){<br />
	static float last = GetTickCount() * 0.001f;<br />
	static float elapsed = 0.0f;</p>
<p>	float currect = GetTickCount() * 0.001f;<br />
	float delta = currect &#8211; last;<br />
	float FPS = 1.0f/rate;</p>
<p>	elapsed+=delta;<br />
	last=currect;</p>
<p>	if (elapsed&gt;FPS)<br />
	{<br />
		elapsed -=FPS;<br />
		return true;<br />
	}<br />
	return false;<br />
}</p>
<p>If you place the buffered keyOperations() function introduced in Tutorial 3 inside the if(limitFpsTo) in the display() function the speed should be fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matiss</title>
		<link>http://www.swiftless.com/tutorials/opengl/fog.html/comment-page-1#comment-1693</link>
		<dc:creator>Matiss</dc:creator>
		<pubDate>Sun, 29 May 2011 13:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=168#comment-1693</guid>
		<description>Hey!

i have prob. with this tut. I have lighting too and when  try fog everything drawn becomes black. I can&#039;t understand why...

Do u know what problem might be?</description>
		<content:encoded><![CDATA[<p>Hey!</p>
<p>i have prob. with this tut. I have lighting too and when  try fog everything drawn becomes black. I can&#8217;t understand why&#8230;</p>
<p>Do u know what problem might be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swiftless</title>
		<link>http://www.swiftless.com/tutorials/opengl/fog.html/comment-page-1#comment-1667</link>
		<dc:creator>Swiftless</dc:creator>
		<pubDate>Fri, 20 May 2011 02:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=168#comment-1667</guid>
		<description>Hi A man,

Depending on the speed of your machine, you will always have to change this. To make it constant on every machine, you need to use some time-based techniques. Such as incrementing angle depending on how much time has passed since the last frame.

Thanks,
Swiftless</description>
		<content:encoded><![CDATA[<p>Hi A man,</p>
<p>Depending on the speed of your machine, you will always have to change this. To make it constant on every machine, you need to use some time-based techniques. Such as incrementing angle depending on how much time has passed since the last frame.</p>
<p>Thanks,<br />
Swiftless</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: a man</title>
		<link>http://www.swiftless.com/tutorials/opengl/fog.html/comment-page-1#comment-1653</link>
		<dc:creator>a man</dc:creator>
		<pubDate>Tue, 17 May 2011 19:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=168#comment-1653</guid>
		<description>on my computer the cube rotate very fast so i changed
this 
angle ++;
to
angle += 0.01</description>
		<content:encoded><![CDATA[<p>on my computer the cube rotate very fast so i changed<br />
this<br />
angle ++;<br />
to<br />
angle += 0.01</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.swiftless.com/tutorials/opengl/fog.html/comment-page-1#comment-838</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Fri, 09 Jul 2010 13:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=168#comment-838</guid>
		<description>Heya, cool tutorials, keep them up! 

btw, I think the fourth value in your fog color is the alpha value, obviously it will only make a change if you have blending enabled. Could be interesting to see if it blends with your glClearColor aye? :)</description>
		<content:encoded><![CDATA[<p>Heya, cool tutorials, keep them up! </p>
<p>btw, I think the fourth value in your fog color is the alpha value, obviously it will only make a change if you have blending enabled. Could be interesting to see if it blends with your glClearColor aye? <img src='http://www.swiftless.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swiftless</title>
		<link>http://www.swiftless.com/tutorials/opengl/fog.html/comment-page-1#comment-62</link>
		<dc:creator>Swiftless</dc:creator>
		<pubDate>Tue, 30 Mar 2010 01:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=168#comment-62</guid>
		<description>Thanks for the heads up Ted, I&#039;ll fix that up.

Cheers,
Swiftless</description>
		<content:encoded><![CDATA[<p>Thanks for the heads up Ted, I&#8217;ll fix that up.</p>
<p>Cheers,<br />
Swiftless</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://www.swiftless.com/tutorials/opengl/fog.html/comment-page-1#comment-61</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Tue, 30 Mar 2010 00:01:57 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=168#comment-61</guid>
		<description>Hey, nice tutorials.  On tutorial 14 &quot;OpenGL Fog&quot;  The intro is repeated twice.  Just so you know.</description>
		<content:encoded><![CDATA[<p>Hey, nice tutorials.  On tutorial 14 &#8220;OpenGL Fog&#8221;  The intro is repeated twice.  Just so you know.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

