Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

How to get Depth Data from SRWorks SDK?


王鹏程
 Share

Recommended Posts

Is there some usages about Depth Data in SRWorks SDK?

what's the GetDepthCallback()  function parametes  in VIVE SRWorks SDK\Vive-SRWorks-0.7.0.0\C\sample-vs2015\main.cpp means?

void GetDepthCallback(char *src_l, float *src_d, unsigned int frame_sep, unsigned int time_stp, float *pose, float *vertices, int numVert, int vertexStride, int *idx, int numIdx)

Link to comment
Share on other sites

It is able to calculate dynamic collider to use the last 5 parameters and is demonstrated in Unity only.

There are 2 files which you can refer to.

Vive-SRWorks-0.7.0.0\Unity\Plugin\Vive-SRWorks-0.7.0.0-Unity-Plugin.unitypackage\ViveSR\Scripts\ViveSR_DualCameraDepthExtra.cs

Vive-SRWorks-0.7.0.0\Unity\Plugin\Vive-SRWorks-0.7.0.0-Unity-Plugin.unitypackage\ViveSR\Scripts\ViveSR_DualCameraDepthCollider.cs

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
 Share

×
×
  • Create New...