<?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: 22. OpenGL Camera</title>
	<atom:link href="http://www.swiftless.com/tutorials/opengl/camera.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.swiftless.com/tutorials/opengl/camera.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: Oskar</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-4193</link>
		<dc:creator>Oskar</dc:creator>
		<pubDate>Fri, 06 Jan 2012 13:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-4193</guid>
		<description>Hi how do change the sensetivity?</description>
		<content:encoded><![CDATA[<p>Hi how do change the sensetivity?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asyx</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-3880</link>
		<dc:creator>Asyx</dc:creator>
		<pubDate>Sat, 24 Dec 2011 17:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-3880</guid>
		<description>Shouldn&#039;t &quot;-positionx[i+1]&quot; be an error? It would be out of range in the last round.</description>
		<content:encoded><![CDATA[<p>Shouldn&#8217;t &#8220;-positionx[i+1]&#8221; be an error? It would be out of range in the last round.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DukeH</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-2047</link>
		<dc:creator>DukeH</dc:creator>
		<pubDate>Tue, 09 Aug 2011 09:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-2047</guid>
		<description>Zilot, his calculation works because it creates a new position vector that is pointing the same direction as the old. If you were to simply add 0.9 then you wouldn&#039;t be traveling in the same direction that the camera is facing. To see what I mean, try adding a larger number like 10 instead... the camera rotates instead of moving forward as intended.

A problem I see is that the speed in which the camera moves varies depending on the values of yrot and xrot to a small extent, it isn&#039;t significant for this program but if the camera&#039;s speed is ever to be scaled up then it may become more noticeable. 

An alternative would be to add one unit vector in the direction the camera is facing, ie divide the position vector by it&#039;s magnitude then add that vector to the original position vector. That way it&#039;s easier to program the exact speed you want and avoids using sine and cosine. The drawback is more CPU calculations are required, however.

Thanks for the tutorial, Swiftless, it made much more sense then everything else I&#039;ve found.</description>
		<content:encoded><![CDATA[<p>Zilot, his calculation works because it creates a new position vector that is pointing the same direction as the old. If you were to simply add 0.9 then you wouldn&#8217;t be traveling in the same direction that the camera is facing. To see what I mean, try adding a larger number like 10 instead&#8230; the camera rotates instead of moving forward as intended.</p>
<p>A problem I see is that the speed in which the camera moves varies depending on the values of yrot and xrot to a small extent, it isn&#8217;t significant for this program but if the camera&#8217;s speed is ever to be scaled up then it may become more noticeable. </p>
<p>An alternative would be to add one unit vector in the direction the camera is facing, ie divide the position vector by it&#8217;s magnitude then add that vector to the original position vector. That way it&#8217;s easier to program the exact speed you want and avoids using sine and cosine. The drawback is more CPU calculations are required, however.</p>
<p>Thanks for the tutorial, Swiftless, it made much more sense then everything else I&#8217;ve found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 Camera Html Sites&#160;&#124;&#160;Digital Cameras Online</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-1807</link>
		<dc:creator>10 Camera Html Sites&#160;&#124;&#160;Digital Cameras Online</dc:creator>
		<pubDate>Mon, 20 Jun 2011 09:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-1807</guid>
		<description>[...] 22. OpenGL Camera &#124; Swiftless TutorialsIf you look at making any game where the scene is larger than can be displayed in the window at once, [...]</description>
		<content:encoded><![CDATA[<p>[...] 22. OpenGL Camera | Swiftless TutorialsIf you look at making any game where the scene is larger than can be displayed in the window at once, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zilot</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-1773</link>
		<dc:creator>zilot</dc:creator>
		<pubDate>Mon, 13 Jun 2011 12:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-1773</guid>
		<description>also when i changed this line zpos -= float(cos(yrotrad)) ; by this one zpos -= 0.9 ; only difference is speed 
i don&#039;t know why we need to put trigonometry?</description>
		<content:encoded><![CDATA[<p>also when i changed this line zpos -= float(cos(yrotrad)) ; by this one zpos -= 0.9 ; only difference is speed<br />
i don&#8217;t know why we need to put trigonometry?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zilot</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-1772</link>
		<dc:creator>zilot</dc:creator>
		<pubDate>Mon, 13 Jun 2011 12:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-1772</guid>
		<description>hi swifless first thx for this tutorial 
i m a bit confused when press w and s button and when i removed this lines from the code 
 xpos += float(sin(yrotrad)) ; 
 ypos -= float(sin(xrotrad)) ;
it really gave the same result as when they exist i haven&#039;t understand their role?</description>
		<content:encoded><![CDATA[<p>hi swifless first thx for this tutorial<br />
i m a bit confused when press w and s button and when i removed this lines from the code<br />
 xpos += float(sin(yrotrad)) ;<br />
 ypos -= float(sin(xrotrad)) ;<br />
it really gave the same result as when they exist i haven&#8217;t understand their role?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simple OpenGL Keyboard and Mouse FPS Controls &#124; r3dux.org</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-1646</link>
		<dc:creator>Simple OpenGL Keyboard and Mouse FPS Controls &#124; r3dux.org</dc:creator>
		<pubDate>Fri, 13 May 2011 00:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-1646</guid>
		<description>[...] OpenGL SuperBible and did some googling, where I came across Swiftless&#8216; camera tutorials (Part 1, Part 2, Part 3) which gave me a really good start (Thank you, Swiftless!) on how to manipulate the [...]</description>
		<content:encoded><![CDATA[<p>[...] OpenGL SuperBible and did some googling, where I came across Swiftless&#8216; camera tutorials (Part 1, Part 2, Part 3) which gave me a really good start (Thank you, Swiftless!) on how to manipulate the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: triplea</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-1631</link>
		<dc:creator>triplea</dc:creator>
		<pubDate>Thu, 28 Apr 2011 09:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-1631</guid>
		<description>i hope you can post some screenshot for each tutorial so that we can understand more clearly what it does...:)</description>
		<content:encoded><![CDATA[<p>i hope you can post some screenshot for each tutorial so that we can understand more clearly what it does&#8230;:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. Pepper</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-1570</link>
		<dc:creator>Dr. Pepper</dc:creator>
		<pubDate>Thu, 17 Mar 2011 01:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-1570</guid>
		<description>Just wanted to say thanks for this tutorial. I completely overlooked using radians, and everything was acting weird. Thanks!</description>
		<content:encoded><![CDATA[<p>Just wanted to say thanks for this tutorial. I completely overlooked using radians, and everything was acting weird. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coderbill</title>
		<link>http://www.swiftless.com/tutorials/opengl/camera.html/comment-page-1#comment-1538</link>
		<dc:creator>coderbill</dc:creator>
		<pubDate>Wed, 02 Mar 2011 03:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=189#comment-1538</guid>
		<description>Thanks so much! Got this running in no time. Thanks for sharing... it&#039;s so refreshing..</description>
		<content:encoded><![CDATA[<p>Thanks so much! Got this running in no time. Thanks for sharing&#8230; it&#8217;s so refreshing..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

