<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Creating a XNA Kinect Component</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/coding4fun/kinect/Creating-a-XNA-Kinect-Component/RSS"></atom:link>
	<image>
		<url>http://files.channel9.msdn.com/thumbnail/c7e4d157-f40a-403d-bca3-5e5d765beef4.png</url>
		<title>Channel 9 - Creating a XNA Kinect Component</title>
		<link></link>
	</image>
	<description>Today&#39;s project provides a cool reusable Kinect XNA component. Being reusable makes adding Kinect features to your XNA based games almost plug-n-play simple... XNA a Kinect ComponentSo, I have been playing about with the Kinect Beta, having finally got a power supply for my Kinect sensor (I got a Slim XBox). I am not doing a great deal with this post, just thought if you have a sensor you might want to start playing with it in XNA, so I have created a component you can use to get the video, depth and skeletal data back from the device. Forgive the state of my living room, but this shows the video and depth data being retrieved from the device, notice the FPS is at 30, the project will run at 60, but the sensor runs at 30, so it gets a bit jittery if you are running at 60 FPS, so I have restricted it to 30. So here is the simple component you can use to get data back from the device. Project Information URL: http://xna-uk.net/blogs/randomchaos/archive/2011/10/19/xna-a-kinect-component.aspx Project Source URL: http://xna-uk.net/blogs/randomchaos/archive/2011/10/19/xna-a-kinect-component.aspx  kinect = new KinectXNAComponent(this);

spriteBatch.Begin(SpriteSortMode.Immediate,BlendState.Opaque);

            if (kinect.depthMap != null)
            {
                spriteBatch.Draw(kinect.depthMap, new Rectangle(GraphicsDevice.Viewport.Width / 2, 0, GraphicsDevice.Viewport.Width / 2, GraphicsDevice.Viewport.Height / 2), Color.White);
            }

            if (kinect.colorMap != null)
            {
                GraphicsDevice.VertexSamplerStates[0] = SamplerState.LinearClamp;
                spriteBatch.Draw(kinect.colorMap, new Rectangle(0, 0, GraphicsDevice.Viewport.Width / 2, GraphicsDevice.Viewport.Height / 2), Color.White);
            }

            if (kinect.renderJoints != null)
            {
                int sc = kinect.renderJoints.Count;
                for (int s = 0; s &amp;lt; sc; s&amp;#43;&amp;#43;)
                {
                    spriteBatch.Draw(jointImage, new Rectangle(kinect.renderJoints[s].X, kinect.renderJoints[s].Y, 8, 8), Color.Gold);
                }
            }
            
            spriteBatch.End();
 Contact Information: Blog: http://xna-uk.net/blogs/randomchaos Twitter: @NemoKrad </description>
	<link></link>
	<language>en</language>
	<pubDate>Wed, 22 May 2013 06:27:22 GMT</pubDate>
	<lastBuildDate>Wed, 22 May 2013 06:27:22 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Creating a XNA Kinect Component</title>
		<description>
			<![CDATA[good<p>posted by tony</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/kinect/Creating-a-XNA-Kinect-Component#c634562202822319293</link>
		<pubDate>Sun, 06 Nov 2011 23:51:22 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/kinect/Creating-a-XNA-Kinect-Component#c634562202822319293</guid>
		<dc:creator>tony</dc:creator>
	</item>
	<item>
		<title>Re: Creating a XNA Kinect Component</title>
		<description>
			<![CDATA[Hi&#33;<br><br>This kinect that you are defining as a  KinectXNAComponent is a Runtime, right&#63;<br><br>Thanks and sorry about the english, i&#39;m brazillian and i&#39;m just learning how to write in english. I want to create things with kinect, but in brazillian sites it&#39;s almost impossible to see references.<p>posted by Rodrigo</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/kinect/Creating-a-XNA-Kinect-Component#c634582981922738589</link>
		<pubDate>Thu, 01 Dec 2011 01:03:12 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/kinect/Creating-a-XNA-Kinect-Component#c634582981922738589</guid>
		<dc:creator>Rodrigo</dc:creator>
	</item>
</channel>
</rss>