HOME | DD

RuchiiP — Kinect to MMD tutorial UPDATED

Published: 2011-08-22 21:25:32 +0000 UTC; Views: 56675; 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 ??? [2012-11-14 14:24:51 +0000 UTC]

Well Vista and higher users need the extra SDK pack. It's in the top of the tutorial ^^

👍: 0 ⏩: 0

RighteousBlade In reply to ??? [2012-11-11 00:34:13 +0000 UTC]

Great tutorial, I finally got it working and it's amazing! Thanks for all the help!

👍: 0 ⏩: 0

RighteousBlade In reply to ??? [2012-11-10 23:54:04 +0000 UTC]

I can't find the OpenNi file that contains the Samples and NiUserTracker.exe command. I've looked over my program files several times but I still haven't found it. I downloaded the files from your link at the top where you supplied all of the files also.

👍: 0 ⏩: 2

RuchiiP In reply to RighteousBlade [2012-11-11 10:30:16 +0000 UTC]

Well it should be there. Do a search or reinstall it.

👍: 0 ⏩: 0

RighteousBlade In reply to RighteousBlade [2012-11-10 23:58:28 +0000 UTC]

Nevermind I found it

👍: 0 ⏩: 0

artlover371 In reply to ??? [2012-11-08 23:34:09 +0000 UTC]

i did all this and i'm getting a message saying, "cannot find Kinect usergenerator". i'm confused as to waht that means. any ideas?

👍: 0 ⏩: 1

RuchiiP In reply to artlover371 [2012-11-09 11:22:27 +0000 UTC]

Can be many things. You have to run everything as a admin. You always have to have the kinect in the socket and connected to the computer. And if you run on win 7 or later you need the SDK pack.

👍: 0 ⏩: 1

artlover371 In reply to RuchiiP [2012-11-09 15:22:36 +0000 UTC]

what's the SDK pack?

👍: 0 ⏩: 1

RuchiiP In reply to artlover371 [2012-11-09 16:24:17 +0000 UTC]

[link]

👍: 0 ⏩: 1

artlover371 In reply to RuchiiP [2012-11-09 16:27:39 +0000 UTC]

thank you!

👍: 0 ⏩: 1

RuchiiP In reply to artlover371 [2012-11-09 16:29:11 +0000 UTC]

No worries ^^ I like to help

👍: 0 ⏩: 1

artlover371 In reply to RuchiiP [2012-11-09 18:03:15 +0000 UTC]

sorry to bug you again, but do you know what the kinect usergenerator is?

👍: 0 ⏩: 1

RuchiiP In reply to artlover371 [2012-11-09 18:45:41 +0000 UTC]

No idea XD

👍: 0 ⏩: 1

artlover371 In reply to RuchiiP [2012-11-10 01:11:25 +0000 UTC]

oh well i'll look it up. thanks for replying though.

👍: 0 ⏩: 0

BlackCat500 In reply to ??? [2012-11-04 16:13:17 +0000 UTC]

do i need to have webcam??

👍: 0 ⏩: 1

RuchiiP In reply to BlackCat500 [2012-11-04 16:41:29 +0000 UTC]

kinect

👍: 0 ⏩: 0

laytonlover258 In reply to ??? [2012-10-20 12:24:55 +0000 UTC]

Everytime I try to run MMD Kinect, it says, "Failed to initialize Kinect"
I downloaded everything I had to, and I've got the sensor hooked up to my computer, so what went wrong?

👍: 0 ⏩: 1

RuchiiP In reply to laytonlover258 [2012-10-20 12:58:04 +0000 UTC]

Run as admin

👍: 0 ⏩: 1

laytonlover258 In reply to RuchiiP [2012-10-20 20:35:48 +0000 UTC]

1. Never mind it started working!
2. I tried that and it didn't work.

👍: 0 ⏩: 1

RuchiiP In reply to laytonlover258 [2012-10-20 20:40:26 +0000 UTC]

XD

👍: 0 ⏩: 0

Xhara-Duras In reply to ??? [2012-10-07 14:15:36 +0000 UTC]

The drivers showed up today and now my kinect works fine again ; u ;
Thank you so much for the tutorial, you're the best! ^ ^

👍: 0 ⏩: 1

RuchiiP In reply to Xhara-Duras [2012-10-08 21:01:54 +0000 UTC]

=w=b no worries

👍: 0 ⏩: 0

Xhara-Duras In reply to ??? [2012-10-02 20:02:41 +0000 UTC]

(Before asking you, i searched on google for help..but i found nothing :c
sorry for bothering you)
The kinect worked fine for me,
but suddenly the audio and camera hardware were gone D:
I uninstalled everything, but everytime i re-install it.. it only installs the kinect motor..and i don't see the audio and camera anymore (Not in the list) maybe you know what i did wrong?
I also uninstalled openni and all the other programms and did everything again, i feel so hopeless right now :c

👍: 0 ⏩: 1

RuchiiP In reply to Xhara-Duras [2012-10-02 20:09:08 +0000 UTC]

And it doesnt work in mmd?
Make sure that the kinect is connected to the socket too.

