Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 fil · Nov 27, 2012 at 04:18 PM · wrapper

kinect wrapper package: Depth/Color image

hi, I'm using Kinect Wrapper package (http://wiki.etc.cmu.edu/unity3d/index.php/Microsoft_Kinect_-_Microsoft_SDK) and I can't use DisplayDepth or DisplayColor scripts. When I attach DisplayDepth.cs to a cube or a plane it gives me this error:

 IndexOutOfRangeException: Array index is out of range.
 DepthWrapper.processDepth () (at Assets/Kinect/DepthWrapper.cs:136)
 DepthWrapper.pollDepth () (at Assets/Kinect/DepthWrapper.cs:103)
 DisplayDepth.Update () (at Assets/Kinect/DisplayDepth.cs:18)

Anyone knows how to do that? 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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by markpdolby · Nov 27, 2012 at 04:22 PM

Try replacing all of your Kinect files in the Unity project with the ones I have attached to this post. They come from an updated version of the package they did here: http://wiki.etc.cmu.edu/unity3d/index.php/OpenCV_with_Kinect_-_Windows_SDK

Kinect zip


kinect.zip (69.1 kB)
Comment
Add comment · Show 4 · 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 fil · Nov 27, 2012 at 04:55 PM 0
Share

hi, thanks for reply :) with your files, it have an "using OpenCvSharp;" but there's no OpenCvSharp. It's really necessary? I have been working with wrapper package and i made a lot of changes on those files to replace it all now. is there a way to replace just the depth script?

avatar image markpdolby · Nov 28, 2012 at 10:11 AM 0
Share

Sorry I forgot to remove those bits, yeah you don't need any OpenCV stuff so you can remove all of that. You can just replace the depth wrapper and the display depth scripts and then merge the $$anonymous$$inectSensor script with your current version (Back up your project first just incase), in the new $$anonymous$$inectSensor script the method polldepth() is different along with a few other things so I would just suggest extracting them out and merging them into your current files.

avatar image fil · Nov 29, 2012 at 10:24 AM 0
Share

but if I remove "using OpenCV" I get errors because the script uses methods from OpenCV :/ if you can explain it better I'd appreciate thanks

avatar image Jiraboas · Apr 11, 2013 at 09:31 AM 0
Share

I do have the same problem! Searched 2 days now in the internet for a solution. But it dont worked! Could someone explane how to get this to work? thanks!

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

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

ClickOnKinect 1 Answer

Attaching GameObjects to Classes or Attaching Scripts to GameObjects 1 Answer

Objective c API to use in Unity3d (retaining the object-orientation) 1 Answer

Add UIView to any Unity UI element (or maybe just to Transform) via some tricky wrapper? 0 Answers

Kinect wrapper, character floats and can't bend 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