benvanik / vr.js

NPAPI plugin to expose fun VR devices to Javascript.
Apache License 2.0
498 stars 105 forks source link

Support Razer Hydra on Mac #17

Open jdarpinian opened 11 years ago

jdarpinian commented 11 years ago

Sixense has a Mac SDK at http://sixense.com/macsdkdownload, so it should be possible to get the Hydra working with the NPAPI plugin on Mac.

RobertLowe commented 11 years ago

This will be awesome. +1

Off topic: @benvanik @jdarpinian - I was able to get node-webkit & vr.js working in harmony on OSX. All with very little effort, so thanks for the hard work. :tada:

So, a cross platform solution appears to be very close.

japboy commented 11 years ago

This will be pretty awesome! +1

henrikakselsen commented 11 years ago

+1 and amen to that

japboy commented 10 years ago

Just wondering...

vr.js is distributed with Sixense Windows libraries. This means we could use Razor Hydra without implementation update... Unity Sixense plugin works on Mac OS X if you copy libsixense_x64.dylib as sixense.bundle from Sixense OSX SDK.

So, Razor Hydra withvr.js could work on OS X if you copy libsixense_x64.dylib as sixense.bundle to ~/Library/Internet Plug-Ins/...

I cannot confirm this at this moment though... I will try later anyway.

benvanik commented 10 years ago

The code and build files would also have to be changed (USE_SIXENSE is currently undefined on OSX).

Ben Vanik http://www.noxa.org

On Sun, Aug 4, 2013 at 9:27 AM, Yu I. notifications@github.com wrote:

Just wondering...

vr.js is distributed with Sixense Windows libraries. This means we could use Razor Hydra without implementation update... Unity Sixense plugin works on Mac OS X if you copy libsixense_x64.dylib as sixense.bundle from Sixense OSX SDK.

So, Razor Hydra withvr.js could work on OS X if you copy libsixense_x64.dylib as sixense.bundle to ~/Library/Internet Plug-Ins/...

I cannot confirm this at this moment though... I will try later anyway.

— Reply to this email directly or view it on GitHubhttps://github.com/benvanik/vr.js/issues/17#issuecomment-22074388 .

japboy commented 10 years ago

@benvanik Ok... Thanks!

otri commented 10 years ago

In case someone wants to try this on Mac, here's the compiled binary with Razor Hydra support built-in. https://dl.dropboxusercontent.com/u/3802245/npvr.plugin.zip

The plugin expects the Sixense shared libraries are installed in: /usr/local/lib/libsixense_x64.dylib

Doesn't work with Chrome (30.0.1599.69), but does with Safari (6.0.5) and Firefox (22.0 and hah, upgraded just now to 24.0).

japboy commented 10 years ago

:+1:

japboy commented 10 years ago

@otri Great work! I've just confirmed that it works on Safari 6.0.5 and Firefox 24.0 Mac OS X 10.8. So sad that Chrome stops supporting NPAPI... :(

Perhaps this will be merged into here? Are you going to push request?

otri commented 10 years ago

I will! Just have to get some sleep first. ;) I also got Razor Hydra working in Unity Pro with a rebuilt bundle. It's so silly Sixense didn't get their plugin working on Mac too. Happy fixing all that.. :)

dydybzh commented 10 years ago

@otri Hey ! I'm new to this forum and to Mac also ... I'm trying to use the Razer Hydra with Unity on Mac but that's not easy ... Could you please, explain step by step what you did to make it work, with Mac and with Unity ? It would be very nice :)

japboy commented 10 years ago

@dydybzh I think it's off-topic though.

Just copy /path/to/sdk/sixenseSDK_linux_OSX/lib/osx/release_dll/libsixense.dylib to /path/to/unity/proj/Assets/Plugins/ then rename libsixense.dylib to sixense.bundle.

fsumner commented 9 years ago

Hi, will this let me use the razer hydra on a mac? I successfully created that folder lib and ran the install python script, but to no avail when I launch portal 2 in steam. Thanks.