Forum Discussion
GGGGGG
11 years agoHonored Guest
Render image/video from webcam to Rift
Hi, I am new to Oculus and don't have much experience in OpenGL either. I want to render the images that captured from webcam to Rift to create a 3D environment. I have done some research and...
rwblodgett
11 years agoProtege
"GGGGGG" wrote:"rwblodgett" wrote:
Check out the Oculus SDK Samples and the Developer Guide.pdf.
Is opengl a requirement? It doesn't sound like you need OpenGL, unless you're not on Windows.
Really? No OpenGL is not a requirment, the reason why I have this idea is because I am trying to follow the Developer Guide for rendering, and it is talking about either Direct3D 11 or OpenGL.
So how should I approach the rendering without OpenGL, do you have some hints or examples on this?
Thank you for your time and help
Oh, well, you have to choose either opengl or direct3d. You don't really need to know either of these. If you follow the section on SDK distortion rendering (Section 8.2), and you already have the two images you need, one for each eye, then a lot of the work is done for you.
With the opengl context, you'll just have to create a couple of textures. glGenTextures will generate texture ids, then you bind the texture with glBindTexture, and then you allocate the memory and pass the bytes for it using glTexImage2D. You just have to supply the texture ids to the oculus.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 2 years ago
- 10 months ago