Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSVR-Unity Asset for Linux/Ubuntu version of Unity #200

Open
davidchu2000 opened this issue Dec 13, 2016 · 7 comments
Open

OSVR-Unity Asset for Linux/Ubuntu version of Unity #200

davidchu2000 opened this issue Dec 13, 2016 · 7 comments

Comments

@davidchu2000
Copy link

Is there a Linux version of OSVR-Unity Asset?
The one I downloaded seems to be for Windows only. After imported into Ubuntu Unity, the server path is hardcoded for Windows. I believe this could be the problem my Unity cannont connect to OSVR server.

@DuFF14
Copy link
Member

DuFF14 commented Dec 13, 2016

Nope, but if you have the OSVR libraries (osvrClient.so, osvrCommon.so, etc.), you should be able to copy them into the plugins folder. Let me know if this works.

RenderManager in Unity via the Unity Rendering Plugin is not yet supported: OSVR/OSVR-Unity-Rendering#5

@DuFF14
Copy link
Member

DuFF14 commented Dec 14, 2016

To clarify, the steps to take are:

  1. build OSVR-Core on Linux,
  2. copy the osvr___.so files from the lib directory to the Plugins folder in Unity.
  3. make sure the .so files are set to Linux in Unity.

@davidchu2000
Copy link
Author

I copied about 13 libosvr*.so to my Unity 3D project plugin directory (i.e. ~/unity3d_projects/monkeyrun/Assets/Plugins/x86_64)
wen I brought up the OSVR Utility , I still saw the OSVR Directory path is Windows' path.
And when I clicked on "print tree" button, there was not re-action. None of the buttons were enabled.

@rpavlik
Copy link
Member

rpavlik commented Dec 15, 2016 via email

@DuFF14
Copy link
Member

DuFF14 commented Dec 15, 2016

You probably don't want them in x86_64 folder, since that's confusing and Unity may default them to the wrong platform based on folder name, but it should still work once you've verified the .so files are marked for Linux. Run the server normally and then play in Unity. The editor utils won't work on linux but are not necessary.

@davidchu2000
Copy link
Author

Basically I'd like to verify the osvr core/server I built on Linux. I don’t have a HMD at this moment.
I tried the command line osvr_print_tree and osvr_reset_yaw, they seemed to be able to talk to the server.

I wonder what the next step I can do? Preferably something more graphical.

@DuFF14
Copy link
Member

DuFF14 commented Jan 12, 2017

You can run in extended mode with the window on the main monitor, and adjust display settings in the config file, but I'm not sure if the changes will take effect as-expected without a HMD connected.
https://github.com/OSVR/OSVR-Core/blob/master/apps/sample-configs/osvr_server_config.renderManager.HDKv2.0.extended.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants