ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.13k stars 1.28k forks source link

Could openvr show a panoramic image? #427

Open uu4183297 opened 7 years ago

uu4183297 commented 7 years ago

I use htc vive. I have a camera which produces real-time panoramic sequence image. Can I show a panoramic image in the htc vive by openvr api?

zao commented 7 years ago

OpenVR requires you to pass data with some 3D API as two textures that represent each eye. You can query the head pose from the API to figure out where the player and their eyes are in the scene.

You would typically make a traditional 3D visualisation of your panorama and use the camera and projection matrices to draw the scene for each eye.