Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by gayelle85 · Jun 23, 2011 at 02:42 PM · kinect

unity + openNI + kinect : head tracking

Hello,

I have tried to move the head of my character with my own head for many hours but it doesn't work.

I use the file given by OpenNI (https://github.com/OpenNI/UnityWrapper/blob/master/UnitySampleProject/Assets/Nite.cs ) but in all videos I have seen, the head doesn't rotate. Is it possible to rotate it with openNI? What advice could you give me?

Thanks.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by psdev · Jul 05, 2011 at 12:15 AM

OpenNI and NITE doesn't currently do head rotations. It tracks the head as a blob and gives you center of mass. We are using kinect with Unity and cobbled an additional solution and are using a webcam and a tracking API for head rotations which are added to the skeleton/body positions and rotations by the kinect.

We hope to investigate the recently released Microsoft SDK to see if that is any better and it looks like it might be, but doesnt look like it gives head rotations either.

Our solution with a webcam and face tracking software (especially with the Logitech driver with Face Follow) works fine tracking the head rotations even from 3 meters away from with the webcam with the Kinect does all the heavy lifting for the body.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
-1

Answer by gayelle85 · Jun 27, 2011 at 03:43 PM

Thanks.

I have another question. I tried to move the root of my character when I crouched down. (now, it is my legs which move)

I tried this code :

void MoveBone(uint userId, NiteWrapper.SkeletonJoint joint, Transform dest)

{

     NiteWrapper.SkeletonJointTransformation trans = new NiteWrapper.SkeletonJointTransformation();
     NiteWrapper.GetJointTransformation(userId, joint, ref trans);

     Vector3 v3pos = new Vector3(trans.pos.x, trans.pos.y, -trans.pos.z);
     dest.position = (v3pos * Scale) - rootPosition;

}

(rootPosition is null for the moment)

But the scale makes me crazy, my character go out and the root moves good and if I don't use the scale, it doesn't work...

Someone could help me please?

Thanks!!

Sorry for my bad english:-(

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CvW · Jun 27, 2011 at 08:01 PM 0
Share

Please don't post questions as answers. Start a new question thread ins$$anonymous$$d. (And mark an answer as accepted if it has answered your question.) ;)

W.r.t. your question. I'm not sure what you need, the scale of the $$anonymous$$inect positions is in mm. if that helps, while 1 unit in Unity is 1 meter.

avatar image
0

Answer by CvW · Jun 23, 2011 at 03:05 PM

As far as I know OpenNI does not provide head tracking at the moment. The Neck and Head joint rotations seem to be fixed.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Head tracking for mac with Kinect 1 Answer

Unity: Wii Remote Infrared Head Tracking (Johnny Lee) 0 Answers

add force in ball when i kick the ball 2 Answers

kinect questions 0 Answers

Using 2 Kinects with skeletons 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges