<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>http://forums.xna.com/forums/32.aspx</link><description>Don't know where to post your question? Post it here!</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: How can this class can work with winforms and ModelViewerControl ?</title><link>http://forums.xna.com/forums/thread/250138.aspx</link><pubDate>Wed, 11 Nov 2009 13:40:12 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:250138</guid><dc:creator>HappyHombre</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/250138.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=250138</wfw:commentRss><description>The CameraComponent class is designed to work specifically with the Game class. Try using the Camera class instead. The CameraComponent class internally uses the Camera class. Also note that the Camera class does not provide keyboard and/or mouse support like the CameraComponent class does. Instead you will need to call the LookAt(), Move(), and Rotate() methods.</description></item><item><title>Re: How can this class can work with winforms and ModelViewerControl ?</title><link>http://forums.xna.com/forums/thread/250123.aspx</link><pubDate>Wed, 11 Nov 2009 13:04:06 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:250123</guid><dc:creator>mysdn</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/250123.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=250123</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;HappyHombre:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;m assuming you want to use the CameraComponent class. &lt;br /&gt;
&lt;br /&gt;
Here&amp;#39;s the basic steps: &lt;br /&gt;
&lt;br /&gt;
1. Create an instance of the CameraComponent class and pass it your Game class. &lt;br /&gt;
CameraComponent camera = new CameraComponent(this); &lt;br /&gt;
&lt;br /&gt;
2. Register the CameraComponent with the framework. &lt;br /&gt;
this.Components.Add(camera); &lt;br /&gt;
&lt;br /&gt;
That&amp;#39;s all there is to it. The framework will call the CameraComponent&amp;#39;s Update() method once per frame to update the camera&amp;#39;s state. &lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks for the great sample you presented, but how can I use it with ModelViewerControl Shawn provided?  &lt;br /&gt;
&lt;span style="font-size:16px;"&gt;
&lt;p&gt;camera = &lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:16px;"&gt;new&lt;/span&gt;&lt;span style="font-size:16px;"&gt; &lt;/span&gt;&lt;span style="color:#2b91af;font-size:16px;"&gt;CameraComponent&lt;/span&gt;&lt;span style="font-size:16px;"&gt;(&lt;/span&gt;&lt;span style="color:#0000ff;font-size:16px;"&gt;this&lt;/span&gt;&lt;span style="font-size:16px;"&gt;);
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Components.Add(camera);&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
I am trying to make WinFormsGraphicsDeviceSample-3.0 to work with this camera class, but no success so far, what should be different in winforms for this camera class to work? &lt;br /&gt;
the this above dont work for modelviewercontrol, my app does not use Game class, so there is no Update method, just overriding Draw method from XNA framework and updating via a timer.&lt;br /&gt;
&lt;br /&gt;
also modelviewer does not expose a Component for Components.Add(camera); to work, what am I missing?&lt;br /&gt;
&lt;br /&gt;
any help is appreciated, this camera class is fantastic I dont want to look for other camera classes, please help, thank you&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Re: General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/129403.aspx</link><pubDate>Sat, 17 Jan 2009 20:17:30 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:129403</guid><dc:creator>Gumbug</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/129403.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=129403</wfw:commentRss><description>Just tried your demo ... one word ... WOW!  &lt;br /&gt;
&lt;br /&gt;
Oh and Thanks!&lt;br /&gt;</description></item><item><title>Re: General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/27094.aspx</link><pubDate>Fri, 05 Oct 2007 13:08:33 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:27094</guid><dc:creator>Virag Stefan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/27094.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=27094</wfw:commentRss><description>Nice!&lt;br&gt;I haven't had any camera isuess so far, but still the way you laid the demo scene, commented everything, really deservers more comments ;) .. And apart from this, all of your samples are great (c#-wise)..&lt;br&gt;</description></item><item><title>Re: General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/27004.aspx</link><pubDate>Thu, 04 Oct 2007 20:37:39 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:27004</guid><dc:creator>HappyHombre</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/27004.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=27004</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Takuan Daikon:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;After peeking around in the code some, I am motivated to come back here and give additional thanks for the several links I've found so far in the code's comments for "further reading".&amp;#160; I love it when people do that.&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;Thanks. Camera code can get very tricky. Those links helped me out when I was writing the camera component.</description></item><item><title>Re: General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/26642.aspx</link><pubDate>Tue, 02 Oct 2007 00:25:15 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:26642</guid><dc:creator>Takuan Daikon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/26642.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=26642</wfw:commentRss><description>I just want to give you my thanks for this component!!!&amp;nbsp; I know that conceptually an orbit camera is not terribly complex, yet there's been something not clicking about it for me.&amp;nbsp; &lt;br&gt;&lt;br&gt;Moving from conceptual descriptions and technical papers to an implementation that can orbit around an arbitrary point rather than just the origin has been a challenge for me thus far, and your demo demonstrates the behavior that I want PERFECTLY!&lt;br&gt;&lt;br&gt;Much thanks!&lt;br&gt;&lt;br&gt;[EDIT] After peeking around in the code some, I am motivated to come back here and give additional thanks for the several links I've found so far in the code's comments for "further reading".&amp;nbsp; I love it when people do that.&lt;br&gt;</description></item><item><title>Re: General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/16859.aspx</link><pubDate>Sat, 14 Jul 2007 07:55:42 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:16859</guid><dc:creator>HappyHombre</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/16859.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=16859</wfw:commentRss><description>I've released a new version of the XNA Camera demo. This new version contains many new features and bug fixes. For further details and download links visit &lt;a href="http://www.dhpoware.com"&gt;www.dhpoware.com&lt;/a&gt;.</description></item><item><title>Re: General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/15174.aspx</link><pubDate>Mon, 02 Jul 2007 06:25:51 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:15174</guid><dc:creator>jeff1956</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/15174.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=15174</wfw:commentRss><description>&lt;P&gt;I have&amp;nbsp;two suggestions:&lt;/P&gt;
&lt;P&gt;Add keys for turning the camera to left or right. The "A" and "D" keys move the camera left or right without turning the camera.&lt;/P&gt;
&lt;P&gt;A camera mode for driving/racing games with the camera attached to a 3D model of a vehicle. &lt;/P&gt;</description></item><item><title>Re: General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/15151.aspx</link><pubDate>Mon, 02 Jul 2007 01:04:15 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:15151</guid><dc:creator>HappyHombre</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/15151.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=15151</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;jeff1956:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;How do I use your Camera class in my 3D game? I wish to replace the floor in the demo program with a 3D model loaded from DirectX mesh file.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;&lt;br /&gt;I'm assuming you want to use the CameraComponent class.&lt;br /&gt;&lt;br /&gt;Here's the basic steps:&lt;br /&gt;&lt;br /&gt;1. Create an instance of the CameraComponent class and pass it your Game class.&lt;br /&gt;CameraComponent camera = new CameraComponent(this);&lt;br /&gt;&lt;br /&gt;2. Register the CameraComponent with the framework.&lt;br /&gt;this.Components.Add(camera);&lt;br /&gt;&lt;br /&gt;That's all there is to it. The framework will call the CameraComponent's Update() method once per frame to update the camera's state.&lt;br /&gt;&lt;br /&gt;The CameraComponent class' constructor sets up a bunch of default keyboard mappings. These can be changed using the MapActionToKey() method.&lt;br /&gt;&lt;br /&gt;There's a bunch of properties that you can call to retrieve important state information from the CameraComponent. The most important ones include: ProjectionMatrix, Position, ViewDirection, and ViewMatrix.&lt;br /&gt;&lt;br /&gt;HTH.</description></item><item><title>Re: General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/14706.aspx</link><pubDate>Thu, 28 Jun 2007 10:48:22 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:14706</guid><dc:creator>L0STlogic</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/14706.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=14706</wfw:commentRss><description>Thanks for adding this to the community.&amp;nbsp; I'm going to give it a try. :)&lt;br&gt;</description></item><item><title>Re: General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/14661.aspx</link><pubDate>Wed, 27 Jun 2007 21:15:44 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:14661</guid><dc:creator>jeff1956</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/14661.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=14661</wfw:commentRss><description>How do I use your Camera class in my 3D game? I wish to replace the floor in the demo program with a 3D model loaded from DirectX mesh file.</description></item><item><title>General purpose quaternion camera component released</title><link>http://forums.xna.com/forums/thread/11500.aspx</link><pubDate>Thu, 31 May 2007 11:01:20 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:11500</guid><dc:creator>HappyHombre</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/11500.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=11500</wfw:commentRss><description>I've been using a camera game component for some time in my projects. This camera code started off as a bunch of loosely related utility functions that I needed at the time in my projects. More and more features were added over time and eventually the code got refactored into an XNA game component. I use this camera component all the time and I'm hoping the community will benefit from it as well.&lt;br /&gt;&lt;br /&gt;I've put together a small demo that shows off most of the camera component's features. The camera component is quaternion based and implements 4 different camera types - the camera component refers to these camera types as behaviors. These are: first person, spectator, flight, and orbit. First person is self explanatory. Spectator is similar to first person but the camera moves in the direction that it's pointing. Flight mimics a flight sim's controls. Finally orbit is a third person style camera mode that rotates around a target.&lt;br /&gt;&lt;br /&gt;All of the camera logic is contained in the camera.cs file. This file contains an interface (ICamera) and 2 implementations of this interface (Camera and CameraComponent).&lt;br /&gt;&lt;br /&gt;The Camera class contains the implementation of the ICamera interface and is designed to be directly manipulated by other classes in your application. The Camera class does not contain any kind of logic to process player input. You should look at the Camera class to understand the math behind the various camera behaviors.&lt;br /&gt;&lt;br /&gt;The CameraComponent class contains an instance of the Camera class. The CameraComponent interacts with the XNA framework and then processes player input by delegating all camera logic to the Camera class.&lt;br /&gt;&lt;br /&gt;For further details and download links please visit &lt;a href="http://www.dhpoware.com"&gt;www.dhpoware.com&lt;/a&gt;.</description></item></channel></rss>