Code Monkey home page Code Monkey logo

rovr's People

Contributors

c4augustus avatar retep998 avatar ryanstew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rovr's Issues

Consider OpenVR path to Rust

OpenVR is great because it's at least partially headset-agnostic. And of course is the path to SteamVR/Lighthouse-based hardware. Sadly, the official OpenVR library is C++ with no apparent official C bindings.

So, it will be necessary to:

  1. Find/build C bindings for the OpenVR C++ API
  2. Reconcile the OpenVR API with rovr and decide whether SteamVR support should be here or in a parallel library
  3. Add input support, at least for Lighthouse-based SteamVR controllers (and maybe Hydra while we're at it?)

support non-glutin window creation outside of direct mode

Hmd doesn't expose enough metadata to allow another windowing library to find the Oculus monitor and create the window in the appropriate place. It needs to expose both the native monitor ID and window size/position information reported by the Oculus SDK to deal with window positioning across all platforms.

Support Oculus SDK 0.6.0.0

This was a somewhat big update, so I'd like to put some thought into how to expose the compositor (and how this might affect the usefulness of including OpenVR support in this library vs. elsewhere).

Fails to build (wayland-client errors)

I cannot get a build to complete.

~/Coding/rust/rovr(branch:master) » rustc --version && cargo build fc@FC-Spectre
rustc 1.8.0-beta.2 (2879d940a 2016-03-22)
Compiling wayland-client v0.1.8
Compiling gl_generator v0.0.26
Compiling tempdir v0.3.4
Compiling shared_library v0.1.4
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:45:1: 45:11 error: attribute should be applied to struct or enum [E0517]
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:45 #[repr(C)] pub type wl_dispatcher_func_t = extern fn(*const c_void,
^~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:45:1: 45:11 help: run rustc --explain E0517 to see a detailed explanation
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:51:1: 51:11 error: attribute should be applied to struct or enum [E0517]
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:51 #[repr(C)] pub type wl_log_func_t = extern fn(_: *const c_char, ...);
^~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:51:1: 51:11 help: run rustc --explain E0517 to see a detailed explanation
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:53:1: 53:11 error: attribute should be applied to struct or enum [E0517]
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:53 #[repr(C)] pub type wl_fixed_t = int32_t;
^~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:53:1: 53:11 help: run rustc --explain E0517 to see a detailed explanation
Compiling mmap v0.1.1
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 error: the trait core::marker::Sized is not implemented for the type Self [E0277]
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57 fn from(other: T) -> Option;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 help: run rustc --explain E0277 to see a detailed explanation
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 note: Self does not have a constant size known at compile-time
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 note: required by core::option::Option
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:322:45: 322:51 error: no method named events found for type core::cell::RefMut<'_, registry::xml::reader::EventReader<R>>in the current scope
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:322 for event in self.port.borrow_mut().events() {
^~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:328:17: 328:37 error: no associated item namedErrorfound for typeregistry::xml::reader::events::XmlEventin the current scope
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:328 XmlEvent::Error(err) => panic!("XML error: {:?}", err),
^~~~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56:9: 56:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56:9: 56:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:57:16: 57:21 note: in this expansion of #[derive_Clone] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs)
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56:9: 56:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:57:10: 57:14 note: in this expansion of #[derive_Copy] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs)
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69:9: 69:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69:9: 69:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:70:16: 70:21 note: in this expansion of #[derive_Clone] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs)
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69:9: 69:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:70:10: 70:14 note: in this expansion of #[derive_Copy] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs)
error: aborting due to 2 previous errors
Could not compilewayland-client.

I get the same errors for stable/beta/nightly under Linux x86_64.

fix glutin monitor selection on Linux

Unlike OS X/Windows, there's no identifier for the display given by the Oculus SDK. So position information needs to be used to guess which display is the Hmd. glutin doesn't currently expose enough information to perform this match.

support OVR SDK 0.5.0.1

The move to an official shared-DLL support model leaves two options:

  • Build against the installed runtime version of the DLL; no SDK build required.
  • Continue to build against SDK source.

Building against the source removes an installation dependency for dev. But given Oculus' intended deployment model, there's no other real advantage to building against a private copy of the SDK.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.