Skip to main content
Up and Coming
April 25, 2013

Basic Linux Rift library with OpenGL in C

Ok, don't get too excited. This is a very simple C port of the SDK 1.5 library. I did this mostly to satisfy my own curiosity, but if there is enough interest, I'm willing to make it a more complete project.

Right now all it will do is connect to the Rift, open up a GL window, and move an arrow around to follow the HMD tracker. Now that the new SDK is out, there are GL shaders which I'll work into the simple demo scene for the next pass.

I'm still playing around with this, but tf there is interest, I can put the code up in a private git repo so others can contribute.

Enjoy

-nsb

    73 replies

    Up and Coming
    July 20, 2013
    "haberkern" wrote:

    freeglut (./linuxtest): OpenGL GLS extension not supported by display :10.0


    That seems strange, and I couldn't find anything about why GLS wouldn't be there. I think it's long been a standard part of OpenGL (albeit one you don't really see).

    Are you able to run any OpenGL programs? Is it just freeglut which has problems?

    If you're using libovr_nsb, there is the example program "consoletest" which should read the sensors without any graphical display. At least as an example for getting the sensor readings. Then if you can't get freeglut to work, there are other options. Myself, I use SDL with OpenGL.
    Participant
    July 23, 2013
    That seems strange, and I couldn't find anything about why GLS wouldn't be there. I think it's long been a standard part of OpenGL (albeit one you don't really see).

    Are you able to run any OpenGL programs? Is it just freeglut which has problems?

    If you're using libovr_nsb, there is the example program "consoletest" which should read the sensors without any graphical display. At least as an example for getting the sensor readings. Then if you can't get freeglut to work, there are other options. Myself, I use SDL with OpenGL.


    I believe it is an issue with OpenGL as I have been able to use freeglut (dev3) with many other scripts. Thanks though for the consoletest program as that's really all i need for now.
    Up and Coming
    August 11, 2013
    "Enerccio" wrote:
    I wonder, can I wrap your library in common lisp?


    It should be fairly easy! There aren't too many functions, and instead of dealing with the device structure directly you could add some C functions for that. I use OCaml, myself, so I encourage this! :)