Code Monkey home page Code Monkey logo

ofxopenvr's People

Contributors

etienne-p avatar smallfly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofxopenvr's Issues

Device not detected?

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?

Build error current OF and 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.

conversion from ofMatrix4x4 to glm::mat4x4

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.

using of calls in draw ofPushView(); & bind texture.

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.

Grey screen

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

Project Generator

Need to make the addon play nicely with the Project Generator.

For example:

  • finish the addon_config.mk file.
  • set the VS project's proterties (Additional Dependencies and Additionnal Library Directories).
  • copy the openvr_api.dll to the bin folder.

unresolved external symbol __imp__VR_<symbol>

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.

Low framerate (30 fps) on Linux (Debian)

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?

Controller matrix error

When I press 'm' in the drawing example to display the controllers the position/rotation/scaling is incorrect and affected by the head position.

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.