Jump to content

Use Depth Image to Occlude Virtual Objects in Unity


Recommended Posts

Hi there! I am trying to run https://github.com/ViveSoftware/ViveSRWorksHand with Unity 2018.2.16f1 and SRWorks v0.8.0.2. At runtime it throws


NullReferenceException: Object reference not set to an instance of an object
Vive.Plugin.SR.ViveSR_DualCameraImageCapture.GetDepthTexture (UnityEngine.Texture2D& imageDepth, System.Int32& frameIndex, System.Int32& timeIndex, UnityEngine.Matrix4x4& pose) (at Assets/ViveSR/Scripts/ViveSR_DualCameraImageCapture.cs:364)
Vive.Plugin.SR.ViveSR_DepthWarp.Start () (at Assets/ViveSR/Scripts/ViveSR_DepthWarp.cs:44)


Can somebody tell me what I have to do to solve it?



  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...