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

Rendering Image Using OpenVR


TheLoser
 Share

Recommended Posts

Hi , 

two days ago , I wrote a post how to render image to headset using C.
and they give me a hint for solution using OpenVR to render this image .

(SRWorks C  dont support rendering image to headset ).

Can anyone give example in openVR how to render static image ( for example read jpeg image ) and render it to headset( 2D is needed) , I try so search for something very simple and did not find .

-> what we want to acheive is 
read image from VIVE and present or render it back to VIVE ( LCD or screen)  using C, between the stage of reading image  and rendering it we perfom some modfication on the image .

Link to comment
Share on other sites

OpenVR has several sample projects. In this case, you're likely wanting to work with the OpenGL sample, as OpenGL and OpenCV play very nicely. You may need to rebuild OpenCV to include native OpenGL support, as I believe the distributed OpenCV that comes with the SRWorks SDK was not built with OpenGL support.

 

If you're not already familiar with graphics programming or have not worked extensively with OpenGL or another similar specification, I'd recommend using the existing OpenVR sample application for OpenGL, and then integrating the SRWorks SDK into it, as opposed to integrating OpenVR into an existing SRWorks SDK project.

 

The SRWorks SDK in its current state is exceptionally simple and portable, and again I'd recommend taking what you need from it into another existing project/application that already has rendering down-pat.

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