tag:blogger.com,1999:blog-3949245463196593393.post7762684704626908881..comments2015-12-01T16:26:09.010+00:00Comments on Kinect for XNA: Tutorial 3: Getting the Video StreamNick Garlandhttp://www.blogger.com/profile/00275446157330712740noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-3949245463196593393.post-4171440256211803032015-12-01T16:26:09.010+00:002015-12-01T16:26:09.010+00:00when your done using the frame that you processed ...when your done using the frame that you processed simply call frame.Dispose()<br /><br />PBonthemovehttps://www.blogger.com/profile/16172090981841209426noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-7272805698908000042014-12-12T04:06:55.908+00:002014-12-12T04:06:55.908+00:00Great!!! Good tutorial and you save me with the ti...Great!!! Good tutorial and you save me with the tint blue, I use in Intel Real Sense camera and xna :D<br />And other solution in Kinect v2 you can use<br />...new Texture2D(graphicsDeviceManager.GraphicsDevice, colorFrameDescriptionWithHeigth.Width, colorFrameDescriptionWithHeigth.Height, false, SurfaceFormat.Color);<br /><br />and then<br /><br />if ((colorFrameDescription.Width == colorFrameDescriptionWithHeigth.Width) && (colorFrameDescription.Height == colorFrameDescriptionWithHeigth.Height))<br /> // {<br /> if (colorFrame.RawColorImageFormat == ColorImageFormat.Rgba)<br /> {<br /> colorFrame.CopyRawFrameDataToArray(this.colorPixels);<br /> // }<br /> else<br /> {<br /> colorFrame.CopyConvertedFrameDataToArray(this.colorPixels, ColorImageFormat.Rgba);<br /> }<br /><br /> colorFrameProcessed = true;<br /> }<br />this.imagenCamaraKinect.SetData(colorPixels);Anonymoushttps://www.blogger.com/profile/18181069482432450524noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-83530907184850822952013-10-28T12:35:21.294+00:002013-10-28T12:35:21.294+00:00Hi when i try to run the above code i get kinect_C...Hi when i try to run the above code i get kinect_ColorFrameReady does not exist in the current context... can anyone please help me?<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-10815610013489423472013-05-16T01:58:02.633+01:002013-05-16T01:58:02.633+01:00Nevermind, I commented prematurely. It was all my ...Nevermind, I commented prematurely. It was all my mistake. Sorry for wasting your time, and thanks again!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-4367641162814203062013-05-16T01:52:42.886+01:002013-05-16T01:52:42.886+01:00Hi there, I know this is a little old now, but I h...Hi there, I know this is a little old now, but I hope you're still tracking it. The issue I am encountering is that the kinect_ColorFrameReady method is never being run. Which means that when I hit the draw Method, the texture is returning null and throwing an error.<br /><br />On a different note, however. You are a hero, these tutorials are an oasis in a desert of indecypherable techno-speak (I am relatively new to programming, though I have made games in XNA before). So... thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-9745957356826241612013-03-18T08:00:28.381+00:002013-03-18T08:00:28.381+00:00Hi Márcio,
I think this will be related to the SD...Hi Márcio,<br /><br />I think this will be related to the SDK versions. I originally wrote these for V1.0 and now I think they have V1.8.<br /><br />I assume the comment above does not help with your issue?<br /><br />Nick Garlandhttps://www.blogger.com/profile/00275446157330712740noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-44851668518299277322013-03-13T18:35:24.845+00:002013-03-13T18:35:24.845+00:00Hello Nick, thank you for your tutorial, but I hav...Hello Nick, thank you for your tutorial, but I have a problem with EventHandler(kinect_ColorFrameReady);<br /><br />visual studio says: Error 1 The name 'Kinect_ColorFrameReady' does not exist in the current context<br /><br />do you know how to solve it?<br /><br />thanks in advance<br /><br />Márcio <br />Marcio Mellohttps://www.blogger.com/profile/17973127303397487834noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-65552266070212199082013-01-27T16:21:28.479+00:002013-01-27T16:21:28.479+00:00I Imagine it will be a difference between the V1.0...I Imagine it will be a difference between the V1.0 SDK and the latest version. I am yet try the new SDK.Nick Garlandhttps://www.blogger.com/profile/00275446157330712740noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-18935241194183439762013-01-27T14:42:03.507+00:002013-01-27T14:42:03.507+00:00Hey, great tutorials by the way! I just have one m...Hey, great tutorials by the way! I just have one minor problem, my debug panel keeps printing "Warning: a ImageFrame instance was not disposed", is there any way to fix this or have I just missed something?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-58307918924640018862012-02-26T16:11:40.397+00:002012-02-26T16:11:40.397+00:00Thanks for your reply, I eventually solved the pro...Thanks for your reply, I eventually solved the problem. I typed "ColorImageFrameReadyEventArgs" incorrectly, I didnt put capitals where needed...silly mistake.<br /><br />thanks for posting the solution tooRyanhttps://www.blogger.com/profile/16200424850127172762noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-31328482850041905852012-02-24T18:53:15.550+00:002012-02-24T18:53:15.550+00:00Hi RStaff,
I noticed the SyntaxHighlighter did me...Hi RStaff,<br /><br />I noticed the SyntaxHighlighter did mess up my snippets because I left the < and > in. I have now tidied these up; this will fix issue 2. <br /><br />Issue 1 could be related as the event handler would not have been defined properly. If you adjust these two bits it should work.<br /><br />I have also popped the Solution into my public Dropbox folder so I have put the link ^^ (still sorting out my own hosting)Nick Garlandhttps://www.blogger.com/profile/00275446157330712740noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-87297513266428383112012-02-23T21:14:24.725+00:002012-02-23T21:14:24.725+00:00Hi Nick,
The first issue I come across is two err...Hi Nick,<br /><br />The first issue I come across is two errors that occur when creating the event handler....<br />1:No overload for 'kinect_ColorFrameReady' matches delegate<br />2: The type or namespace name 'colorimageframereadyeventargs' could not be found.<br /><br />is there something im missing or am i just being an idiot?Ryanhttps://www.blogger.com/profile/16200424850127172762noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-5943038256039509982012-02-23T21:05:13.892+00:002012-02-23T21:05:13.892+00:00Hi RStaff,
I most certainly am happy to share the...Hi RStaff,<br /><br />I most certainly am happy to share the full source code. I have been meaning to upload it somewhere but have not had the time recently. <br /><br />I will get the source code up for each tutorial shortly after I publish the Skeletal Tracking which will hopefully be at the weekend.<br /><br />What issues are you having?Nick Garlandhttps://www.blogger.com/profile/00275446157330712740noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-74600064814006935312012-02-23T20:56:04.122+00:002012-02-23T20:56:04.122+00:00Loving these tutorials...I spent half the day look...Loving these tutorials...I spent half the day looking for some that would be up to date with the latest SDK but nothing, till now of cause :D<br />Any chance of sharing the source code, as i'm having issuesRyanhttps://www.blogger.com/profile/16200424850127172762noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-90931388954456108522012-02-08T19:58:51.844+00:002012-02-08T19:58:51.844+00:00It is very hard to look happy without looking cree...It is very hard to look happy without looking creepy! I will probably change the picture at some point.Nick Garlandhttps://www.blogger.com/profile/00275446157330712740noreply@blogger.comtag:blogger.com,1999:blog-3949245463196593393.post-19350577236593486672012-02-08T19:50:27.251+00:002012-02-08T19:50:27.251+00:00Looking super happy there Nick!Looking super happy there Nick!Phil Chttps://www.blogger.com/profile/08243028701374207693noreply@blogger.com