OpenVR-InputEmulator icon indicating copy to clipboard operation
OpenVR-InputEmulator copied to clipboard

Is there any way to add finger tracking support for diy gloves?

Open dasanibroto opened this issue 5 years ago • 7 comments

I want to make finger tracking gloves with flex sensors and such. Could there be finger tracking support to emulate index or no?

dasanibroto avatar Aug 27 '19 12:08 dasanibroto

Yes this is exactly what OpenVR is good for, open hardware. You can make your own hardware and create an OpenVR driver to update the finger, skeleton, positions, as well as all the 3D tracking information. I wouldn't use inputemulator for this though. Just create a new driver.

pottedmeat7 avatar Aug 27 '19 14:08 pottedmeat7

@pottedmeat7 Thanks for the reply. I have made my own hardware and am outputting the required data to pc. However I have no idea how to go about making a driver. I have read some wiki entries about openvr skeletal input and seen some examples of drivers. If you could point me in the right direction I would be very grateful. I am willing to spend the time required to learn.

dasanibroto avatar Aug 29 '19 03:08 dasanibroto

You need to create a class that inherits from ITrackedDeviceServerDriver and IVRDriverInput to get all of the functions to apply skeletal and digital input. There are a few examples of setting up the driver host which inherits from IServerTrackedDeviceProvider. This is where you add and activate your devices. You can get data from a hardware device into the driver really any way that works for you. OVRIE and similar use a message queue from a frontend client. My project sets up the device drivers for a software defined device, ie. input is applied without hardware; but it's still a good starting point for what your looking for. https://github.com/pottedmeat7/OpenVR-WalkInPlace/blob/master/driver_vrwalkinplace/src/virtualdevice/VirtualController.cpp

pottedmeat7 avatar Aug 29 '19 03:08 pottedmeat7

Please keep us updated. I want to do exactly the same thing (make gloves with flex sensors) but like you I have no idea on the programming side of things. Thanks.

TripRodriguez avatar Aug 30 '19 11:08 TripRodriguez

I will do, but bear in mind that I also have no idea about the programming so this may take a long time to come to fruition. Thanks to pottedmeat7 I have a starting point, so I can make a start asap.

dasanibroto avatar Aug 30 '19 11:08 dasanibroto

Hey hey hey!

I'm making project like it too. Want to share best starting point with you. https://github.com/spayne/soft_knuckles

@pottedmeat7 I agree created driver would be best.

I have modded version, applying knuckles models, rotation, and i nearly finished finger tracking. All is based on debug client and openvr driver.

Driver i linekd, sets fingers arrays to fist and openhand in 1000ms delays. Only modify arrays and make IPC conection to arduino. Like i said, when i finish it, i'll post here.

Futhermore, i'd like to add them tracking. kinecttovr? I think, basing on playspacemover, we can make something like d4vr with sharky's work.

@bakwas247 @TripRodriguez Anyone who wants help, or to help, should feel being invited to https://discord.gg/bZsNgHc Inventor if soft_knulckles is already there too.

Bye!

KimihikoAkayasaki avatar Sep 08 '19 09:09 KimihikoAkayasaki

@AkayabeKimitsu im really intrigued by this, i would like to share ideas or something im going insane trying to do a fullbody from a 20$ webcam so its not really similar but i like what you are doing anyways i would like to do a 100% open vr like the htc vive but its more of a wet dream than an idea the discord link is broken but here's my twitter or MrAlex#0002

if anyone wants to share anything/ask something/ecc, feel free to do so

MrAlexEsisteGia avatar Dec 17 '19 19:12 MrAlexEsisteGia