Open Attreyu opened 8 years ago
Hi, I am trying to do the same thing. Just need to get PCD file from it :) It's in InfiniTAM-master\InfiniTAM\ITMLib\Utils\ITMLibDefines.h
/// Kinect2 support is disabled by default (to not add the Kinect2 SDK dependency)
#ifndef COMPILE_WITHOUT_Kinect2
#define COMPILE_WITHOUT_Kinect2
#endif
Also, I think you don't need to calibrate Kinect2 as it's using Kinect SDK instead of OpenNI. (use no arguments)
Specifically: Kinect2Engine::getImages(...)
in this commit.
I will try to get it to work tomorrow. Or I will use OpenNI like you did (thanks btw, didn't know it would work with Kinect v2).
Based on UIEngine.cpp ln 211
case 'w':
printf("saving mesh to disk ...");
uiEngine->SaveSceneToMesh("mesh.stl");
printf(" done\n");
So it's w
key. There is also support for .OBJ just go to definition of SaveSceneToMesh (F12 in VS) and further.
Have you tried to compile InfiniTAM in Ubuntu?
No, I need it in Windows.
@Attreyu, @MarTiXcz have you taken a look at #33 and the associated PR: #34?
@connerbrooks +1. Thanks. I'm not sure how I missed that. I guess I was a bit tired.
Hi, I am tryting to compile InfiniTAM also, and I came cross the same problems as yours. My Kinect 2 have connected with computer successfully, and I have installed OpenNI2 at C:\Programs Files\OpenNI2, (btw, when I use Cmake to configure and generate , Cmake GUI always said can't find OpenNI, and what's worse, I can't set the path that pointing OPENI_ROOT). The InfiniTAMcli.exe always said "compiled without Kinect 2 support" and "compiled without openNI support" . I wonder if you can tell me how you fixed this problem. Thanks! ^^ @Attreyu @MarTiXcz
You need to make changes to FindOpenNI.cmake. It does not work by default, this version includes modifications to make it work on windows.
Thanks! ^_^ I checked FindOpenNI.cmake, and I notice there is a line of code said "OPEN_NI_ROOT /usr/local" . I think this is the key, and I should set "usr/local" to my OpenNI path "c:/pragram files/openni2", right? @connerbrooks
You may need to make a few more changes to match the folder structure of the binary installation, but those are present in the modified version in my gist.
I linked freenect2 to infiniTAM on linux.
tested as following image:
you are welcome to try my fix: InfiniTAM.zip
I´ve compiled it without any moddifications, how do I compile it in order to use Kinect 2 ? in Windows, not Linux.
I have the Kinect2 driver for OpenNI2, and when I run Infinitam without specifying any parameters, it launches like this:
So it somehow detects the Kinect2 as an unofficial device.
But if I try to specify it to use Kinect2 as the OpenNI device, it says "trying MS Kinect 2 device - compiled without Kinect 2 support".
What am I doing wrong ?
Also, how do I actually save the mesh (obj, ply, stl, etc.), since there are no keys defined for rendering or saving ?