Native Rendering Plugin with Oculus Rift
I'm working on a project that offloads some rendering to a native plugin I wrote for Unity, in order to make use of instancing and other advanced graphics features. I'm developing it for a cross-platform release, but I work with a Mac so testing is done primarily with OpenGL. The plugin works as expected in a blank Unity project, but as soon as I incorporate it into my Oculus project, it begins behaving erratically.
In the Rift, the plugin's geometry draws twice, one time stretching across both eyes and another time drawing only within the bounds of the right eye. Additionally, any primitive colors I apply to the geometry are lost and the geometry appears to pick up surrounding colors; on a black screen with red text, the geometry will be mostly black with some red bleeding into the lines. As soon as my green terrain is loaded, the geometry drawn by the plugin becomes green.
To avoid bogging down the forum with screenshots and code samples, I've posted them externally in a StackOverflow question that you can find here: http://stackoverflow.com/questions/26594208/native-rendering-plugin-with-oculus-rift. Any insight from experienced native plugin/Rift graphics coders would be appreciated!
In the Rift, the plugin's geometry draws twice, one time stretching across both eyes and another time drawing only within the bounds of the right eye. Additionally, any primitive colors I apply to the geometry are lost and the geometry appears to pick up surrounding colors; on a black screen with red text, the geometry will be mostly black with some red bleeding into the lines. As soon as my green terrain is loaded, the geometry drawn by the plugin becomes green.
To avoid bogging down the forum with screenshots and code samples, I've posted them externally in a StackOverflow question that you can find here: http://stackoverflow.com/questions/26594208/native-rendering-plugin-with-oculus-rift. Any insight from experienced native plugin/Rift graphics coders would be appreciated!
