Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

How to deal with jumping values from Kinect Rotations

Discuss graphics hardware, computer hardware, and input/output devices to use with TouchDesigner

How to deal with jumping values from Kinect Rotations

Postby petkotanchev » Tue Jul 16, 2019 6:58 am

Hi,

trying to feed a rigged character with Kinect 2 data but the rotation values coming from the device are jumping randomly from 180 to -180 or from 0.something to 180 and -180. Happens most often when I don't move at all, just standing in front of the kinect.

That really break things up, especially looking at the forearms data which is important in my case.

Do you guys found a way to deal with those jumps?
petkotanchev
 
Posts: 90
Joined: Thu Jul 12, 2012 8:08 am

Re: How to deal with jumping values from Kinect Rotations

Postby thepelkus » Tue Jul 16, 2019 9:47 pm

First inclination would be a Lag CHOP? Maybe toodle with the max slope?
thepelkus
 
Posts: 4
Joined: Sun Mar 12, 2017 7:45 pm

Re: How to deal with jumping values from Kinect Rotations

Postby petkotanchev » Wed Jul 17, 2019 5:21 am

Hm but how do you think it will prevent the jumps which are breaking the bones? It will just interpolate them, no? So it will occur in slower and more visible breaking...
petkotanchev
 
Posts: 90
Joined: Thu Jul 12, 2012 8:08 am

Re: How to deal with jumping values from Kinect Rotations

Postby thepelkus » Wed Jul 17, 2019 5:23 pm

That's part of the magic of the Lag OP! You can tell it that data can only change so fast, which can be great for smoothing things like this. You *do* run the risk, of course, of oversmoothing data that you want to be sharper at times, so you'll have to play with it and see what works for you. And again, it may not be the right solution, but I made a demo of how you can use it to smooth this kind of data; check out the trail OPs on the right side of the project space in the attached example file to see how lag can smooth sharply changing data.

Anyway, just one thought. Post back here if you figure out something that works well for you!
Attachments
lag_demo.toe
(3.88 KiB) Downloaded 48 times
thepelkus
 
Posts: 4
Joined: Sun Mar 12, 2017 7:45 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 3 guests