LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: rupy on August 30, 2015, 08:06:14

Title: Render to front buffer of direct window?
Post by: rupy on August 30, 2015, 08:06:14
Hi, since Oculus has moved away from the regular monitor approach I wonder how can I draw directly to the Oculus way of mounting the screen?
Title: Re: Render to front buffer of direct window?
Post by: BrickFarmer on August 30, 2015, 13:04:16
Hi Rupy,  Have a look at my demo code, it's SDK 0601, but I'm just going to update it to 0700.
Title: Re: Render to front buffer of direct window?
Post by: rupy on August 30, 2015, 23:23:25
So is http://jogamp.org/jogl/doc/NEWT-Overview.html the magic sauce? I was looking at https://github.com/badlogic/jglfw...
Title: Re: Render to front buffer of direct window?
Post by: spasi on August 31, 2015, 10:11:30
This is handled internally by the Oculus Runtime. You don't have to do anything special to get it to work. It has nothing to do with NEWT or GLFW. What you use GLFW for is for setting up a mirror window in a normal monitor to debug your VR rendering.
Title: Re: Render to front buffer of direct window?
Post by: rupy on September 04, 2015, 14:53:41
But I would like to do it separately from Oculus, so I can port stuff to RPi once that's gets rolling, or linux or mac. I guess I'll just have to wait until the double buffer can be disabled on monitors with a right click.