Skip to main content
Participant
January 12, 2014

DarkBASIC - Oculus Rift integration

Heya rifters,

After a few stabs and tinkerings on the ol programming bench. I've managed to create a little plugin that would enable anyone with DarkBASIC to integrate OR into their existing project. The files together with the demo source is included in the attachment below.

Haven't test much on other machine though aside from my dev pc. So not to sure on the performance claims here.
I will of course try to tweak it more to perfection where possible..



Dont expect this to be full blown awesome eyecandy in the demo though. Its just a proof of capability. Pretty much it should take care of all the Oculus Rift needs to function.


Some keys to press in the demo:

UP and DOWN key for movement. Moving towards where you are looking at via rift.

- Scale Oculus scope
q to reduce the x scale value
w to increase the x scale value
a to reduce the y scale value
s to increase the y scale value

- Lens offset
z to reduce the left lens offset value
x to increase the left lens offset value
c to reduce the right lens offset value
v to increase the right lens offset value

- Eye offset
- to reduce the left eye offset value
+ to increase the left eye offset value
[ to reduce the right eye offset value
] to increase the right eye offset value



Happy coding....

    3 replies

    Inspiring
    January 13, 2014
    Nice job.

    Unfortunately I don't use DarkBASIC, but I'm sure some people will find it handy.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    New Participant
    April 3, 2014
    Good job! I hope that people get use out of this. I will look into DarkBasic now :)
    Inspiring
    April 3, 2014
    heh I remember using DarkBASIC back in 2001, I upgraded to the professional edition in '04, I can't believe it's still around and that people still use it with the likes of UE4 and Unity around
    "In the future we will be designing dreams, worlds & experiences rather than games."