mm0zct / Oculus_Touch_Steam_Link

SteamVR driver to enable Oculus Touch controllers with other headsets
MIT License
57 stars 19 forks source link

OSC Haptics #29

Open 0Human0 opened 6 months ago

0Human0 commented 6 months ago

I'd like a for a feature to be added that allows the controller haptics to be controlled by OSC

mm0zct commented 6 months ago

In what context? When acting as a tracker? Or all the time? Should steam vr haptic events be ignored in this mode? Can you point me to a reference receiver implementation for OSC (in C or C++ preferably)?

0Human0 commented 6 months ago

I don't see why it'd need to be limited to just when used as a tracker, So yea all the time. I'd personally be using it to add contact receivers on my avatar that send out the OSC messages to the CV1 controllers that causes them to vibrate. The Steam VR haptic events don't super matter but if you feel like adding a toggle it'd be nice. The last one, I don't really program but you could probably use something like VRCFT (https://github.com/benaclejames/VRCFaceTracking) to look at their OSC receiver implementation as a reference. I also have a friend that has done this same thing but with ESP's and haptic modules so you can reference their code for the intensity and receiver for vibration. (https://github.com/NulledFloof/ESP8266-VR-OSC) There's also tons of other VRChat related projects available on GitHub to use as reference.

0Human0 commented 6 months ago

Oh and I'd like the haptics to behave as the ESP OSC haptics behaves, basically it takes the position of a contact inside of a receiver sent by the game and calculates velocity