Jump to content

Access VIVE Pro Cameras as Texture


pablocael

Recommended Posts

Hi,

 

is it possible to access VIVE pros webcameras as textures in Unity? I know SRWorks unity does that in a shader, and applies that to a quad that will be rendered in front os screen. Is this webcam texture (left, right or both) available from API?

 

Thanks!

Link to comment
Share on other sites

Hi pablocael,

 

you can get distorted/undistorted textures by below APIs. 

ViveSR_DualCameraImageCapture.GetDistortedTexture(out lefteye, out righteye, out frameIndex, out timeIndex, out leftpose, out rightpose);

ViveSR_DualCameraImageCapture.GetUndistortedTexture(out lefteye, out righteye, out frameIndex, out timeIndex, out leftpose, out rightpose);

 

Then, ViveSR_DualCameraImageRenderer.cs shows you how to manage that and rederder the quads of see-through.

Link to comment
Share on other sites

Thanks! Whats is the distorted texture? Its the webcam texture with radial distortion correction?

 

Another two questions:

 

1) can I disable vive pro tracking?

2) can I set projection / view matrix for vive pro displays (eye cameras)?

 

Im trying to position cameras using a pose reconstruction from a AR marker in a paper. So I need to place projection and view my self based on the reconstructed camera parameters.

 

Thanks!

 

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...