andreypdr / kinect-mssdk-openni-bridge

Automatically exported from code.google.com/p/kinect-mssdk-openni-bridge
Other
0 stars 0 forks source link

Fails to detect user in Unity Editor after scene restart #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
01. Download the Unity Editor 3.5.1 freeware from 
http://unity3d.com/unity/download/ and install
02. Download OpenNI modules from http://openni.org/Downloads/OpenNIModules.aspx
03. Install OpenNI Stable Build for Windows x86 (32-bit) v1.5.2.23 Development 
Edition
04. Install PrimeSense NITE Stable Build for Windows x86 (32-bit) v1.5.2.21 
Development Edition
05. Extract PrimeSense Unity Wrapper Stable Build v0.9.7.4 and import assets 
into an empty project of Unity Editor.
06. Download Microsoft Kinect SDK 1.0.3.190 from 
http://www.microsoft.com/en-us/kinectforwindows/develop/overview.aspx and 
install
07. Download kinect-mssdk-openni-bridge-v1.0.0.4-for-1.5.2.23.zip from 
http://code.google.com/p/kinect-mssdk-openni-bridge/downloads/list and install 
the Release version.
08. Reboot the machine.
09. Open the created project in the Unity Editor and run any scene from 
"OpenNI/Sample Scenes/" in the editor.
10. Observe users detected and tracked correctly.
11. Stop the scene and run any scene again.

What is the expected output? What do you see instead?
Expected to observe users detected and tracked again.
Received the running scene being unable to detect any user.

What version of the product are you using? On what operating system?
Product kinect-mssdk-openni-bridge-v1.0.0.4-for-1.5.2.23.zip
Operating system Windows 7 x64 (64-bit).

Please provide any additional information below.
Note that restarting any scene works correctly with "PrimeSense Sensor" drivers 
by avin2.
Is there a way I can provide more details to get this fixed?

Original issue reported on code.google.com by KoichiSe...@gmail.com on 23 Apr 2012 at 6:36

GoogleCodeExporter commented 8 years ago
If there appears a compilation error within NIInput.cs file, then methods 
GetPosition and GetRotation should be removed from it.

Original comment by KoichiSe...@gmail.com on 23 Apr 2012 at 6:42

GoogleCodeExporter commented 8 years ago
I set up a similar (but not exactly the same) Unity environment, and 
successfully started/stopped scenes with player tracking. So I am not sure what 
was the real cause of your issue. I would suggest trying the set up as I did 
(see the note below) and see how it works.

Note:
- I used Unity Editor 3.5.1f2.
- I used Zigfu's Unity-OpenNI Bindings 1.4 
(http://zigfu.com/en/downloads/legacy/) because Unity Wrapper seemed no longer 
available for download.
- I tried several scenes including Avatar*, Blockman*, CoverFlow, 
FollowHandpoint, and MeshFromDepth*, and all of them worked fine.
- To workaround the compilation errors, I needed to comment out two lines of 
the code that calls GL.SetRevertBackfacing in ReflectionFx.cs.
- To track the user, the Psi pose or the focus action was required.
- When I start the Unity Editor, I sometimes (randomly) get a "GetThreadContext 
failed" error pop up.

Thanks,
Tomoto

Original comment by tom...@gmail.com on 25 Apr 2012 at 10:54