Login | Register 
Products Applications Downloads Features Wiki forum Store
 

kinect integration

Helpful techniques for working with TouchDesigner. Answers only, no questions.

Re: kinect integration

Postby rodberry » Sat May 12, 2012 7:31 pm

Attachments
kinect_imagespace.13.PAINT_two_player.12.toe
(12.69 KiB) Downloaded 92 times
Last edited by rodberry on Mon Feb 18, 2013 5:31 am, edited 2 times in total.
User avatar
rodberry
 
Posts: 905
Joined: Wed Nov 14, 2007 1:51 pm
Location: Hobart, Tasmania, Australia

Re: kinect integration

Postby rodberry » Mon May 14, 2012 7:28 pm

in the above .toe, kinect_imagespace.13.PAINT_two_player.12.toe , there are a bunch of operators in /project1/p1 colored blue that I want to ask people about to see if there's a better way to do it...

the channels from the kinect have names like p1/hand_r:tx p1/hand_r:ty etc. then also some p1_hand_l_tracked and p1:ty

For the component, I want to make each instance the same inside so p2 can be a clone of p1.

So, I need to strip out the p1/ or p2: or p2_ from the channel name. I'm also replacing the last ':' with an underscore for tidiness.
so far, I'm converting to DATs then using a chain of evaluate DATs to clean things up.

This makes it quite readable but I'm wondering if there's a more efficient way to do it to do it all in one hit, say, by using an expression in a rename CHOP for example?
User avatar
rodberry
 
Posts: 905
Joined: Wed Nov 14, 2007 1:51 pm
Location: Hobart, Tasmania, Australia

Re: kinect integration

Postby rodberry » Mon May 14, 2012 7:36 pm

... also, I notice that, periodically, /project1/p1/chopto1 glitches to add a second row.

any idea what's causing that? I'm using select3 to get rid of it but it might be a bug when converting hundreds of channels? I don't see anything in the chop that inputs the chopto DAT

thanks,

Rod.
User avatar
rodberry
 
Posts: 905
Joined: Wed Nov 14, 2007 1:51 pm
Location: Hobart, Tasmania, Australia

Re: kinect integration

Postby ebkc » Wed May 16, 2012 9:30 am

argh !

I first bough a second hand kinect ... realise there is no USB connector so I get the adaptor to now realise xbox360 wont work on TD !...

no solution really ? pm :)

cheers
ebkc
 
Posts: 14
Joined: Tue Apr 10, 2012 6:38 pm

Re: kinect integration

Postby malcolm » Wed May 16, 2012 10:05 am

Unfortunately no, the Kinect SDK only works with the Kinect For Windows device.
User avatar
malcolm
Staff
 
Posts: 2184
Joined: Tue Nov 13, 2007 12:11 am

Re: kinect integration

Postby rodberry » Wed May 16, 2012 4:22 pm

@ebkc :)

The xbox kinect has slightly different hardware and firmware and won't work with the k4w SDK and runtime that's used for Touch's support of the kinect.

I bought the new one and it's really great. I will sell off my old xbox one while there are Mac and linux folk still happy to get one secondhand. :)

If you know students or teachers in the USA, they can get the k4w unit half price.

however, there are a few ways to get the xbox one going with Touch.

1. If you have touch FTE commecrcial or Pro (needed for the shared-memory capability), there is some rough software that will feed the kinect's depth image in via shared memory, just search the touch forums to find it.

2. to just get the skeleton data via OSC messages, look for something called OSCkeleton via google.

3. if you hunt around for alternative windows drivers for the kinect, there are example applications that display the camera and depth map on the screen. you can use TouchDesigner's screengrab TOP to bring it into Touch as long as you have it open in a window somewhere. It's fugly but it works. :)

Generally, I reckon it's worth saving time to just pony up the cash and buy the new one, especially if you are or know a student or teacher in the USA.

Rod.
User avatar
rodberry
 
Posts: 905
Joined: Wed Nov 14, 2007 1:51 pm
Location: Hobart, Tasmania, Australia

Re: kinect integration

Postby ebkc » Wed May 16, 2012 5:21 pm

well I guess I just really wanted it to make use only of the skeleton (and I already use Pure Data to send signals to TD via other comuter on network to avoid to much chops on my machine. But I'm sure they are tons of other applications i'll be missing, thanks a lot for you post though ! very instructive
ebkc
 
Posts: 14
Joined: Tue Apr 10, 2012 6:38 pm

Re: kinect integration

Postby Kreative » Fri May 25, 2012 9:42 am

Any news on the compability of the new features of the Microsoft SDK 1.5?
Kreative
 
Posts: 8
Joined: Mon Mar 26, 2012 2:25 pm

Re: kinect integration

Postby rodberry » Fri May 25, 2012 4:15 pm

m$oft are saying that the 1.5 one is backwards compatible so it 'should' be safe to install and still use the 1.0=based touch stuff. however, I guess checking for a definitive answer from Malcolm et al would be safest.

I assume the new features won't be available until Touch gets updated for them.

new features look cool though. I'm looking forward to exploring close-range skeletal tracking - especially because current;y, debugging is a pain in the butt because I have to get up and leap around the room to see if it's working. :)

Rod.
User avatar
rodberry
 
Posts: 905
Joined: Wed Nov 14, 2007 1:51 pm
Location: Hobart, Tasmania, Australia

Re: kinect integration

Postby ruigato » Fri May 25, 2012 4:41 pm

ahah so true, i'm still struggling with the record CHOP, it seems to get its contents erased when copy/pasted from on network to another...

i'm working on a theater play and we are using two kinects. right now the only way to use skel data on both is to make independent touch processes for each, and stream the skel data to a third process. Maybe the new sdk will allow two kinect skel data working in the same network?

and i'm still struggling with the USB connections for keeping both kinects working, it seems a bit random the way that windows handles the USB hub assignment. sometimes the only way to get both working is a restart!
User avatar
ruigato
 
Posts: 41
Joined: Mon Dec 12, 2011 10:42 am
Location: Portugal

PreviousNext

Return to Techniques

Who is online

Users browsing this forum: No registered users and 1 guest