Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Stooq now requires an API key
by VHX. 06/08/26 20:14
ZorroGPT
by TipmyPip. 06/06/26 12:36
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
XTB
by pr0logic. 05/18/26 12:27
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 2,372 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Need help to control a ragdoll with Microsofts Kinect!!!!! #384908
10/10/11 09:11
10/10/11 09:11
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
Hi guys,
i was playing a bit with Microsofts kinect and wrote a DLL library that provides me X,Y,Z positions of the joints to the the 3DGS. So far so good. Now i d like to use this points somehow to control, in realtime, a model in the 3DGS engine. the problem is i dont know how to get from joint positions to angles for bone rotation angles.If someone has an idea please let me know it. laugh

thanks in advance

Last edited by pjotr987; 10/11/11 10:41.
Re: Need help to control a ragdoll with Microsofts Kinect!!!!! [Re: pjotr987] #388300
11/30/11 21:53
11/30/11 21:53
Joined: Jul 2008
Posts: 7
B
Beorn_2 Offline
Newbie
Beorn_2  Offline
Newbie
B

Joined: Jul 2008
Posts: 7
Hi Piotr,

Can´t help you with that right off the bat (but i think you should be able to calculate the angles if you get all the readings correctly, i can ask my math friend in a cpl o days...)

But i wonder how you managed to get the values into 3DGS. Would very much appreciate some info, or possibly the dll itself ?
I could pay a little something for it if it works well.

Best

/B

Re: Need help to control a ragdoll with Microsofts Kinect!!!!! [Re: Beorn_2] #388323
12/01/11 09:16
12/01/11 09:16
Joined: May 2010
Posts: 117
Germany , Dortmund
B
Bone Offline
Member
Bone  Offline
Member
B

Joined: May 2010
Posts: 117
Germany , Dortmund
Maybe its something like that:

Code:
atan ( (y2 - y1) / (x2 - x1) )



Where x2,y2 is, for example, the left elbow position
and x1,y1 is the left shoulder so when you use this
above you should get a / (the tilt?) angle for the left shoulder.

I have also tried to use Kinect with 3dgs but with OpenNi.
That doesnt work very well because I wrote the angles in a textfile and
read it in Gamestudio.

I hope you share your dll with us.

You should take a look into the trigometry section in
the 3dgs manual or search the web for trigometry wink

Re: Need help to control a ragdoll with Microsofts Kinect!!!!! [Re: Bone] #388330
12/01/11 11:49
12/01/11 11:49
Joined: Jul 2008
Posts: 7
B
Beorn_2 Offline
Newbie
Beorn_2  Offline
Newbie
B

Joined: Jul 2008
Posts: 7
Bone,

Why didn´t it work very well with OpenNI (i'm looking at that solution now.)
Did you get bad data or was it too slow?

Would you also care to explain how you set that up (With open NI)?

/B

Re: Need help to control a ragdoll with Microsofts Kinect!!!!! [Re: Beorn_2] #388360
12/01/11 19:45
12/01/11 19:45
Joined: May 2010
Posts: 117
Germany , Dortmund
B
Bone Offline
Member
Bone  Offline
Member
B

Joined: May 2010
Posts: 117
Germany , Dortmund
OpenNi works great,
my try was bad.
I wrote a little c program which write the data from openni
in textfiles.
Then i wrote a lite-c script which reads the data from the
textfiles and set the bones rotation.
It was very slow ...

I dont know how to write a header for openni in lite-c or how I can create
a dll with the needed functions.

openni works fine.
I tested it with ogre but I dont like ogre

I want to use kinect with gs mad laugh

Re: Need help to control a ragdoll with Microsofts Kinect!!!!! [Re: Bone] #388380
12/02/11 00:07
12/02/11 00:07
Joined: Jul 2008
Posts: 7
B
Beorn_2 Offline
Newbie
Beorn_2  Offline
Newbie
B

Joined: Jul 2008
Posts: 7
Thanks Bone,
Im working on a solution using the kinect sdk and communicating the values via tcp Socket. We got int working in flash atm and i didn´t realise that the socket commands in 3dGs were exclusive for A8 professional so i am currently looking at ANET instead. But it´s a little to complicated for my skills.

SO, PIOTR Please enlighten us on how you got the values into 3DGS laugh

/B

Re: Need help to control a ragdoll with Microsofts Kinect!!!!! [Re: Beorn_2] #392231
01/20/12 14:47
01/20/12 14:47
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
hi guys, sorry for long absence. i am using the MSN SDK to implement the kinect into 3dGS. the bone position data is provided fast to the engine. since i am writing my phd thesis this project is now frozen. i have to find a way to calculate the bone positions into angle changes since SDK doesnt provide angles. i ll upload a ready to use demo project next days.


Moderated by  TWO 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1