I have installed version 2 of Kinect that comes with an integrated developer's toolkit. Problem is that when I load the sample face tracking project (Face Basics D2D), a majority of C++'s own headers like windows.h, string library, strsafe etc come out to be undefined (although all of Kinect's own headers and libraries appear OK). Can you tell me exactly how I am supposed to run that code? What are the steps?
I would be really grateful for your help.
Thanks in advance.
P.S if i write a program myself, then those headers appear defined- completely normal.
Okay, so I finally found the answer:
Kinect v2 is ONLY compatible with visual studio 2013. kinect v1 is compatible with 2010.
Also if anyone wants to interface it with Matlab, you have to know that the support package available at
http://www.mathworks.com/matlabcentral/fileexchange/40445-image-acquisition-toolbox-support-package-for-kinect-for-windows-runtime
is only for v1 of kinect. If you use it with v2, it will detect Kinect as an adaptor but will not recognize its depth and color sensor device IDs. v2 of Kinect is fairly new, and does not have its Matlab interface yet.
Related
Is possible to use both in the same project? actually they have different classes.
I want to do that because OpenNI2 has the driver for Microsoft Kinect, but the library PCL (Point Cloud Libraries) doesn't work yet with this version of OpennI, so i should use the previous version in order to do use them.
However, if there is a better way to use the kinect and, at the same time, use a library capables of meshing a cloud of point, it could be very helpful
ps: I'm using Visual Studio 2010, 32bits, c++
cheers, Maurizio.
As far as I know Nicolas Burrus nestk library supports both, OpenNI and OpenNI2 and also has a PCL integration.
You may want to check the nestk Homepage or nestk on GitHub. Some useful example can be found in the Wiki.
PCL is going to have OpenNI2 grabber. It is being developed and will be merged soon.
this one drives me crazy. I've been searching for two days but cant find any answer.
I want to develop some things with OpenGL 3 (or newer) with Visual Studio 2010 / C++.
The header and libraries provided by Microsoft are way too old to support OpenGL 3, so I'm trying to find newer versions. I easily found the header file in the OpenGL registry (http://www.opengl.org/registry/) but I cant find the OpenGL32.lib anywhere. How am I supposed to link a program without it?
There isn't a newer OpenGL library for windows, and there won't be. They decided to stop at OpenGL 1.1 and even call it a legacy graphics.
However, you can use load opengl function, and that is how people get access to the latest opengl features.
You can also use GLEW library to get access to the opengl functions.
I am trying to create an application to capture a snapshot using a webcam.
I have been able to accomplish this using WIA, but this solution becomes unstable when ran on Windows 7 with a camera that has a resolution of more than 1.3 megapixels. We are coding for a tablet computer that has a built in webcam with 2.0 megapixels.
I am not opposed to using direct show, but I would like to stay away from .net.
I have searched high and low for a solution and I can not get the directshow examples from the windows platform sdk or directx 9.0 to even compile on Visual Studio 6.0. I have also had no luck OpenCV.
Is there anyone that could point me in the direction of a tutorial that might get me started down the right path?
Thanks
The simplest way is videoinput lib that wraps directshow, it's the same lib used by openCV.
If that isn't good enough then the AMCAP sample in the multimedia/directshow dir of the Microsoft SDK shows how to run a camera in directshow
ps. as Hans said you should update the compiler,VC++6 is little old. There is a free version of their latest vs2010.
I found this tutorial excellent and it is so simple. I found it worked on XP and win7 with an old webcam and a new one.
I used the second example which is a semi-directshow one, but bypasses most of directshow.
You do need to add error handling though.
http://www.codeproject.com/KB/audio-video/VideoImageGrabber.aspx
I'm trying to setup VC++ to compile code with OpenGL 4.1 functionality. I downloaded the 3 header files from from opengl.org; put them in the correct paths and include them - but keep getting errors like this:
error C3861: 'wglSwapIntervalEXT': identifier not found
I have the latest video drivers. OpenGL says the problem is MS includes only version 1.1 with their compiler when though the vendor/driver supports 4.1.
One of the big pains of using OpenGL on Windows is that the Windows SDK only ships with OpenGL 1.1. There's probably a really good technical (and non-political) reason for this, but the fact remains, if you want to do anything with OpenGL on Windows, you're on your own.
What you need then, is something to bring the Windows SDK up to current standards (OpenGL 4.1 as I write this.) When I was originally trying to solve this problem (around the time of OpenGL 3.0), I came across GLee http://elf-stone.com/glee.php which is a cool library which makes the full OpenGL spec available easily. I didn't like their license, so I decided to write my own extension loader.
I don't think anyone should ever have to do this again, so I've made mine public domain, do with it as you will. I'd like to hear if you use it in something, but that's not a requirement.
http://www.onemanmmo.com/index.php?cmd=newsitem&comment=news.1.28.0
I am developing one game where I want to add OpenGL framework with VC++ 2005 express edition. But I dont know how to add OpenGL framework with VC++. So can any one guide me for this.
Please explain me in detail.
Thanks in advance
You must link with opengl32.lib and potentially glu32.lib. The headers should already be provided with the Platform SDK (which needs to be downloaded separately, if you don't already have it).
If possible, you should consider upgrading to VS2008 Express, since it's free.
You need to have a windowing toolkit before you can use opengl. GLUT is the easiest to learn/use for begining with opengl. Here is a guide to download GLUT and how to create an opengl project.
http://www.cecs.csulb.edu/~pnguyen/Using%20OpenGL%20in%20Visual%20Studio%202005.htm
You should have all of the opengl libs and headers already so you should only need to download glut.