👍: 0 ⏩: 1

Xhara-Duras In reply to RuchiiP [2012-10-02 20:11:35 +0000 UTC]

It is, but mmd keeps saying it can't find the sensor - u -"

👍: 0 ⏩: 1

RuchiiP In reply to Xhara-Duras [2012-10-02 21:39:31 +0000 UTC]

You are running on windows 7?

👍: 0 ⏩: 1

Xhara-Duras In reply to RuchiiP [2012-10-02 21:41:04 +0000 UTC]

I have windows xp

👍: 0 ⏩: 1

RuchiiP In reply to Xhara-Duras [2012-10-02 21:53:34 +0000 UTC]

Hmm................ try running it as admin

👍: 0 ⏩: 1

Xhara-Duras In reply to RuchiiP [2012-10-02 22:24:32 +0000 UTC]

I don't know if you use xp as well,
but if you do,
is there any chance you know how to run it as admin?
i don't have an admin account on xp or something :c
i can only run it with my own account :C

👍: 0 ⏩: 1

RuchiiP In reply to Xhara-Duras [2012-10-03 09:04:11 +0000 UTC]

[link]

👍: 0 ⏩: 1

Xhara-Duras In reply to RuchiiP [2012-10-03 15:44:33 +0000 UTC]

Still the same error :c

👍: 0 ⏩: 1

RuchiiP In reply to Xhara-Duras [2012-10-03 15:58:26 +0000 UTC]

Then I can't help you :/

👍: 0 ⏩: 1

Xhara-Duras In reply to RuchiiP [2012-10-03 16:38:40 +0000 UTC]

Ok, then i'll try some other things,
And thank you for trying anyway~ c:

👍: 0 ⏩: 1

RuchiiP In reply to Xhara-Duras [2012-10-03 16:49:10 +0000 UTC]

Hope you the best.

👍: 0 ⏩: 1

Xhara-Duras In reply to RuchiiP [2012-10-03 16:50:12 +0000 UTC]

Thank you c:

👍: 0 ⏩: 0

Sparkling-Cirrus In reply to ??? [2012-09-08 07:05:50 +0000 UTC]

HELP
it brings up an error in my command line console.
although, it goes too fast for me to see.
i've tried to copy it down. see:
"one or more of the following nodes could not be enumerated"
and then it closes. i am TERRIBLE at manually making motion. so, help me please?

👍: 0 ⏩: 2

RuchiiP In reply to Sparkling-Cirrus [2012-09-08 18:09:40 +0000 UTC]

Have you connected the charger to the kinect?

👍: 0 ⏩: 1

Sparkling-Cirrus In reply to RuchiiP [2012-09-08 19:50:33 +0000 UTC]

Yes... it's completely plugged in and everything...

👍: 0 ⏩: 1

RuchiiP In reply to Sparkling-Cirrus [2012-09-08 20:34:15 +0000 UTC]

Then I'm sorry I cant help you :/

👍: 0 ⏩: 1

Sparkling-Cirrus In reply to RuchiiP [2012-09-08 21:44:00 +0000 UTC]

you're sure? think about the errors and try it again...

👍: 0 ⏩: 1

RuchiiP In reply to Sparkling-Cirrus [2012-09-08 22:01:04 +0000 UTC]

If its not in the tutorial for answered questions then I cannot help you.

👍: 0 ⏩: 0

Sparkling-Cirrus In reply to Sparkling-Cirrus [2012-09-08 07:40:41 +0000 UTC]

also, when i open it straight away, it says "the program cannot start because openni.dll is missing from your computer try re-installing the program to fix this", "getprocaddress: 126: the specified module could not be found", and finally, "cannot move openni. openni might be failed install."

👍: 0 ⏩: 0

Fragmented-Starr In reply to ??? [2012-09-06 02:15:38 +0000 UTC]

so do i need a 360 or no cuz my bro just sold it :/

👍: 0 ⏩: 1

RuchiiP In reply to Fragmented-Starr [2012-09-06 07:28:32 +0000 UTC]

You just need the kinect

👍: 0 ⏩: 1

Fragmented-Starr In reply to RuchiiP [2012-09-07 00:04:36 +0000 UTC]

ah ok thnx^^

👍: 0 ⏩: 0

Xan-Seyro In reply to ??? [2012-09-01 18:55:45 +0000 UTC]

Would the 00004 Unit work?

👍: 0 ⏩: 1

RuchiiP In reply to Xan-Seyro [2012-09-01 18:57:57 +0000 UTC]

No idea

👍: 0 ⏩: 1

Xan-Seyro In reply to RuchiiP [2012-09-01 18:59:11 +0000 UTC]

Well, is it the one from Kinect Adventures?

👍: 0 ⏩: 1

RuchiiP In reply to Xan-Seyro [2012-09-01 19:03:13 +0000 UTC]

Yes

👍: 0 ⏩: 0

swordsman9 In reply to ??? [2012-08-24 03:24:00 +0000 UTC]

It still gives me that error message. I did everything I was suppose to

👍: 0 ⏩: 0


<= Prev | | Next =>