Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Applying a shader for simple VR support

A topic by ethernode created Nov 07, 2016 Views: 515 Replies: 3
Viewing posts 1 to 3

Hi there,

Thanks for your awesome sim !

Would you consider adding an option that would just apply this distortion shader for basic VR support ? It would enable simple, even possibly mobile VR scenarios (i have a DK1 Oculus device that is useless in my home, and would love to use it for FPV freerider). While a full VR implementation (with head tracking etc) is probably much more complex, just applying this shader should make it usable.

https://gist.githubusercontent.com/jdtaylor/256127...

It would be awesome !

Thanks

Developer

Hi,

Thanks, glad you like it!

Do you have some more info on that shader?

Well it allows to display a picture onto a vr device by

1) duplicating the picture (for each eye)

2) applying the inverse geometrical deformation to compensate for oculus/vr lenses deformation

See this for details; note that the one i provided you with is GLES compliant (and is found in the comments of the url below)

https://lubosz.wordpress.com/2013/08/28/view-side-...

Developer

Thanks for the info and link. Seems pretty neat. Also a bit niche, not sure how many people would benefit from it. I have actually been thinking of adding true VR support (with head tracking) at least for the android version (that can be used with goggle cardboard). Haven't got around to it yet though, but it's on my list of things to look into.