HOME | DD

RuchiiP — Kinect to MMD tutorial UPDATED

Published: 2011-08-22 21:25:32 +0000 UTC; Views: 56517; Favourites: 338; Downloads: 505
Redirect to original
Description OBBBSS!! FOLLOW THIS LINK TO DOWNLOAD ALL THE PROGRAMS AND YOU WILL BE ABLE TO SKIP TO NUMBER 2. AND READ THE WHOOOLE THING BEFORE ASKING BE QUESTIONS. THERE IS TIPS AND Q&A AT THE END OF THE TEXT!
[link]
I believe that all vista users and higher need this one to make it work [link]


---------------------------
It will work on win xp sp3 32bit (vista/7)
There are different types of Kinect
You will be needing this one↓
Kinect LPF-00006 (Unit).
→Kinect Sensor with Kinect Adventures!←
~~~~~~~~~~~~~~~~~
These following are not good↓ You need to buy it separately from xbox 360, or buy needed components.
Xbox 360 4GB Console with Kinect.
Xbox 360 250GB Console with Kinect
(I'm not sure though, I've heard you can use the usb for wi-fi to connect)
~~~~~~~~~~~~~~~~~
These are the programs you will be needing↓
OPENNI-Win32-1.0.0.23.exe →
NITE-Win32-1.3.0.17.exe →
avin2-SensorKinect-b7cd39d.zip →
MMDv7.25 →
DxOpenNI (Ver.1.10) →
Microsoft Visual Studios 2008/2010
---------------------------

1. Create a folder and name it Kinect (this is not necessary; but will make it easier to find stuff), and download these programs into the folder.

a) OpenNI – Go to [link] hover over the tab “Downloads” and choose “OpenNI Modules” (I will not give a direct link as the page is changing now and then and might make the link invalid). Go to OpenNI Binaries – Latest Unstable and download the latest “OpenNI Unstable Build for Windows x86 (32-bit) Development Edition” and not the 64-bit, even if your system is 64-bit.

b) NITE – Go back to “OpenNI Modules” and choose OpenNI Compliant Middleware Binaries. Go to Latest Unstable and download the latest PrimeSense NITE Unstable Build for Windows x86 (32-bit)Development Edition and not the 64-bit.

c) SensorKinect – Go to [link] and push the button “Downloads” on the right.

d) Latest MMD and DxOpenNI – Go to [link] and download the latest MikuMikuDance (DirectX9 Ver.) and DxOpenNI.

e) Microsoft Visual Studios 2008/2010 UPDATED* (thanks to ) – You just need to download the Microsoft Visual C++ 2008 Redistributable Package (x86) from here ( [link] ) (since it's no longer included as a "Tool" in the OpenNI program files folder in the newest releases)
(or you could even download the 2010 re-distributable package here [link] ).


f) Unzip – Unzip all the files that are zipped in your map .

2. Connect your Kinect to the computer with the usb (the charger have to be in too every time you want to use it or it wont work).

3. Go to your Device manager and find your Kinect there (look for PrimeSense). Push the > and a “under folder” named Kinect Motor will come up. Right click it and uninstall all drivers except for the Generic USB Hub. Reconnect the kinect and then push update drivers. Here it will differ depending on what OS you have. But you should choose the option to find the driver hardware on your computer. Now look for the Kinect folder that we made. Go to avin2-SensorKinect-28738dc → Platform → Win32 → Driver and push ok. It should now install the driver.

4. Now install OpenNi as normal, no need to change any settings. Later choose avin2-SensorKinect-b7cd39d → avin2-SensorKinect-b7cd39d → Bin → SensorKinect-Win32-5.0­.0.exe and install it as normal too. Now also install NITE, you will be needing the key that you saved earlier.

5. Go to your program files and choose the folder OpenNI then go to Samples → Bin → Release and execute the file NiUserTracker.exe . You should now see your room from the Kinect camera. Stand in front of it and take the standard position (the picture). You should now see the bones and it should move as you move if you have done everything correctly.

6. Now open the folder DxOpenNI that we downloaded earlier. Copy the files DxOpenNI.dll and SamplesConfig.xml and paste it into MMD's Data folder.

