HOME | DD

RuchiiP — Kinect to MMD tutorial UPDATED

Published: 2011-08-22 21:25:32 +0000 UTC; Views: 56519; 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

LuxSomnium In reply to ??? [2013-01-02 20:27:41 +0000 UTC]

It's ok, I got it ^^

👍: 0 ⏩: 0

YumiRosa In reply to ??? [2012-12-20 14:43:36 +0000 UTC]

Hi^^ I followed all the steps and when I open MMD I can't find the “Motion Capture” tab.
Help please?I remember the older versions have it...but I don't think the new one doesn't...
I think I have 7.39.

👍: 0 ⏩: 1

RuchiiP In reply to YumiRosa [2012-12-20 14:53:20 +0000 UTC]

Well it should be in the newest one.

👍: 0 ⏩: 1

YumiRosa In reply to RuchiiP [2012-12-20 15:08:08 +0000 UTC]

I have it but there's no “Motion Capture” tab

👍: 0 ⏩: 1

RuchiiP In reply to YumiRosa [2012-12-20 15:09:02 +0000 UTC]

have you added the mmd hacks?

👍: 0 ⏩: 1

YumiRosa In reply to RuchiiP [2012-12-20 15:11:09 +0000 UTC]

You mean where I go add the files to the mmd data folder right?
If so, yes.

👍: 0 ⏩: 1

RuchiiP In reply to YumiRosa [2012-12-20 15:12:18 +0000 UTC]

You've added all of them? Mogg's too?

👍: 0 ⏩: 1

YumiRosa In reply to RuchiiP [2012-12-20 15:13:20 +0000 UTC]

Yeah.

👍: 0 ⏩: 1

RuchiiP In reply to YumiRosa [2012-12-20 15:15:50 +0000 UTC]

Then I rly don't know what might be the problem.

👍: 0 ⏩: 1

YumiRosa In reply to RuchiiP [2012-12-20 15:18:56 +0000 UTC]

okay, thanks anyway. (:

👍: 0 ⏩: 0

therealdorutza In reply to ??? [2012-12-16 12:22:13 +0000 UTC]

question : when I select "kinect", from MMDm it tells me that "InitFromXmlFile failed : Can't create any node of the requested type! " -> ok -> " Cannot find Kinect Sensor ".

what should I do now? [i runned MMD as an admin too.]

👍: 0 ⏩: 1

RuchiiP In reply to therealdorutza [2012-12-16 13:55:43 +0000 UTC]

And if you have win 7 you do have the SDK pack? And remember to always check the most obvious things. That the kinect is properly connected to the computer and to the socket.

👍: 0 ⏩: 1

therealdorutza In reply to RuchiiP [2012-12-16 16:14:06 +0000 UTC]

windows 8 with SDK pack. and kinect is connected to pc and to the socket. [the green light is blinking].

👍: 0 ⏩: 1

RuchiiP In reply to therealdorutza [2012-12-16 16:22:25 +0000 UTC]

And everything is installed right.. and you ran it as admin... hmm..... when you ran the program to see yourself... did you see yourself and did the kinect calibrate a skeleton?

👍: 0 ⏩: 1

therealdorutza In reply to RuchiiP [2012-12-16 16:34:44 +0000 UTC]

umm, nope. :/

👍: 0 ⏩: 1

RuchiiP In reply to therealdorutza [2012-12-16 16:43:45 +0000 UTC]

Well yeah then you installed something wrong XD Might be the drivers on the kinect. That happens to some people that it overinstalls itself again.

👍: 0 ⏩: 1

therealdorutza In reply to RuchiiP [2012-12-16 17:24:44 +0000 UTC]

And how should I fix this thing? :33

👍: 0 ⏩: 1

RuchiiP In reply to therealdorutza [2012-12-16 17:27:26 +0000 UTC]

That I dont know XD

👍: 0 ⏩: 1

therealdorutza In reply to RuchiiP [2012-12-16 17:29:16 +0000 UTC]

Oh. . Thanks anyway :33.

👍: 0 ⏩: 1

RuchiiP In reply to therealdorutza [2012-12-16 17:32:59 +0000 UTC]

No worries

👍: 0 ⏩: 1

therealdorutza In reply to RuchiiP [2012-12-16 17:44:11 +0000 UTC]

one more question. XDD my computer runs on x64. should I use the openNI files on x32 or x64? Stable or unstable? XD

👍: 0 ⏩: 1

RuchiiP In reply to therealdorutza [2012-12-16 17:48:46 +0000 UTC]

AHA! I think I might know something that can help you. Try downloading my pack and use that

👍: 0 ⏩: 1

therealdorutza In reply to RuchiiP [2012-12-16 17:49:51 +0000 UTC]

-hopes that it'll work- XDD

👍: 0 ⏩: 1

RuchiiP In reply to therealdorutza [2012-12-16 17:51:33 +0000 UTC]

I hope the best for you =w=b

👍: 0 ⏩: 1

therealdorutza In reply to RuchiiP [2012-12-18 22:39:59 +0000 UTC]

Lol I found the problem : visual studio wasn't installed xD. Let's hope that this time it'll work -_-

👍: 0 ⏩: 0

Shin001 In reply to ??? [2012-12-14 15:55:34 +0000 UTC]

So in short... You need to buy a stand alone kinect pack, and does that mean, you cannot use the one that comes from the XBOX? or will a usb cable will do the trick?

👍: 0 ⏩: 1

RuchiiP In reply to Shin001 [2012-12-14 16:55:57 +0000 UTC]

If you bought it with the Xbox you will a extra usb cable yes. You can buy it at the same stores that sell the consoles

👍: 0 ⏩: 1

Shin001 In reply to RuchiiP [2012-12-14 17:02:50 +0000 UTC]

OH THANK GOD! So, I can use an adapter/usb connector to my laptop right?

THANK GOD! -HOPES RISEN UP-

👍: 0 ⏩: 1

RuchiiP In reply to Shin001 [2012-12-14 20:33:16 +0000 UTC]

Well its a special cable XD

👍: 0 ⏩: 1

Shin001 In reply to RuchiiP [2012-12-14 23:31:18 +0000 UTC]

hearing the word special scares me~

leading me to think, it might be an out of this world cable.

👍: 0 ⏩: 1

RuchiiP In reply to Shin001 [2012-12-14 23:49:55 +0000 UTC]

*flying cable* ohohohohooonn what are you talking about ?

👍: 0 ⏩: 0

Livanna-Avril-Maria In reply to ??? [2012-12-11 02:50:59 +0000 UTC]

umm can you help???? [link]

👍: 0 ⏩: 1

RuchiiP In reply to Livanna-Avril-Maria [2012-12-11 11:09:40 +0000 UTC]

Well always run the program as admin. If you have win 7 or newer you will need the SDK pack.

👍: 0 ⏩: 1

Livanna-Avril-Maria In reply to RuchiiP [2012-12-11 11:19:24 +0000 UTC]

i downloaded everything

👍: 0 ⏩: 1

RuchiiP In reply to Livanna-Avril-Maria [2012-12-12 12:12:54 +0000 UTC]

hm...... I rly don't know then.

👍: 0 ⏩: 1

Livanna-Avril-Maria In reply to RuchiiP [2012-12-14 13:10:03 +0000 UTC]

how do you make it an admin

👍: 0 ⏩: 1

RuchiiP In reply to Livanna-Avril-Maria [2012-12-14 16:56:18 +0000 UTC]

You right click it and push "Run as admin"

👍: 0 ⏩: 0

chzchan3 In reply to ??? [2012-11-28 02:52:18 +0000 UTC]

How do I get wrists, neck and such to work?

I have everything (mogg, .NET, etc.) installed and the kinect is working fine.

It still doesn't pick up those motions, though.

What do you propose I do?

👍: 0 ⏩: 1

RuchiiP In reply to chzchan3 [2012-11-28 12:35:48 +0000 UTC]

You need the program that can be found on mogg's site. And there click the options to have wrists and necks too

👍: 0 ⏩: 1

chzchan3 In reply to RuchiiP [2012-11-29 00:54:57 +0000 UTC]

I did that and I am pretty sure I installed everything correctly.

Can you give some more in depth steps if possible?

I've installed mogg and everything else involving MMD and the Kinect countless times and I still cannot get the movements enabled by mogg to work.

👍: 0 ⏩: 1

RuchiiP In reply to chzchan3 [2012-11-29 00:56:43 +0000 UTC]

Well the only thing I can think of is to always stand in a wide and well lit place.

👍: 0 ⏩: 1

chzchan3 In reply to RuchiiP [2012-11-29 01:15:37 +0000 UTC]

Are there any configurations that need to be messed with in mogg's DxOpenNI?

👍: 0 ⏩: 1

RuchiiP In reply to chzchan3 [2012-11-29 11:25:02 +0000 UTC]

Not that I know of

👍: 0 ⏩: 0

NobleChinchi In reply to ??? [2012-11-25 00:19:10 +0000 UTC]

AWESOME!! Thanks so much 8D I got it to work yet I have one question. Should It be moving the bones of my fingers? D8 if so then it doesn't let me, if it's normal that it doesn't do it than nevermind, thanks 8D

👍: 0 ⏩: 1

RuchiiP In reply to NobleChinchi [2012-11-25 01:06:36 +0000 UTC]

No worries And no the fingers are not moveable but the wrists are with the mogg add on.

👍: 0 ⏩: 1

NobleChinchi In reply to RuchiiP [2012-11-25 03:43:31 +0000 UTC]

awesome 8D THanks that's great to know~!

👍: 0 ⏩: 1

RuchiiP In reply to NobleChinchi [2012-11-25 09:57:19 +0000 UTC]

No worries

👍: 0 ⏩: 0

artlover371 In reply to ??? [2012-11-14 20:03:32 +0000 UTC]

finally got it working!

👍: 0 ⏩: 0

artlover371 In reply to ??? [2012-11-14 19:41:32 +0000 UTC]

i think i know what i'm missing now thanks for your help

👍: 0 ⏩: 0

artlover371 In reply to ??? [2012-11-14 14:14:30 +0000 UTC]

running NiUserTracker.exe as admin and is still not running. Did I miss something in the tutorial or something? Hopefully this will be the last time I bug you. Sorry for doing it so much.

👍: 0 ⏩: 1


<= Prev | | Next =>