Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,962 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Need hepl for controling a model with kinect device #385126
10/13/11 10:39
10/13/11 10:39
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
Halo people,
i receive the x,y,z positions of the body joints from Microsoft kinect device. my problem is how to use them to control a ragdoll? it would be nice if someone coul give me a hind how to proceed to control in realtime a model according to my movements. all my trials till now failed. so i need a bit help laugh
thanks in advance to all who tries laugh

Re: Need hepl for controling a model with kinect device [Re: pjotr987] #385134
10/13/11 11:51
10/13/11 11:51
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
using the bones position you can calculate the bone angles and then use ent_bonerotate


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Need hepl for controling a model with kinect device [Re: painkiller] #385192
10/14/11 14:41
10/14/11 14:41
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
Halo together,
somehow i stucked with this kinect thing. I just get weird bone rotations while data input from the device. here is the code i use to rotate the shoulder

vec_for_bone(bone_pos, my, "SHOULDER_LEFT");// SHOULDER_LEFT =models left shoulder//
vec_set(local_target_pos,lshoulder);// lshoulder= 3d position X,Y,Z (not rotation!!) of actors left shoulder given from kinect//

vec_to_ent(local_target_pos, my);
vec_to_angle(bone_angle, local_target_pos);
bone_angle.roll = 0;
ent_bonerotate(my, "SHOULDER_LEFT", bone_angle);

What is wrong?? i hope someone can help me to solve this problem
thanks in advance to every one

Re: Need hepl for controling a model with kinect device [Re: pjotr987] #385193
10/14/11 15:34
10/14/11 15:34
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
it's difficult to see what the problem is other than 'weird', try resetting the bone position before recalculating it?
ent_bonereset();

Re: Need hepl for controling a model with kinect device [Re: MrGuest] #385198
10/14/11 17:06
10/14/11 17:06
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline
Senior Member
Roel  Offline
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
From what I understand, you want to moves the bones to a xyz position, is that right?

A while ago some implemented ragdolls into gamestudio,
and in his script he's written a function that moves a bone to a position:

a few posts down there is a download link for the A8 version Post

I hope this helps!

Re: Need hepl for controling a model with kinect device [Re: pjotr987] #406878
08/31/12 16:45
08/31/12 16:45
Joined: Aug 2012
Posts: 8
B
bijanjoon Offline
Newbie
bijanjoon  Offline
Newbie
B

Joined: Aug 2012
Posts: 8
hi dier friend
how to import joint postions to 3dgs?
thanks


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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