|
| 1 | +# ETVR VRCFT Tracking Module |
| 2 | + |
| 3 | +ETVR Tracking mode is a VRCFT addon dedicated to EyetrackVR Project. |
| 4 | +It acts as middle ground for translating OSC messages sent by EyetrackVR to a format understandable by VRCFT project. |
| 5 | + |
| 6 | +With it: |
| 7 | +- ETVR can work with whichever game VRCFT supports. |
| 8 | +- Users don't have to worry about setting up a different set of params than those required by VRCFT |
| 9 | +- ETVR get's to be forever(*) compatible |
| 10 | + |
| 11 | +## How to use this: |
| 12 | + |
| 13 | +### Module installation |
| 14 | +#### When it gets registered in VRCFT Module registry |
| 15 | +To make use of this module, checkout the module registry in VRCFT app and install it from there. |
| 16 | +Everything will be ready to go. |
| 17 | + |
| 18 | +##### For now: |
| 19 | + |
| 20 | +You'll have to download the provided DLL file [from releases pages](https://github.com/lorow/ETVRTrackingModule/releases) |
| 21 | +Next, place it under `C:\Users\{your_user}\AppData\Roaming\VRCFaceTracking\CustomLibs\` directory. |
| 22 | + |
| 23 | +If the directory doesn't exist, feel free to create it. |
| 24 | +Don't forget to replace the `{your_user}` part with your pc's name. |
| 25 | + |
| 26 | + # For example: |
| 27 | + |
| 28 | + from: |
| 29 | + |
| 30 | + `C:\Users\{your_user}\AppData\Roaming\VRCFaceTracking\CustomLibs\` |
| 31 | + |
| 32 | + to: |
| 33 | + |
| 34 | + `C:\Users\lorow\AppData\Roaming\VRCFaceTracking\CustomLibs\` |
| 35 | + |
| 36 | +### App setup |
| 37 | + |
| 38 | +You'll need to change the `Port` in `Settings` from `9000` to `8889`. |
| 39 | + |
| 40 | +Settings will save automatically, but for them to take effect, you'll need to restart the app. |
| 41 | + |
| 42 | +## What's supported right now / roadmap |
| 43 | + |
| 44 | +### What's currently supported: |
| 45 | + |
| 46 | +This a bit more technical section meant more to showcase what params sent out by ETVR are currently supported |
| 47 | +and translated by the module to VRCFT. |
| 48 | + |
| 49 | +For V1 params sent out by ETVR with their defaults : |
| 50 | + |
| 51 | + { "RightEyeLidExpandedSqueeze", 1f }, |
| 52 | + { "LeftEyeLidExpandedSqueeze", 1f }, |
| 53 | + { "LeftEyeX", 0f }, |
| 54 | + { "RightEyeX", 0f }, |
| 55 | + { "EyesY", 0f }, |
| 56 | + |
| 57 | +For v2 params sent out by ETVR with their default values: |
| 58 | + |
| 59 | + { "EyeX", 0f }, |
| 60 | + { "EyeY", 0f }, |
| 61 | + { "EyeLid", 1f }, |
| 62 | + |
| 63 | + { "EyeLeftX", 0f }, |
| 64 | + { "EyeLeftY", 0f }, |
| 65 | + { "EyeRightX", 0f }, |
| 66 | + { "EyeRightY", 0f }, |
| 67 | + { "EyeLidLeft", 1f }, |
| 68 | + { "EyeLidRight", 1f }, |
| 69 | + |
| 70 | +Additionally to those params: |
| 71 | + |
| 72 | +##### Eye widen / Squint emulation |
| 73 | + |
| 74 | +Eye widen is supported by default in v2 params, for v1 we're emulating it. Every time eye openness reported by ETVR |
| 75 | +reaches above certain threshold, we try and smoothly widen the eye a little bit. |
| 76 | + |
| 77 | +Squinting. For v2 it's defined as a separate parameter, support for it will be coming in the next couple of updates. For v1 it is done the same way as eye widen. |
| 78 | + |
| 79 | +##### Eyebrows emulation |
| 80 | + |
| 81 | +This will be coming in the next couple of updates. |
| 82 | + |
| 83 | +## What's planned: |
| 84 | + |
| 85 | +- Squinting support for V2 parameters |
| 86 | +- Eyebrows emulation using eye openness values |
| 87 | +- [More dev-ish stuff] unified protocol for talking with ETVR |
| 88 | +- Configuration for adjusting emulation thresholds for squinting / widen if need be and OSC Port in case of conflicts |
| 89 | + |
| 90 | +## How to contribute: |
| 91 | +Pretty much the same way as with [EyetrackVR Project](https://github.com/EyeTrackVR/eyetrackvr). |
| 92 | + |
| 93 | +### How do I get it to compile? |
| 94 | + |
| 95 | +To get this to compile: |
| 96 | + |
| 97 | +- Clone this project with either git or zip download. |
| 98 | +- Download the source code zip from [VRCFT release page](https://github.com/benaclejames/VRCFaceTracking/releases) and extract it next to this project. |
| 99 | +- Open this project with the IDE of your choice and hit build, it should compile into a DLL file. |
| 100 | + |
| 101 | +### Dev faq: |
| 102 | + |
| 103 | +##### Why download source code from releases instead of cloning the project? |
| 104 | + |
| 105 | +To avoid a situation where the code you compile the module against is too new. |
| 106 | +I did that, it results in a pretty weird error. |
| 107 | +Downloading the source code ensures that you have the same code base that was used to compile the production app |
| 108 | + |
| 109 | +##### Do I need to copy the file to the directory mentioned above? |
| 110 | + |
| 111 | +No. It's already setup as a build event. |
| 112 | +Once compiled the file will be copied over to `$(USERPROFILE)\AppData\Roaming\VRCFaceTracking\CustomLibs\$(ProjectName).dll` |
| 113 | + |
| 114 | +This also means that if you try to compile while vrcft is running, building will error out on the copying step. This is expected. |
| 115 | +Close down VRCFT and try buildig again. |
| 116 | + |
| 117 | +##### Does this compile under linux? Can I work on this from linux? |
| 118 | + |
| 119 | +I am not sure. All of the development was done on a Windows machine. Feel free to try tho |
| 120 | + |
| 121 | +One step that you'll need to modify is the after build copy event in `ETVRTrackingModule.csproj` , either completely remove it or replace the path with the correct one. |
0 commit comments