vr.js icon indicating copy to clipboard operation
vr.js copied to clipboard

Support Razer Hydra on Mac

Open jdarpinian opened this issue 12 years ago • 13 comments

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.

jdarpinian avatar May 08 '13 23:05 jdarpinian

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.

RobertLowe avatar May 22 '13 22:05 RobertLowe

This will be pretty awesome! +1

japboy avatar Jul 06 '13 10:07 japboy

+1 and amen to that

henrikakselsen avatar Jul 06 '13 11:07 henrikakselsen

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.

japboy avatar Aug 04 '13 16:08 japboy

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. [email protected] 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 .

benvanik avatar Aug 04 '13 18:08 benvanik

@benvanik Ok... Thanks!

japboy avatar Aug 05 '13 01:08 japboy

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).

otri avatar Oct 07 '13 09:10 otri

:+1:

japboy avatar Oct 08 '13 07:10 japboy

@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?

japboy avatar Oct 08 '13 07:10 japboy

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.. :)

otri avatar Oct 08 '13 07:10 otri

@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 :)

dydybzh avatar Oct 11 '13 11:10 dydybzh

@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.

japboy avatar Oct 11 '13 16:10 japboy

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.

fsumner avatar Apr 11 '15 09:04 fsumner