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

Access VIVE Pro Cameras as Texture


pablocael
 Share

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

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...