Forum Discussion
FOKSlab
8 years agoExplorer
Submit 2 GL_RGBA OpenGL textures without calling the ovr_CreateTextureSwapChainGL method ?
Hi, I would like to implement Oculus rendering in my OpenGL app which is already providing stereoscopic rendering. The stereo views are already stored in GL_RGBA textures. I was wondering if there i...
FOKSlab
8 years agoExplorer
So ... Here is my feedbacks : blitting one texture to another seems to work well doing the conversion job (only without calling glEnable(GL_FRAMEBUFFER_SRGB) ).
I had issues using ovr_GetTextureSwapChainCurrentIndex and then ovr_GetTextureSwapChainBufferGL. Using -1 as index in the ovr_GetTextureSwapChainBufferGL and not calling the ovr_GetTextureSwapChainCurrentIndex seems to work better!
But a rendering bug is still happenning: if I draw a thin horizontal rectangle in front of me and move my head up and down, the rectangle is displayed "wavy", I already saw this effect displaying an OpenGL OpenVR application in the Rift. I found where does this come from : tis is a side effect of the Asynchronous Spacewarp optimization. The only solution I found was to deactivate it manually in the Oculus Debug Tool.
Is there any way to deactivate ASW in the code (I have the same issue using either Oculus SDK or OpenVR SDK)?
I had issues using ovr_GetTextureSwapChainCurrentIndex and then ovr_GetTextureSwapChainBufferGL. Using -1 as index in the ovr_GetTextureSwapChainBufferGL and not calling the ovr_GetTextureSwapChainCurrentIndex seems to work better!
But a rendering bug is still happenning: if I draw a thin horizontal rectangle in front of me and move my head up and down, the rectangle is displayed "wavy", I already saw this effect displaying an OpenGL OpenVR application in the Rift. I found where does this come from : tis is a side effect of the Asynchronous Spacewarp optimization. The only solution I found was to deactivate it manually in the Oculus Debug Tool.
Is there any way to deactivate ASW in the code (I have the same issue using either Oculus SDK or OpenVR SDK)?
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
- 7 months ago
- 1 year ago
- 10 months ago
- 1 year ago