Introduction
As you may know it, Kinect is a product manufactured by Microsoft. This leads to a lack of support for other operating systems like Linux or MacOS. But don't worry there are solutions. You first need to check the main prerequisite: - your computer.
- We are working on free, open source libraries that will enable the Kinect to be used with Windows, Linux, and Mac. The OpenKinect community consists of over 2000 members contributing their time and code to the Project. Our members have joined this Project with the mission of creating the best possible suite of applications for the Kinect.
- Download Box VR - Kinect Support apk for PC/Mac/Windows 7,8,10. Choilieng.com helps you to install any apps/games available on Google Play Store. You can download apps/games to PC desktop with Windows 7,8,10 OS, Mac OS, Chrome OS or even Ubuntu OS. You can download apk files for your phones and tablets (Samsung, Sony, HTC, LG, Blackberry, Nokia, Windows Phone and other brands such as Oppo, Xiaomi, HKphone, Skye, Huawei) right on choilieng.com. Type name of your desired app (or Google Play.
This article is intended for people who have a lot of experience in the Information Technology area, both as a developer and as systems engineer, especially on unix systems. In fact, the installation of the drivers may be a little tricky, especially if something does not go the first time.
I warn you.. there are some commands to run with the terminal, I do not take any responsibility if with these commands (or connecting the kinect) you will damage your Mac. However, if you are familiar with the shell (and unix systems) you should not have problems.
The version of Kinect that i have is sold separately from the xBox. It has the power and the USB adapter included in the package. If you have the version bundled with the latest xBox (that doesn't have the adapter with the power supply), you will need this device from the Amazon website.
I connected the Kinect to an iMac with OSX 10.7.4 64-bit. However, if you read the whole article you'll be able to adapt the installation process on different systems without much effort.
Well, now that I have described the tools used for testing, we can install and configure the software and drivers required.
Driver and SDK
Before proceeding you should know that there are several available API and SDK for Kinect. However, the two main SDK are OpenNI and OpenKinect. The first is maintained by the company PrimeSence who developed the technology behind the Kinect, OpenKinect instead is a group of people who formed a community called OpenKinect which issued the library libfreenect.
There is also the official SDK released by Microsoft, but unfortunately it only works on Windows operating systems. Shift it app mac. I willanalyzethat in thenext articles.
There is also the official SDK released by Microsoft, but unfortunately it only works on Windows operating systems. Shift it app mac. I willanalyzethat in thenext articles.
For this tutorial I used OpenNI. This is because that SDK is developed by the company that has created the technology behind the Kinect, and it comes with many examples.
I used a wrapper for Processing (a programming language based on Java) called Simple OpenNI.
I used a wrapper for Processing (a programming language based on Java) called Simple OpenNI.
Simple OpenNI is a very good project, but I had to make a number of changes to the installation process to adapt it to the version of Mac OSX that I have. All changes are listed below.
Let's start
First of all, open the page with the official procedure to install Simple OpenNI on Mac OSX clicking here. As described aboveI had toslightly changethe installation procedure. Here's how:
- I download xcode4 fromhere. Then I have installed it.
- I download theversion 2.1.2ofMacPorts(the versionthat is shown in theinstallation guide istoo old) from here. Then I have installed it.
- I downloadJavaJDK7 (forMacOSXx64) fromhere.
- I have openeda terminal andran the command: sudo port install git-core
ifthat commandreturns thefollowing error:
Unable to open port: can’t read 'build.cmd': Failed to locate ‘make’ in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
then you have to start xcode, go to Preferences -> Download and install the 'Command Line Tools', then you can try again the command sudo port install git-core. - Again fromterminalI ranthe following command: sudo port install libtool
- Finally, this: sudo port install libusb-devel +universal
ifthat commandreturns thefollowing error: Please do not install this port since it has been replaced by 'libusb' thenyou have to runthe following commands: - sudo rm -f /opt/local/lib/libusb-1.0.0.dylib
- sudo port clean libusb
- sudo port install libusb +universal
- I download OpenNI_NITE_Installer-OSX from here, I have unzipped it and then ran (inside the unzipped folder) the command sudo ./install.sh
Thiscommand will install thedriverto allowthe proper functioning ofKinect. - I download and installed processing2.0 forMac OSX from here. This is because the version 1.5.x has some problem with the latest versions of Mac OSX. We have to do few changes into the source code of the examples provided with Simple OpenNI. LaterI'll show youhow to do that.
- Now we need todownload the librarySimpleOpenNIforprocessing fromhere. I have unzipped 'SimpleOpenNI.zip'. In this way we geta folder called SimpleOpenNI. You have to copy the folder SimpleOpenNI into the directory /Users/'your username'/Documents/Processing/libraries. If you don't have this folder then create it. The result is shownin the screenshot below.
The folderSimpleOpenNIalso contains severalexamplesthat show how to usekinect, of courseall writtenin Processing.
The Code
Connect theKinectto thewall socket and to the iMac,openProcessingandasample filefrom /Users/'your username'/Documents/Processing/libraries/SimpleOpenNI/examples/OpenNI. OpentheexamplefileUser3d.pdefrom the folder User3d.
Ifwe run the code(nb: you must standat least 1.5 metersfromkinect) we shouldobtain an imagelike the one below. You can see a sort of skeleton that follows the movements of my body:
TheUser3d.pdefile(such asthosepresentin the samples folder)is well commented, if you read the code(and the comments), you can learn how to customizethe code orcreate new programs.
You have tomakesome changesto the source code before tryothersample files.You should know thatProcessing2.0,unlike earlierversions, does not import someessential libraries that oursample files need.
If you try,for example,toexecute the fileHands3d.pde you will receivethe error: Cannot find a class or type named 'Iterator', asshownin the figure below:
To solve this problemwe have to importfor the objectIterator. Iimportedthe librariesjava.io.File(I need it also for other sample files) andjava.util.Iterator. I show youa pictureof the two linesthat I put into the source code:
If you will receiveother exceptionsthenyou need to checkon the Internet(orin the official documentationof Java)which libraryyou have to import.
Another examplethat I tried (andI want recommend to you) istheSlider2d. It allows you to play with some squares on the screen usingyour hands.Belowmy test:
As I wrote before,there aremany interesting examples into the examplesfolder of SimpleOpenNI.I recommend youto try all files.
Sometimes it happensthatprocessingreturns anerror regarding kinect disconnection. In thatcase you have to disconnect and reconnect thedevice.
As already mentionedthe source code iswell commented.Thiswill allow you toedit the code according to yourneeds, you will learn to create newprograms.
That's all.Have fun!!!
Kinect for Xbox 360 How to make home screen app on macbook. is the latest buzz in the gaming world. And here is the tutorial to connect Kinect to Mac. Yes, you read that right, now you can use Kinect with your Mac. Run android apps on mac. For that you need to install the driver for Kinect compatible on Mac.
Kinect is the motion sensor camera which captures your movement and lets you play games. Kinect for Xbox 360 is undoubtedly the next big thing. So, we have got the step by step guide to connect Kinect to Mac for you:
Things You Need
To start with, we need Git and Cmake which is recommended to download and install via MacPorts or fink, or Homebrew. But if you are using Homebrew, make sure that you its latest version.
Create OpenKinect repository
Now, you are required to create an OpenKinect repository and libusb. It is very important to have OpenKinect repository on your Mac, if you are willing to connect Kinect to Mac. Here are the commands to do it:
Patch Libusb For OpenKinect
Next, you need to patch libusb for OpenKinect. https://hhvdxz.weebly.com/deleting-apps-on-mac-el-capitan.html. You can do that by executing following commands:
cd libusb
./autogen.sh
patch -p1 < ./libfreenect/platform/osx/libusb-osx-kinect.diff
./configure
make
sudo make install
Configure OpenKinect
Now you need to configure your OpenKinect. It is necessary to do it, in order to connect to Kinect to Mac. You can configure OpenKinect by executing following commands:
cd ./libfreenect/
cd c
mkdir build
cd build
ccmake .
Once you done with executing the commands, press “c”. This should actually start configuring OpenKinect, but this will not happen as the system cannot find libusb which is crucial while you try to connect your Kinect to Mac.
So, press “e”, which will exit and then you can manually edit the path to libusb, so that it can detect it. Point it as
/usr/local/include/libusb-1.0/
![Kinect apps Kinect apps](/uploads/1/3/4/2/134208372/956387242.jpg)
And now, you can continue.
Build OpenKinect
Once you done with the configuration part, you need to build the OpenKinect which actually lets you connect your Kinect to Mac. Here are the commands:
cmake .
make
You also have an option to build OpenKinect as an Xcode project. To do that, execute below commands:
![Use Use](/uploads/1/3/4/2/134208372/141724280.jpg)
cmake -G Xcode .
make
That is all. Now, you can done with all the technical part required to connect Kinect to Mac. Now, you can find the program labeled as “glview” in the path libfreenect/c/build/examples.
Windows Kinect Apps
This is how you are required to connect Kinect to Mac. Follow these steps and you can access your Kinect for Xbox 360 on your Mac too, as you have successfully installed Kinect drivers on your Mac.
Kinect Apps Windows 10
Related posts: