1
\$\begingroup\$

I have to make a game in Unity3D using Kinect. The problem is I don't have the Kinect yet. I need to wait until they deliver it to me.

Can I imitate Kinect's movement for debugging my app?

\$\endgroup\$
3
  • \$\begingroup\$ I'd just wait, you probably won't go very far into development until you get your kinect anyway ;) \$\endgroup\$
    – user15805
    Feb 6, 2015 at 14:22
  • \$\begingroup\$ maybe, if you have kinect input data to use, also i'm very confident that if you do this and then get an actual kinect later you will run into trouble. \$\endgroup\$
    – Raxvan
    Feb 6, 2015 at 14:32
  • \$\begingroup\$ I recommend to wait, and while waiting, read the docs and code examples explaining the usage of this technology. \$\endgroup\$
    – PaulD
    Feb 6, 2015 at 17:54

2 Answers 2

3
\$\begingroup\$

The Unity plugins for the Kinect v2 (midway down the page - "Unity Pro Packages") work just fine when a Kinect is absent. You won't get any input from them obviously, but they also don't crash your game or spam the console with errors (which is more than I can say for some other plugins... ;) )

So you should be able to install the SDK and Unity plugins and start writing your code that interfaces with the Kinect while you wait for the device to arrive.

Testing the code in the meantime will be tricky. The plugins don't contain an emulation feature so far as I'm aware, so you'd have to insert your own.

For example, when making Glimpse, we made it so that the gamepad buttons could emulate the eyes closing, letting both developers test the game even though we had only one Kinect device between us.

(Some older plugins I've used in the past have an emulation built-in, but I've never used that feature so I can't say whether it's worth the grief of dealing with an out-of-date and non-official implementation. I'd lean toward sticking with the Kinect SDK v2.0 because it's so much nicer to use)

How complex your emulation code would have to be depends on what you're trying to emulate. It would be easy to add a bit of debug code to the ColorSourceManager so it always returns a particular texture, or the output of a webcam. Emulating skeletal movement would be trickier.

If you're interested in pursuing emulation and need some help, I'd recommend creating a new question, describing the exact use case you're trying to emulate and how. (eg. I'm trying to emulate a skeleton standing 1.5m away from the kinect, which moves its right hand in the direction I move my mouse)

\$\endgroup\$
1
  • \$\begingroup\$ Thank you for your advices :) For now I will make an app logic and just simulate some simple kinect cases with mouse. \$\endgroup\$
    – Koper
    Feb 6, 2015 at 19:18
5
\$\begingroup\$

Can you? Yes. Should you? No.

You won't be able to accurately test without the correct hardware. If you have it coming, you should just wait so you don't make yourself do extra work.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .