Jump to content

How to get Depth Data from SRWorks SDK?


王鹏程

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...