7. Start the program MMD (mikumikudance) and choose your lovely guinea pig ( I prefer C'mell's Rin (#^_^#)/ or a Lat model). Go to the tab “Motion Capture” and click Kinect. Stand in front of the camera and take once again the standard position. It should now recognize you and move the bones as you move. To record go to the same tab and choose capture and it will save everything you do as motion data.


KNOWN PROBLEMS

Q. I can't fit my kinect to the computer

A. As I said before you need to buy the kinect separately with the adventure pack or you need to buy a usb cable that works with kinect separately.


Q. I'm using Windows 7, and I'm getting the dreaded "InitFromXmlFile Failed: The Environment variable could not be found!/Cannot Find Kinect sensor" errors, and the NiUserTracker.exe in the OpenNI>Samples>Bin>Release directory would not run either.

A. You have to right-click the .exe and hit "Run as administrator", (I.E. Right-click MikuMikuDance.exe>Run as administrator) and then it works flawlessly!!! No errors! =3 Only downside is that you have to tell it to run as administrator every single time. x.x Or to permanently fix the "InitFromXmlFile Failed: The Environment variable could not be found!/Cannot Find Kinect sensor" Errors, and bypass using the "Right-click>Run as administrator", use the tutorial found here; ([[link] Option Four) by right-clicking the .exe, go to properties, hit the compatibility tab, and under Privilege level, check the "Run this program as an administrator". (thanks to

Q. Is there the chance that a webcam could be used?

A. No it doesn't work. MMD can only take feeds from a kinect. For now.




TIPS from


The kinect sensor itself drains a lot of power. So its advisable to not use it next to anything which drains a lot of power. Mine just kept showing just the kinect motor only. But when i turned off my air conditioning socket (it shares the same power source) and fan (using another slot from my extension socket), then the kinect camera became active once more.

Certain programs which used kinect tend to also drag along with it, the drivers for kinect, rendering the mikumikudance version unusable. My version was using the Kinect SDK 1.7. If a program messes up the system, uninstall the Kinect SDK 1.7 Driver (it installs 4 things in one go, but if drivers mess up, you only need to uninstall the driver), then do a reinstall. Reinstallation will only reinstall what is missing.

For the record, this was my order
KinectSDK1.7 >> OpenNI 1.5.4 (your link. v2 does not work, so please keep your download pack available) >> SensorKinect (unstable ver, Bin>>SensorKinect093-Bin-Win32-v4.1.2.1.msi) >> DxOpenNI

Through the course of installing, i had encountered the following problems, but have since bypassed these problems:
failed to initialize kinect >> likely due to lack of power. Use dedicated power sockets attached to no other high-power devices like airconds, water boilers, fans, etc
unable to initiate node >> likely due to KinectSDK1 instead of KinectSDK1.7 or using OpenNI2 instead of OpenNI1.5.4
Related content
Comments: 856

RuchiiP In reply to ??? [2014-05-27 15:50:45 +0000 UTC]

you mustve installed something wrong.

👍: 0 ⏩: 1

KureaUrusuta1998 In reply to RuchiiP [2014-05-27 22:53:36 +0000 UTC]

Yeah. My codec pack.......

👍: 0 ⏩: 2

RuchiiP In reply to KureaUrusuta1998 [2014-05-28 09:30:29 +0000 UTC]

Good luck ^^

👍: 0 ⏩: 0

KureaUrusuta1998 In reply to KureaUrusuta1998 [2014-05-28 07:48:22 +0000 UTC]

No. It wasn't my codec pack, it's something else. I have a windows xp.

👍: 0 ⏩: 1

KureaUrusuta1998 In reply to KureaUrusuta1998 [2014-05-28 07:51:53 +0000 UTC]

I got it to work but it won't capture motion.

👍: 0 ⏩: 0

IgikoPop In reply to ??? [2014-04-18 02:54:39 +0000 UTC]

Another issue: After I uninstalled the device driver it disappeared from the device manager help?

👍: 0 ⏩: 1

RuchiiP In reply to IgikoPop [2014-04-19 17:53:28 +0000 UTC]

it was almost 4 years ago that i wrote this things. If it isnt in the tutorial then im afraid that I dont know about it :/

👍: 0 ⏩: 0

IgikoPop In reply to ??? [2014-04-18 02:46:20 +0000 UTC]

which specific drivers are we to uninstall? (Kinect for Windows Audio Array Control, Kinect for Windows Camera, Kinect for Windows Device, Kinect for Windows Security Control)? Also, the Prime sense driver won't install (dpinst-amd64) Help?

👍: 0 ⏩: 1

RuchiiP In reply to IgikoPop [2014-04-19 17:53:00 +0000 UTC]

everything should be written out in the tutorial

👍: 0 ⏩: 0

NekoVision [2014-03-15 19:04:08 +0000 UTC]

Well, I have Windows 8, can it work?

👍: 0 ⏩: 1

RuchiiP In reply to NekoVision [2014-03-17 15:03:17 +0000 UTC]

Ive heard that it doesnt

👍: 0 ⏩: 0

papetto-manipyureta In reply to ??? [2014-02-27 03:49:22 +0000 UTC]

Two questions I have:


Does this work with the 64x version of MMD? I followed exactly all the steps on a 64x Windows 7 computer and it gave me no result.


Disappointed with the results, I tested this thing on another computer that is a 32x Vista. Everything works; but when I played back the captured motion, it plays back at an odd faster speed. Why is this?

👍: 0 ⏩: 1

RuchiiP In reply to papetto-manipyureta [2014-02-27 16:57:09 +0000 UTC]

I dont know about the mmd 64, I just know that if you have a 64 system you need to install all the programs in the tutorial in 32bit.

👍: 0 ⏩: 0

MooJoongSoo In reply to ??? [2014-02-15 23:54:31 +0000 UTC]

spanish please D:

👍: 0 ⏩: 1

RuchiiP In reply to MooJoongSoo [2014-02-16 13:36:59 +0000 UTC]

I dont speak spanish XD

👍: 0 ⏩: 1

MooJoongSoo In reply to RuchiiP [2014-02-16 16:26:42 +0000 UTC]

LOL

👍: 0 ⏩: 0

Azof-Shadowfiend [2014-01-07 00:10:35 +0000 UTC]

May I ask the question of why I must jiggle the mouse in order for it to recognize my motions (I have to stand in front of the Kinect and move the mouse at the same time) and how would I actually record the motion?

👍: 0 ⏩: 2

MoondreamofA In reply to Azof-Shadowfiend [2014-12-22 05:55:39 +0000 UTC]

if you have seen the actual test videos from yu haguchi's youtube, you'd see how he starts it up. usually he stands in place and lifts his arms, then it recognizes him.

👍: 0 ⏩: 0

RuchiiP In reply to Azof-Shadowfiend [2014-01-07 10:23:04 +0000 UTC]

I do not know why. In mine, its just going to the tab and press record. Might be with the new MMD or something :/ I havent used this in like 2 years now.

👍: 0 ⏩: 1

Azof-Shadowfiend In reply to RuchiiP [2014-01-27 18:13:10 +0000 UTC]

Well, thanks for the help, I tried using MikuMikuMoving and it worked there, so I might stick to that.


Also, sorry for the delayed response, I've been busy with school and stuff.

👍: 0 ⏩: 1

RuchiiP In reply to Azof-Shadowfiend [2014-01-27 19:14:54 +0000 UTC]

Good luck

👍: 0 ⏩: 1

Azof-Shadowfiend In reply to RuchiiP [2014-01-28 00:55:22 +0000 UTC]

Thanks.

👍: 0 ⏩: 0

beesandjam [2013-12-28 20:57:44 +0000 UTC]

If I uninstall all of the drivers (step 3) will the Kinect not work for the xbox 360 afterwards? Thank you

👍: 0 ⏩: 1

RuchiiP In reply to beesandjam [2013-12-28 21:10:08 +0000 UTC]

I do not think it will but I do not use xbox so I dont know

👍: 0 ⏩: 1

beesandjam In reply to RuchiiP [2013-12-28 22:17:27 +0000 UTC]

alrighty thank you

👍: 0 ⏩: 0

jlcr1997 In reply to ??? [2013-11-25 20:49:56 +0000 UTC]

Does it works on windows 8???

👍: 0 ⏩: 1

RuchiiP In reply to jlcr1997 [2013-11-26 15:14:50 +0000 UTC]

I dont know :/

👍: 0 ⏩: 0

veredm In reply to ??? [2013-10-21 10:24:10 +0000 UTC]

I'm a beginner with Kinect and I'm trying out a Kinect code I found online ( code.msdn.microsoft.com/window… ).
I get the following errors :

error CS0246: The type or namespace name 'KinectSensor' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'AllFramesReadyEventArgs' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'AllFramesReadyEventArgs' could not be found (are you missing a using directive or an assembly reference?)



etc...

From what I read here there is a problem with 64-bit operating systems... I have a Windows 7 64-bit operating system. Is that the problem ?

Does anyone  have any idea how to get around it ?

👍: 0 ⏩: 1

RuchiiP In reply to veredm [2013-10-21 15:53:50 +0000 UTC]

You need to install the 32 bit version of the programs and also always run as admin.

👍: 0 ⏩: 1

veredm In reply to RuchiiP [2013-10-23 07:43:39 +0000 UTC]

The Kinect SDK 1.8 is one installation that works both for 32 bit and 64 bit. And I ran it as admin ...

👍: 0 ⏩: 1

RuchiiP In reply to veredm [2013-10-24 10:05:27 +0000 UTC]

Hm.. then I unfortunately dont know what the problem is.

👍: 0 ⏩: 0

malforce32 In reply to ??? [2013-10-02 05:01:35 +0000 UTC]

SensorKinect093-Bin-Win32-v4.1.2.1.ms says openni isnt installed or rather that i need to install 1.2. something something or later. i have it installed and only give lates version. whats wrogn with it

👍: 0 ⏩: 1

RuchiiP In reply to malforce32 [2013-10-02 11:55:14 +0000 UTC]

I have no idea. Try to download my pack.

👍: 0 ⏩: 0

LorenzoAndre In reply to ??? [2013-09-23 02:13:30 +0000 UTC]

I want to have kinect.

👍: 0 ⏩: 0

KuroNekoZX In reply to ??? [2013-09-02 06:04:48 +0000 UTC]

excuse me, i have a problem, went i click in the option of kinect in the program MMD something pop up and says: can´t create any node of the requested type and went i click ok says cannot find kinect sensor o.o i have update everything...so what it´s the problem? 

👍: 0 ⏩: 1

RuchiiP In reply to KuroNekoZX [2013-09-02 11:49:42 +0000 UTC]

Did you follow all the points in the tutorial?

👍: 0 ⏩: 1

KuroNekoZX In reply to RuchiiP [2013-09-02 15:07:48 +0000 UTC]

yes, i do. 

but better if i do everything again, maybe i miss something 

👍: 0 ⏩: 1

RuchiiP In reply to KuroNekoZX [2013-09-02 16:04:45 +0000 UTC]

yes its often the installation of the drivers

👍: 0 ⏩: 1

KuroNekoZX In reply to RuchiiP [2013-09-02 17:30:53 +0000 UTC]

i´m using windows 8, i need to do something special? (i´m running as administrator) 

👍: 0 ⏩: 1

RuchiiP In reply to KuroNekoZX [2013-09-03 15:18:05 +0000 UTC]

ah yeah there is something with win 8, heard that most people cant make it work.

👍: 0 ⏩: 1

KuroNekoZX In reply to RuchiiP [2013-09-03 17:42:47 +0000 UTC]

yeah, it´s something about the drivers because the light in the kinect is flashing and it´s suppost to stay still 

👍: 0 ⏩: 0

libe99 In reply to ??? [2013-08-18 14:16:57 +0000 UTC]

can I use the kinect of black xbox?

👍: 0 ⏩: 1

RuchiiP In reply to libe99 [2013-08-18 14:44:36 +0000 UTC]

I have no idea ¨~

👍: 0 ⏩: 0

Emmma360 In reply to ??? [2013-08-04 22:02:26 +0000 UTC]

On the Device Manager my Kinect is under "other devices" and is named "Xbox NUI motor". I tried uninstalling, reconnecting and then updating the driver software (it comes up as Xbox NUI Motor again) but it comes up with this 24.media.tumblr.com/a481edeaea…


If I have the Kinect SDK software installed (that you get here www.microsoft.com/en-us/kinect… it has a completely different name, and when I try update the driver software it says something like it already has the best software for the device, so I uninstalled the Kinect SDK software.


When I had the SDK software installed, I thought that because it was "the best software" for the device, then maybe it would work. But when I got to step 5 and tried opening the NiUserTracker it would say that "openni.dll is missing"


I'm not sure if it's because I'm using Windows 8. I followed this tutorial a little over a year ago on a different laptop when I was using Windows 7, and everything worked fine, but since then that laptop has broken and I'm now on a new laptop that is Windows 8.

👍: 0 ⏩: 1

RuchiiP In reply to Emmma360 [2013-08-04 22:04:25 +0000 UTC]

It might be that its a windows 8 computer. I don't know. Remember that when you update the drivers not to search drivers but browse your own computer.

👍: 0 ⏩: 1

Emmma360 In reply to RuchiiP [2013-08-05 11:10:33 +0000 UTC]

I gave up, shut down my computer, and realised the Kinect wasn't plugged in. I'm going to try it again now, I'll let you know if it works.

👍: 0 ⏩: 1

RuchiiP In reply to Emmma360 [2013-08-05 14:59:48 +0000 UTC]

HAHA lol.. yeah.... That actually happens more often then I would like to <.< And I always say that to everyone at first... just got tired of doing it lol.

👍: 0 ⏩: 1

Emmma360 In reply to RuchiiP [2013-08-05 18:40:42 +0000 UTC]

I think I found my problem. Whenever I try update the driver it says "The hash for the file is not present in the specified catalog file" sources say if you have a 64-bit computer, 32-bit drivers won't install. My laptop is Windows 8 64-bit :/

👍: 0 ⏩: 2

veredm In reply to Emmma360 [2013-10-21 10:20:43 +0000 UTC]

I have the same problem. I'm new to Kinect and I'm trying out a code I found online and am getting the following errors :
error CS0246: The type or namespace name 'AllFramesReadyEventArgs' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'KinectSensor' could not be found (are you missing a using directive or an assembly reference?)

Could this be because I'm using a 64 bit Windows 7 operating system ?

How did you get around this ?

👍: 0 ⏩: 0

RuchiiP In reply to Emmma360 [2013-08-05 18:45:10 +0000 UTC]

awww :/

👍: 0 ⏩: 0


<= Prev | | Next =>