smallfly / ofxopenvr Goto Github PK
View Code? Open in Web Editor NEWImplementation of Valve Software's OpenVR API.
License: MIT License
Implementation of Valve Software's OpenVR API.
License: MIT License
Hi! I just tried out this addon today but I'm having some trouble. I'm using a nightly OF version, Windows 10, a GTX 1060, and an Oculus DK2.
I did run into this compile issue:
'cannot convert argument 1 from 'const char *' to 'LPCWSTR'
in SharedLib_Load()
in sharedlibtools_public.cpp
, which I fixed by replacing LoadLibraryEx
with LoadLibraryExA
, though I'm curious that it doesn't look like it's been reported yet here.
After fixing that, I get this output when I run the app and the app window shows "System name" and "System S/N" but they're blank.
Unable to read VR Path Registry from C:\Users\hypersonic\AppData\Local\openvr\openvrpaths.vrpath
PoseCount:0 Controllers:0
It looks like the device may not be detected? I'm not sure how to test if it's the device, the API, the addon, etc. Do you know if the DK2 is even supported with OpenVR?
No image on the Rift, only on the mirror screen. The rift reacts fine and I see the lobby in the headset, the screen shows movement and drawing.
I'm probably just missing something so this probably isn't a valid 'issue' but I can't seem to figure it...
In your example there are several places where ofMatrix4x4 and glm::mat4x4 combine - for example _shader.setUniformMatrix4f("matrix", hdmPoseMat, 1);
The VS2015 compiler is throwing errors that it cannot convert from 'glm::mat4x4' to 'const ofMatrix4x4 &' i.e. the variable hdmPoseMat is of type glm::mat4x4 but the argument is of type ofMatrix4x4&
Any idea how to work around this? I have tried casting the types but the compiler doesn't allow it convert from one type to the other.
For example, make it use: ofVec2f, ofMatrix4x4, ofVbo, etc.
I'm currently adding getter methods to give access to the transform matrices of the controllers and cameras.
I can't seem to use some standard OF calls in the renderer, I am not using the shader. ofPushView() followed by ofPopView() does not work, it closes the pushView(); opened in openVR.pushMatricesForRender(nEye);
I also cannot bind textures to primitives inside the draw either.
hi,
Love the addon.
I have difficulties when I add the addon with project generator, and import the ofxOpenVR.props file,
the app does work in Debug but it doesn't in Release. In Release it gives me a strange gray screen.
It this a known problem ?
Thanks,
Keez
windows 10, mvs 15
Need to make the addon play nicely with the Project Generator.
For example:
I'm trying to get ofxOpenVR to work with the latest nighly of openFrameworks, using Visual Studio 2015 on Windows 10 (which is kind of a challenge as I'm normally a Linux user, but as the Vive still isn't properly supported on Linux I want to try and get something to work on Windows first).
I've added ofxOpenVR as an addon, and cloned the openvr repository inside the libs/openvr folder, removing the samples folder to prevent problems compiling (multiplemain.cpp etc.).
While trying to compile your example-simple projects, I get the following errors:
Error LNK2001 unresolved external symbol __imp__VR_GetVRInitErrorAsEnglishDescription example-simple
Error LNK2001 unresolved external symbol __imp__VR_GetGenericInterface example-simple
Error LNK2001 unresolved external symbol __imp__VR_IsInterfaceVersionValid example-simple
Error LNK2001 unresolved external symbol __imp__VR_GetInitToken example-simple
Error LNK2001 unresolved external symbol __imp__VR_InitInternal example-simple
Error LNK2001 unresolved external symbol __imp__VR_ShutdownInternal example-simple
All errors come from
<my ofPath\apps\myApps\example-simple\ofxOpenVR.obj
Before I'm going to mess around too much: any clue as to what I'm doing wrong? Is this just an error in my setup which I need to resolve, is the version of openvr I'm using not compatible anymore, or...
I'd really like to get this to work, so any form of help is appreciated.
After quite a struggle I managed to get ofxOpenVR to work. There were a couple of small things I had to change to get it to compile, for example: my system didn't know the functions Sleep()
(removed it) and stricmp
(replaced it with strcasecmp
). I didn't make a pull request as I'm not sure if it is platform dependent or anything like that (but you can see the changes here).
One problem I'm having is that the framerate is quite low (around 30/31 fps). The SteamVR Tutorial seems a little slower than the Windows version as well, but still far above the 30fps.
I was wondering if you had any ideas about where to look for bottlenecks in ofxOpenVR, or do you think this is a problem with OpenVR?
When I press 'm' in the drawing example to display the controllers the position/rotation/scaling is incorrect and affected by the head position.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.