pablocael Posted August 2, 2018 Share Posted August 2, 2018 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 More sharing options...
liyi_zheng Posted August 3, 2018 Share Posted August 3, 2018 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 More sharing options...
pablocael Posted August 3, 2018 Author Share Posted August 3, 2018 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 More sharing options...
pablocael Posted August 3, 2018 Author Share Posted August 3, 2018 What are distorted and undistorted textures? Are they radial distortion corrected and non radial distortion corrected images? Thanks Link to comment Share on other sites More sharing options...
liyi_zheng Posted August 4, 2018 Share Posted August 4, 2018 Yes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.