Forum Discussion
unsafe
12 years agoHonored Guest
Browser support
Has anybody tackled sensor access from the browser? If not, I'm going to start a project to do that, either via a localhost nodejs server with V8 bindings to the SDK, or through a plugin.
21 Replies
- unsafeHonored Guest
"BigRobCoder" wrote:
"unsafe" wrote:
For the sensor data, I'm building an NSAPI browser plugin using FireBreath which will provide javascript bindings for LibOVR. I'll post an update when it's ready; if anybody has experience building on FireBreath, feel free to contribute.
https://github.com/grimwire/ohmd-plugin
Isn't NSAPI used for web server plugins? Did you mean NPAPI, or am I missing something?
You're right, I meant NPAPI. Thanks - BigRobCoderExplorer
"unsafe" wrote:
"BigRobCoder" wrote:
"unsafe" wrote:
For the sensor data, I'm building an NSAPI browser plugin using FireBreath which will provide javascript bindings for LibOVR. I'll post an update when it's ready; if anybody has experience building on FireBreath, feel free to contribute.
https://github.com/grimwire/ohmd-plugin
Isn't NSAPI used for web server plugins? Did you mean NPAPI, or am I missing something?
You're right, I meant NPAPI. Thanks
Cool, that's what I figured, just wanted to make sure we're on the same page before diving in on this :)
I forked your project on github and filled in the "get_orientation()" stub. Using my Rift, I was able to get (what appears to be) correct orientation data in Chrome!
The github URL is https://github.com/BigRobCoder/ohmd-plugin (build/install the plugin and run pluginTest.htm in Chrome). Note that it's a little messy right now :oops: , I wanted to post this before bed. - ambriashirHonored Guesthere is a guy whose already added chrome support and has some examples. Not sure how far you guys have made it. I'm looking at working with this.
https://github.com/benvanik/vr.js - wildermuthnHonored GuestDid work on this continue, or end after vr.js made its appearance? I'm strictly a web developer, and would be interested in seeing where this goes.
- BigRobCoderExplorer
"wildermuthn" wrote:
Did work on this continue, or end after vr.js made its appearance? I'm strictly a web developer, and would be interested in seeing where this goes.
I got distracted by another project, by the time I returned vr.js had appeared, I plan to use that now. Don't know about the original author. - bbyfordHonored GuestThis is great! was just thinking today what a 3d web would be like and whether anyone was talking about it.
how are people generally getting this up and running currently? was thinking about how it would be better to have a oculas specific browser so that you can add VR specific html tags and js requests etc. I was thinking it could display current sites in a meaning-full manner, followed by VR enhanced sites, then VR only sites taking full advantage. - this also feeds into my thoughts on UI for a VR web and desktop.
anyways, good to hear your thoughts and examples - matsglsHonored Guest
"bbyford" wrote:
This is great! was just thinking today what a 3d web would be like and whether anyone was talking about it.
how are people generally getting this up and running currently? was thinking about how it would be better to have a oculas specific browser so that you can add VR specific html tags and js requests etc. I was thinking it could display current sites in a meaning-full manner, followed by VR enhanced sites, then VR only sites taking full advantage. - this also feeds into my thoughts on UI for a VR web and desktop.
anyways, good to hear your thoughts and examples
VR specific tags could be created as web components. One way might be to use three.js and polymer-project together with vr.js. If polymer is too bleeding edge, then angularJS could be an alternative for now, it will also probably use polymer in the future. - spleen387Honored Guestthis would be amazing!:)
- davrousHonored GuestHi,
We're currently thinking about creating something more generic than a browser's plug-in. As modern browsers support "Device Orientation API", we'd like to create our own Windows driver to take Oculus data and make them available as Device Orientation data. In this way, no need for browser plugin and it will work in any browser: Chrome, Firefox & IE11.
The idea is to add support for Oculus in our WebGL engine: BabylonJS: http://www.babylonjs.com . We would then make this driver available on github.
We've started looking at Windows sensor driver sample. But I'm looking for documentation on how to grab the data from the Oculus from our own driver. Can we build a filter driver on top of the Oculus one? Has anyone ever think about doing something similar?
Bye,
David - cyberealityGrand ChampionI don't think anyone has tried exactly what you are saying, but it seems possible.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 month ago
- 2 months ago
- 7 months ago