Comments (4)
Cool, thanks! Is there a barrier other than the time it would take to porting the RenderManager Unity plug-in to Linux or OSX?
from osvr-unity.
Well the port of the current plugin to Linux and OSX requires OpenGL support and it doesn't work for now. I don't know why, maybe a difficulty on the Unity side.
However, the rendermanager
branch on the Managed-OSVR looks promising. According to @JeroMiya It's not yet finished and only supports OpenGL. To work, it requires a pointer to the OpenGL or DirectX texture and Unity allows us to get that from C#. So I think that a native plugin is not required if this branch can be finished/stabilized.
Having Managed-OSVR complete will allows other C# engine to enjoy OSVR.
In very short term, I think we can implement two feature to the current Unity SDK
- Distortion correction, it's easy, I have published the effect we need (see my previous screenshot) and you can use that code to get the K1 parameters.
- Detect where is the OSVR HMD display (screen 2, 3 ?) and open a new window into that screen. Unity can handle multi monitors, so we just have to push the dual camera view on that screen and keep a preview (the left eye by example) on the main screen.
Edit: I have updated my fork and added the distortion correction if RenderManager is not available. I have to test it first.
from osvr-unity.
OpenGL support is working on Windows in extended mode. Direct mode won't work on OSX or Linux anyway, right? For OSX and Linux support, the platform-specific context sharing code needs to be ported. Specifically, this call to wglShareLists is only available on Windows:
https://github.com/OSVR/OSVR-Unity-Rendering/blob/oglSupport/OsvrRenderingPlugin.cpp#L283
This splits to another branch for OSX support, and I just pushed my most recent commits which haven't been tested.
https://github.com/OSVR/OSVR-Unity-Rendering/compare/oglSupportOSX
@demonixis I will take a look at the PR
from osvr-unity.
Hi,
Yes the plugin works well on Windows (Direct mode is good and as you said, OpenGL works in extended mode), you've made a nice work on it. But as I said, i've implemented the OSVR SDK into my own engine so I learnt a lot about OSVR recently.
I believe if we use a complete binding of OSVR (Core + RenderManager) we can bring some RM features to Linux and Mac too in extended mode. That's what gamers on those OSs want.
My pull request that adds Distortion correction is clearly not perfect, it's a temporary fix for a majority of uers on Linux and Mac which use an OSVR HDK.
I don't know but some methods fails to call from native code, you can see that in my last PR too. I've also opened an issus on the Managed-OSVR repository OSVR/Managed-OSVR#41 and talked a bit about that with @JeroMiya .
Some parts of MonoGame-OSVR could be merged into Managed-OSVR (json descriptor parsing by example), because with a finished binding of RenderManager, we can avoid the native plugin and have a better support for other OSs.
Why do I have opened this issue? Because I'm a game developer for my own and for a company and in both cases, we use OSVR. It's impossible to sell a game or an application on Linux and Mac because it doesn't work as expected. And what do we want on those OSs?
- Distortion correction
- Automatic Window placement
- Timewarp
All these features are supported on Linux and Mac with any GPU. So yes it's just a binding to finish.
from osvr-unity.
Related Issues (20)
- OSVR-Unity Asset for Linux/Ubuntu version of Unity HOT 7
- Add Unity 5.6 beta support HOT 3
- Read input during Update() rather than FixedUpdate() HOT 1
- OSVR-Unity Build 589-595 showing black screen in direct mode HOT 1
- Unity Editor Window Scrollbar HOT 1
- Unity Editor Crashes Without Warning HOT 42
- Builds from Unity freeze in HMD HOT 9
- Terrain flickers in VR build (but not in editor) HOT 3
- Bushes/Trees flicker on and off on Terrains in a build HOT 1
- Quality above "simple" freezes view in headset in a build. HOT 1
- RenderManager config found but RenderManager is not supported HOT 3
- Broken YAML files on package import HOT 1
- The Standard shader doesn't render when the HDK2 is connected HOT 6
- Don't use MSAA on rendertextures in deferred rendering
- Windows 10 Universal Platform build compatibility HOT 5
- Add Unity 2017 Support
- Fix CI Build HOT 1
- OSVR-Unity Android app crashes when multithreaded rendering is enabled HOT 1
- TRACKING POSITION CAMERA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osvr-unity.