Sign in to follow this  

Kinect with DirectX11

This topic is 2235 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[font=Arial,][size=4]I am following the Kinect SDK tutorial and it seems to be working fine so far, the problem I am having is that it uses DirectX9 for the renderer and I wish to use DirectX11.[/size][/font]

[font=Arial,][size=4]I managed to get the actual depth and video streams into BYTE * but I need a way to convert it into a DirectX11 texture per frame.[/size][/font]

[font=Arial,][size=4]Has anyone done something similar to what I am doing? If you have some sample code would help me a lot thanks.[/size][/font]

Share this post


Link to post
Share on other sites
[url="http://msdn.microsoft.com/en-us/library/windows/desktop/ff476486(v=vs.85).aspx"]UpdateResource()[/url] or [url="http://msdn.microsoft.com/en-us/library/windows/desktop/ff476457(v=VS.85).aspx"]Map()[/url] should do more or less exactly what you need.

Share this post


Link to post
Share on other sites
[quote name='InvalidPointer' timestamp='1322939879' post='4890190']
[url="http://msdn.microsoft.com/en-us/library/windows/desktop/ff476486%28v=vs.85%29.aspx"]UpdateResource()[/url] or [url="http://msdn.microsoft.com/en-us/library/windows/desktop/ff476457%28v=VS.85%29.aspx"]Map()[/url] should do more or less exactly what you need.
[/quote]

Dont forget to create the texture with the D3D11_USAGE_DYNAMIC flag.

Share this post


Link to post
Share on other sites
You have pretty good timing --> I just added a Kinect sample to [url="http://hieroglyph3.codeplex.com"]Hieroglyph 3[/url] that does exactly what you are looking for :) Take a look at the KinectPlayground sample, and you should be able to find the code that you want. It is hot off the compiler, and there isn't much error checking so far, but it should work out of the box if you have the Beta 2 SDK installed.

You should end up with something looking like this when it runs:

[center][attachment=6312:KinectPlayground_000001.png][/center]

If you have any questions or comments on the sample I would be interested to hear them!

Share this post


Link to post
Share on other sites

This topic is 2235 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this