LWJGL Forum

Programming => General Java Game Development => Topic started by: Estraven on October 08, 2015, 12:18:25

Title: Oculus SK2 and LWJGL 3
Post by: Estraven on October 08, 2015, 12:18:25
Hey guys,
I'm migrating to LWJGL 3.0 and so far I really like it. :)

I see there is an OVR library binding included, it's great, it means I don't have to update my own binding anymore. I stopped at libOVR v0.4 anyway...
However, I can't find any sample code on how to use it.

Is there any tutorial, sample code, or such?

Thanks !
Title: Re: Oculus SK2 and LWJGL 3
Post by: spasi on October 08, 2015, 12:31:12
Hey Estraven,

I guess the best sample you could have right now is WhiteHexagon's Rift experiments (https://github.com/WhiteHexagon/example-lwjgl3-rift). It's up-to-date with the latest Oculus SDK (0.7), but I don't think it's currently compatible with the latest LWJGL 3 nightly build (has breaking changes related to structs).

The LWJGL 3 repo also has a simple demo (https://github.com/LWJGL/lwjgl3/blob/master/modules/core/src/test/java/org/lwjgl/demo/ovr/HelloLibOVR.java), which doesn't do much since I don't own a Rift. :)
Title: Re: Oculus SK2 and LWJGL 3
Post by: Estraven on October 08, 2015, 12:38:06

Great, I'll look into that. I have access to an SK2 at work, but only when my colleagues aren't using it.