OpenHMD implementation for Urho

General discussion around Urho3D.

OpenHMD implementation for Urho

PostPosted by godan » 18 Aug 2016, 13:12

I'm working on getting OpenHMD integrated with Urho. Progress so far:

- CMake build system for linking OpenHMD and hidapi into a Urho app.
- Ported the Oculus Manager from the OpenHMD Ogre demo
- Ported the Oculus shader
- Created a renderpath for Oculus rendering.

Baby steps... :) Here's a screen shot of a totally boring test scene...

Image

Also, a quick question: does anyone know how OpenHMD transfers the frame buffers to the device? Does it just "know" about the window it's being called from? There doesn't seem to be anything in the update loop about pushing textures....I'm sure it works, I'd just like to understand how this works.
User avatar
godan
Active user
Active user
 
Posts: 122
Joined: 23 Sep 2014, 20:28

Re: OpenHMD implementation for Urho

PostPosted by TheOnlyJoey » 19 Nov 2016, 14:45

Hey, just saw this forum post on my radar, I am one of the OpenHMD developers.
Don't know if you are still working on this, but I could give you some insights.

OpenHMD has drivers which decipher the usb packets from the devices and turn them into usable data.
We construct GL Matrices (Projection and Modelview) and provide quaternion data among others.
openhmd.net/doxygen/0.1.0/openhmd_8h.html has most of the calls and information about what you can get from the devices.
More will be added in the future.

You set information FROM the device TO your application, there is no communication back to the device currently.
Since we do not handle things like 'direct mode' yet, you just have to open the render window on the HMD or drag it manually.

If you have any additional questions feel free to respond, join our irc (freenode #openhmd) or hang on our subreddit! /r/openhmd.
User avatar
TheOnlyJoey
New user
New user
 
Posts: 2
Joined: 19 Nov 2016, 14:39

Re: OpenHMD implementation for Urho

PostPosted by sabotage3d » 19 Nov 2016, 17:50

Would there be full support for HTC Vive soon? I saw it was added recently but only for rotations.
User avatar
sabotage3d
Have many posts
Have many posts
 
Posts: 515
Joined: 25 Oct 2014, 13:26

Re: OpenHMD implementation for Urho

PostPosted by godan » 21 Nov 2016, 15:32

Hey thanks! As it happens, I'm just getting back in to this code, so your response was well timed :)

So, Direct Mode would be amazing! Is that a big job?
User avatar
godan
Active user
Active user
 
Posts: 122
Joined: 23 Sep 2014, 20:28

Re: OpenHMD implementation for Urho

PostPosted by TheOnlyJoey » 29 Nov 2016, 14:42

sabotage3d wrote:Would there be full support for HTC Vive soon? I saw it was added recently but only for rotations.

As currently everything is reverse engineering work, and we do this in our free time (not enough donations and support yet for part/full time development) this will take a while.

godan wrote:Hey thanks! As it happens, I'm just getting back in to this code, so your response was well timed :)

So, Direct Mode would be amazing! Is that a big job?


Great to hear!
Things like 'Direct Mode' are still locked by GPU vendors to a select group of people, we are working with 'a vendor' for support in the future but we have yet to acquire support from the others. On FreeBSD, Linux and Mac OSX there is no implementation yet for direct mode, so on these platforms it does not matter.
For Windows, extended works well enough as well.
User avatar
TheOnlyJoey
New user
New user
 
Posts: 2
Joined: 19 Nov 2016, 14:39


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron