This is a plugin for X-Plane that adds support for head tracking with the Oculus Rift virtual reality HMD.
3D rendering for the rift is not currently supported. I'm using Ibex to convert the X-Plane window's image to the format needed by the rift for now. It's not a perfect solution at all, but it's good enough for initial development.
Support for rendering in stereo 3D with the correct dirstortion for the Oculus' optics is a planned area of research, but may not be possible from an X-Plane plugin. Positional headtracking using a head mounted Razer Hydra is also planned.
Things are in pretty rough shape right now. Expect things to get better and more documentation to come after a few more hours of hacking. 😄😄😄
Ah, I was wondering how long it'd take for someone to do that... (Inevitably, if I ever plan on doing something, someone beats me to it. Because... I'm slow. VERY slow.)
But yes, based on my research into the X-plane API, a plugin would not be able to handle the 3d distortion needed for the rift.
While X-plane plugins can do a lot. (for instance, it's theoretically possible, from what I saw to build a razer hydra plugin that displays virtual hands and would let you manipulate the controls in a 3d cabin with both hands in a fairly natural manner), there are some limitations.
One of the biggest, (and most relevant to adapting X-plane for use with the rift) is that although you can add all kinds of things to different stages of the rendering pipeline, X-plane does not like plugins trying to take control over the final rendering stage, or even trying to do anything with the end result of all the other rendering stages.
Want to create a custom graphic overlay that displays on top of the aircraft models? No problem. Insert entirely new geometry somewhere? Sure.
But distort the entire rendered image, and take control of the camera system? Not so much...
A plugin system can only take you so far it seems.
So I'm currently having some problems positioning the camera to match the movement of the plane. If anyone can take a look at this StackOverflow question and give me some pointers I'd really appreciate it.
The camera now moves properly to match the plane while it's in motion (Issue #2.) A command has been added for resetting the orientation of the Rift. This can be bound to a key or button on the joystick to easily correct yaw drift while in flight.
have been playing with your plugin- i have it working... to a point. The camera moves around outside environment only i.e. panel just stays in place. This may be a x plane setting rather than something to do with OR, can you please advise?
I've got it to work pretty well with Oculus Overlay and the windows version of the X-plane plugin for head tracking. Note that you need the 32-bit version of X-plane to get the plugin to work and here you use extended desktop with Oculus Overlay on the Rift screen. You'll see the normal 2D X-plane on your normal screen. I started with Ibex but I get better performance and easier handling with Oculus Overlay. However note that you have to have Overlay in focus in Windows. As soon as you change focus to X-plane the rift goes white. No problem as long as you have enough buttons on your joystick to fly with...
Oculus Overlay here: http://www.riftenabled.com/admin/app/128 Note that you have to set the positions on the screen where you want Overlay to show. Also, press Q to get the same 2D content into both eyes. Overlay defaults to trying to make 3D. Press space in Overlay for commands.