Forum Discussion
jimbo00000
13 years agoExplorer
Multi-Window OpenGL app skeleton
I've been finding the process of Rift development in cloned monitor mode to be painful for a number of reasons:
- Setting breakpoints freezes the app
- Every app launch & accompanying mode change brings up the blue square "1280x800" resolution message in the right eye of the Rift for about five seconds
- Manipulating parameters or even reaching for the keyboard or mouse with the Rift on is cumbersome
Thanks to the brand-new Glfw3 framework, there is a much easier way. Now we can keep our multi-monitor setup in Extend mode and create two OpenGL windows that share a context and draw the same data from a conventional third-person perspective as well as barrel-distortion-corrected Rift perspective *at the same time*. The third-person "Operator" view indicates the view frustum of the Rift as lines in space and provides an AntTweakBar for manipulating values at runtime. This allows you to develop Rift apps using the old familiar 3D app workflow at full resolution on your primary monitor, and glance in to the Rift at any time.
https://github.com/jimbo00000/OculusGlfwSkeleton
The code is public domain. All feedback is welcome.
- Setting breakpoints freezes the app
- Every app launch & accompanying mode change brings up the blue square "1280x800" resolution message in the right eye of the Rift for about five seconds
- Manipulating parameters or even reaching for the keyboard or mouse with the Rift on is cumbersome
Thanks to the brand-new Glfw3 framework, there is a much easier way. Now we can keep our multi-monitor setup in Extend mode and create two OpenGL windows that share a context and draw the same data from a conventional third-person perspective as well as barrel-distortion-corrected Rift perspective *at the same time*. The third-person "Operator" view indicates the view frustum of the Rift as lines in space and provides an AntTweakBar for manipulating values at runtime. This allows you to develop Rift apps using the old familiar 3D app workflow at full resolution on your primary monitor, and glance in to the Rift at any time.
https://github.com/jimbo00000/OculusGlfwSkeleton
The code is public domain. All feedback is welcome.
No RepliesBe the first to reply
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
- 2 years ago
- 4 months agoAnonymous
- 2 years ago