ReiiYuki / Intel-Realsense-Hand-Toolkit-Unity

Intel Realsense Toolkit for Hand tracking and Gestural Recognition on Unity3D
MIT License
85 stars 17 forks source link

Null runtime error #2

Open jBachalo opened 6 years ago

jBachalo commented 6 years ago

Hi Getting the following null error when I try and play

NullReferenceException: Object reference not set to an instance of an object DepthCameraManger.InititalizeSenseManager () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:28) DepthCameraManger.Awake () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:22)

ReiiYuki commented 6 years ago

Hi

Sorry for lately reply.

Could you provide screen shot of hierachy in Unity ?

robertofazio commented 5 years ago

Hi ReiiYuki, I have the same issue on Unity 2019.1.f1 both Windows 10 and Linux Ubuntu 18

image

image

robertofazio commented 5 years ago

with Intel RealSense D435 FW 5.11.4

ReiiYuki commented 5 years ago

Hi @robertofazio or @jBachalo , could you pull the branch called reiiyuki/fix/null-runtime and try that version of SDK ?

ps. I had fixed in #6 , but I am not sure is it work?

presentcreative commented 5 years ago

Hello. I get the same bug listed here when I try the master branch. Im using Unity 2019.8 and have the D415.

what do you mean by "try that version of the SDK" for using the other branch? When I try the alternate branch I get the error

"Assets\IRToolkit\Scripts\DepthCameraManger.cs(31,24): error CS0103: The name 'sesssion' does not exist in the current context"

ReiiYuki commented 5 years ago

Hello. I get the same bug listed here when I try the master branch. Im using Unity 2019.8 and have the D415.

what do you mean by "try that version of the SDK" for using the other branch? When I try the alternate branch I get the error

"Assets\IRToolkit\Scripts\DepthCameraManger.cs(31,24): error CS0103: The name 'sesssion' does not exist in the current context"

Ah that's my mistake.

I fixed it, could you try it again from the same branch?

robertofazio commented 5 years ago

Hi, I've pulled the brach you mentioned but I got this issue

Exception: Session Initialize Failure! DepthCameraManger.InititalizeSenseManager () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:30) DepthCameraManger.Awake () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:22)

presentcreative commented 5 years ago

well, the first bug I get is this one:

Assets\IRToolkit\Scripts\DepthCameraManger.cs(28,51): error CS1002: ; expected

That was there yesterday too but I had fixed it and forgot to mention. Then when I fix that I get:

Exception: Session Initialize Failure!
DepthCameraManger.InititalizeSenseManager () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:30)
DepthCameraManger.Awake () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:22)

The app is running but the camera never turns on.

Unity 2019.1.8 Realsense: D415 Windows 10

ReiiYuki commented 5 years ago

I think it might be some problem with camera connectivity or driver.

Could you try run you camera with Intel Software or another application, does it work or not?

robertofazio commented 5 years ago

I have a RealSense D435 Unity 2019.1 Windows 10 The camera works fine

presentcreative commented 5 years ago

I am able to successfully run the Keijiro Unity + Realsense project here: https://github.com/keijiro/Rsvfx

I did notice that when I pull your branch it says it was last opened on an older version of Unity. Can you confirm it works with the current version?

ReiiYuki commented 5 years ago

Oh I checked that. I'm sorry to say that this toolkit is work with REALSENSE SDK 1.x only, however D4xx is not compatible with SDK 1.0 that why SDK can't detect the camera.

Please try SDK2.0 https://software.intel.com/en-us/realsense/sdk .

However I don't have D4xx camera series so I can't make this toolkit support SDK2.0 😭

presentcreative commented 5 years ago

I was also able to download and run this project: https://github.com/IntelRealSense/librealsense/tree/master/wrappers/unity

presentcreative commented 5 years ago

@ReiiYuki would it be helpful if I posted test .bag data from a D415?