Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
jimbo00000's avatar
jimbo00000
Explorer
13 years ago

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.
No RepliesBe the first to reply