OSVR / OSVR-Unity

Package for authoring OSVR experiences with Unity.
Apache License 2.0
98 stars 38 forks source link

Android update #231

Closed DuFF14 closed 6 years ago

DuFF14 commented 7 years ago

This PR enables extended mode RenderManager path on Android. There is a java library called OsvrAndroidJNI.jar as well as .so files from OSVR-Android-build. The libraries usually aren't included in this plugin but I've left them in the PR until CI build issues are resolved.

The Android project that produces OsvrAndroidJNI.jar will be open sourced before this is merged.

AndroidManifest is included. Still have some testing to do regarding package naming in the manifest, java library. It's working when building with API 21 and should work with later versions, but more testing needs to be done there as well.

Server autostart is enabled. The only manual step for now is to add a server config file to /internal storage/osvr or /sdcard/osvr/

Sample config file for Galaxy S6: https://gist.github.com/DuFF14/063cac8eb77424d80ed19f3beb2bc53f

DuFF14 commented 7 years ago

Also have to test merging the project settings. Don't want to set defaults to android and accidentally make something suboptimal on Windows. It might be time to add a tool to the editor for setting up project settings for a given platform.

DuFF14 commented 7 years ago

Latest updates removes the need for an AndroidManifest, and doesn't require any special package naming.

DuFF14 commented 6 years ago

included in https://github.com/OSVR/OSVR-Unity/pull/237