Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue May 31, 2011 11:36 pm 
Offline

Joined: Tue May 24, 2011 4:41 pm
Posts: 3
I'm using a ceiling-mounted Kinect camera to acquire 3d data and translating it into a btHeightfieldTerrainShape by updating its data every frame. The idea is to use the heightfield terrain to represent (roughly) human figures in a space and allow them to interact with other rigid body elements in the 3d simulation.

It works, sort of, but in the following video you can see that it is glitchy. The green bar rotates about a hinge constraint in its center, kind of like a propeller, and the idea is that as you walk in circles in the room, it will move with the person. Sometimes the heightfield will move it, but not reliably--especially if the contact is from the side.

Is this the best way to translate real-time 3d data into an object in bullet? Am I just doing something wrong? Anyone else used the kinect with bullet?

Here's a screen recording... I initially set it up and spin it by hand, then enter the space around 0:27
http://www.youtube.com/watch?v=SaT7UCP09Ww


Top
 Profile  
 
PostPosted: Wed Jun 01, 2011 8:26 am 
Offline

Joined: Mon May 30, 2011 8:00 am
Posts: 6
btHeightfieldTerrainShape simulates a 2D heightfield terrain


Top
 Profile  
 
PostPosted: Wed Jun 01, 2011 4:57 pm 
Offline
User avatar

Joined: Tue Jun 29, 2010 10:27 pm
Posts: 237
A real-time dynamic 3d generation is an interesting approach, however if you wanted something a little more reliable and "cheap", you could create a "user" object in your simulation ahead of time (fixed, arbitrary shape), and just tie its transform to the kinect-tracked real-world object. We've experimented with this approach in our lab with some kinda neat results so far. The transform is still jittery (would need some sort of motion-tracking smoothing/damping algorithms), but at least the shape is consistent.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group