Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Oculus Rift SDL2 code sample

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 0BZEN   Members   

2195
Like
3Likes
Like

Posted 16 September 2013 - 04:17 PM

Hey guys and gals,

 

For anyone interested, present or future, in the Oculus Rift, but found it hard to get going through the samples and their various layers of encapsulation, I've made a short-(ish) little implementation demo. 

 

http://pastebin.com/2VEasjbu

 

It's a 1,000 lines of code, uses OpenGL + SDL2 as the framework, implements the distortion filter, sensor inputs and most of the goodies. 

 

Cheerio!


Everything is better with Metal.


#2 cyberpnk   GDNet+   

359
Like
0Likes
Like

Posted 16 September 2013 - 10:26 PM

Very cool.



#3 ryutenchi   Members   

353
Like
0Likes
Like

Posted 17 September 2013 - 12:43 AM

Maybe some day when I have an OR to play with I'll port it over, but till then thanks for sharing!^^






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.