LucidVR / opengloves-driver

An OpenVR Driver for VR Gloves

Home Page:https://store.steampowered.com/app/1574050/OpenGloves/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing/incorrect configuration values cause unpredictable behavior

WillNilges opened this issue · comments

I found a bug that would prevent my gloves from working properly and cause Unity to spew errors:

image

The cause was that my configuration files didn't have encoding_alpha set properly, and thus it was defaulting to zero, causing division by zeros.

I'm making this issue as a reminder that steamvr configuration can be weird, and we might want to add checks to like... everything, so that we see errors in the SteamVR logs if we get something unexpected from the config file.

You can add a very small bias to prevent divisions by zero