OSVR / OSVR-Unity

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

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

Open davidchu2000 opened 7 years ago

davidchu2000 commented 7 years ago

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 commented 7 years ago

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: https://github.com/OSVR/OSVR-Unity-Rendering/issues/5

DuFF14 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

The utilities pane is separate functionality from the actual in game usage of the plugin, it's just a launcher for some utilities that are built with OSVR Core or commonly distributed with it. The failure of those launchers should not affect being able to actually load and create content using the OSVR assets.

On Wed, Dec 14, 2016, 6:55 PM David Chu notifications@github.com wrote:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OSVR/OSVR-Unity/issues/200#issuecomment-267204542, or mute the thread https://github.com/notifications/unsubscribe-auth/AADuySJ7_9vatv-NNJM3xsKR8QxuxtU9ks5rIJAJgaJpZM4LMK-Z .

-- Ryan A. Pavlik, Ph.D. CTO - OSVR Platform Sensics, Inc. www.sensics.com

--

Latest news and blog posts (subscribe here http://sensics.com/subscribe-to-our-mailing-list/ to get weekly updates):

Dec 6: Sensics joins The Khronos Group to help drive open standards for VR http://sensics.com/sensics-joins-khronos-group-help-drive-open-standard-vr/

Nov 28: VRguy podcast: Tero Sarkkinen, CEO of Basemark on VR performance measurements http://sensics.com/vrguy-podcast-episode-21-taro-sarkkinen-ceo-basmark/

Nov 23: OSVR now available on Steam http://sensics.com/osvr-now-available-steam/

DuFF14 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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