top | item 1928267

Real time lightsaber tracking and rendering on the Kinect

86 points| RK | 15 years ago |kinecthacks.net | reply

23 comments

order
[+] mrbad101|15 years ago|reply
Wouldn't it be better if he was only holding a small 6" long stick, the kinect tracks that, and digitally adds the extended lightsaber? Maybe this was just his step 1.

It would minimize the destruction caused in your home from swinging around a 4' stick.

[+] collint|15 years ago|reply
Maybe you could use the wiimote in combination with the physical tracking to get more precise telemetry + precise physical location and AR.
[+] ent|15 years ago|reply
The full length stick works better for duels. Filming cool duels is pretty much what this thing screams to be used for. Of course to minimize damage, you could probably use something lighter than a solid wooden stick.
[+] joblessjunkie|15 years ago|reply
...if by "real time" you mean delayed by 200ms.
[+] kevingadd|15 years ago|reply
In graphics terms when someone says 'realtime' they usually are referring to the performance of the algorithm, not whether or not there's a delay. Lots of video games have input delays of 100ms or more.

The framerate is pretty bad, though. I wonder why - I was under the impression the Kinect captures at 30fps.

[+] emarcotte|15 years ago|reply
It looks like he had a CPU monitor on his panel, which also looked pegged. Could just be he needs to spend sometime optimizing cause the Kinect can certainly record faster than that.
[+] farnsworth|15 years ago|reply
Couldn't you do this with any webcam and CV? I don't see how the depth component makes it any easier.
[+] ben0x539|15 years ago|reply
> He says the next step would be to add a flying droid that shoots lasers, a blind fold, etc.

Great, once they have a blindfold the rendering delay will not even be noticable anymore. Or the rest of the rendering, really.

[+] est|15 years ago|reply
The main problem (with real time) here is that you can't move the stick too fast or Kinect will lose the tracking.
[+] jhen095|15 years ago|reply
disappointingly there is still a bit of lag in there. Though I'm sure that can be improved in time. It would be interesting to see him swing the stick around faster, see if the rendering can keep up an still track the stick when it is a blur.

Looks like fun!

[+] est|15 years ago|reply
I heard that Kinect only lags for a few frames. Perhaps the main lag is the rendering lag?
[+] DanielRibeiro|15 years ago|reply
On ubuntu. Great to see that hacking kinect is already enabling other hacks.
[+] nutjob123|15 years ago|reply
Neat but not really exciting from a technological standpoint. Then again if I was 12 this would be pretty sweet....
[+] jcfrei|15 years ago|reply
this is a potential killer application. if they manage to make the tracking fluent and accurate, everybody can finally duell other players in epic lightsaber fights. anyone who liked star wars has probably been waiting for this - let's see who gets it right first - PS3 Move, Kinect or even Wii?
[+] evo_9|15 years ago|reply
I think I have a different definition for 'real-time'.

Pretty cool though for sure.

[+] tocomment|15 years ago|reply
So how did he do that? (High level explanation is fine)
[+] sp332|15 years ago|reply
He says he's using the OpenCV library. I assume it's got the tracking and rendering functionality already in the library, and he just plugged the Kinect video and IR depth data into it. http://en.wikipedia.org/wiki/Opencv
[+] grantjgordon|15 years ago|reply
Hah! I've gotta get me a kinect for tinkering purposes...