{"id":50909239,"url":"https://github.com/itsloopyo/resident-evil-2-headtracking","last_synced_at":"2026-06-16T08:31:00.545Z","repository":{"id":363175996,"uuid":"1255484612","full_name":"itsloopyo/resident-evil-2-headtracking","owner":"itsloopyo","description":"An OpenTrack compatible head tracking mod for Resident Evil 2 Remake","archived":false,"fork":false,"pushed_at":"2026-06-07T20:03:53.000Z","size":26226,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T20:10:06.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsloopyo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-31T22:08:16.000Z","updated_at":"2026-06-07T20:03:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/itsloopyo/resident-evil-2-headtracking","commit_stats":null,"previous_names":["itsloopyo/resident-evil-2-headtracking"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/itsloopyo/resident-evil-2-headtracking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-2-headtracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-2-headtracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-2-headtracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-2-headtracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsloopyo","download_url":"https://codeload.github.com/itsloopyo/resident-evil-2-headtracking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-2-headtracking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34398405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-16T08:30:59.371Z","updated_at":"2026-06-16T08:31:00.531Z","avatar_url":"https://github.com/itsloopyo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!CAUTION]\n\u003e ## Experimental prototype - expect missing core features\n\u003e\n\u003e This is **not** a finished mod.\n\u003e\n\u003e Current builds may only test whether head tracking can drive the camera. Bug fixes and core features like decoupled look/aim, independent reticle behavior, correct shot direction, off-screen reticle support, movement handling, and comfort tuning may be missing at this early stage of development.\n\n# Resident Evil 2 Head Tracking\n\nResident Evil 2 Head Tracking lets you move the in-game camera with your head while your mouse or controller still controls aim independently, adding immersion with no VR headset required.\n\n\u003c!-- Add a clip once one exists:\n![Mod GIF](https://raw.githubusercontent.com/itsloopyo/resident-evil-2-headtracking/main/assets/readme-clip.gif)\n--\u003e\n\n## Features\n\n- **Decoupled look and aim** - head tracking moves the camera; aim stays on your mouse or controller\n- **6DOF positional tracking** - lean and peek with head position\n\n## Requirements\n\n- [Resident Evil 2 Remake](https://store.steampowered.com/app/883710/Resident_Evil_2/) on Steam\n- [OpenTrack](https://github.com/opentrack/opentrack) or a compatible head tracking source (smartphone, webcam, or dedicated hardware)\n- Windows 10 or 11 (64-bit)\n\n## Installation\n\n1. Download the latest installer ZIP from the [Releases page](https://github.com/itsloopyo/resident-evil-2-headtracking/releases).\n2. Extract the ZIP anywhere.\n3. Double-click `install.cmd`.\n4. Configure OpenTrack to output UDP to `127.0.0.1:4242`.\n5. Launch the game. Head tracking is enabled automatically.\n\nIf the installer can't find your game:\n\n- Set the `RE2_PATH` environment variable to your game folder, or\n- Pass the path positionally: `install.cmd \"D:\\Games\\RE2\"`\n\n### Manual Installation\n\nIf you prefer to place files by hand (or are using the Nexus ZIP, which contains only the plugin files):\n\n1. Install [REFramework](https://github.com/praydog/REFramework-nightly/releases) for RE2 by extracting it to the game root.\n2. Copy `RE2HeadTracking.dll` and `HeadTracking.ini` into `\u003cgame\u003e/reframework/plugins/`.\n\n## Setting Up OpenTrack\n\n1. Download and install [OpenTrack](https://github.com/opentrack/opentrack/releases).\n2. Configure your tracker as the input.\n3. Set the output to **UDP over network**.\n4. Set Host to `127.0.0.1` and Port to `4242`.\n5. Start tracking before launching the game.\n\n### VR Headset Setup\n\nA VR headset makes an excellent tracker, with smooth, low-latency rotation.\n\n1. Connect your headset to the PC with Air Link or [Virtual Desktop](https://www.vrdesktop.net/).\n2. Install [SteamVR](https://store.steampowered.com/app/250820/SteamVR/) and start it so the headset is tracked.\n3. In OpenTrack, set the input to **SteamVR**.\n4. Set the output to **UDP over network** (`127.0.0.1:4242`).\n5. Start tracking before launching the game.\n\n### Webcam Setup\n\nNo special hardware is needed. OpenTrack's built-in neuralnet tracker uses any webcam for face tracking.\n\n1. In OpenTrack, set the input to **neuralnet tracker**.\n2. Select your webcam in the tracker settings.\n3. Set the output to **UDP over network** (`127.0.0.1:4242`).\n4. Start tracking before launching the game.\n5. Recenter in OpenTrack via its hotkey, and press **Home** in-game to recenter the mod as needed.\n\n### Phone App Setup\n\nThis mod includes built-in smoothing for network jitter, so you can send directly from your phone on port 4242 without running OpenTrack on the PC.\n\n1. Install an OpenTrack-compatible head tracking app.\n2. Configure it to send to your PC's IP on port 4242 (run `ipconfig` to find your IP).\n3. Set the protocol to OpenTrack/UDP.\n\nIf you want curve mapping or a visual preview, route through OpenTrack instead. Set OpenTrack's input to **UDP over network** on a different port (for example 5252), point your phone app at that port, and set OpenTrack's output to `127.0.0.1:4242`. Make sure your firewall allows incoming UDP on the input port.\n\n## Controls\n\nTwo equivalent binding sets, use whichever your keyboard has:\n\n| Action              | Nav-cluster | Chord           |\n|---------------------|-------------|-----------------|\n| Recenter            | `Home`      | `Ctrl+Shift+T`  |\n| Toggle tracking     | `End`       | `Ctrl+Shift+Y`  |\n| Cycle tracking mode | `Page Up`   | `Ctrl+Shift+G`  |\n| Toggle yaw mode     | `Page Down` | `Ctrl+Shift+H`  |\n| Toggle aim reticle  | `Insert`    | `Ctrl+Shift+U`  |\n\n`Page Up` / `Ctrl+Shift+G` cycles tracking mode:\n\n1. Normal head-tracked gameplay\n2. Positional tracking disabled, rotational tracking enabled\n3. Rotational tracking disabled, positional tracking enabled\n4. Back to normal\n\n## Configuration\n\nThe mod creates a config file at `reframework/plugins/HeadTracking.ini` on first run. Edit it to customize behavior, then relaunch the game. Delete the file to reset to defaults.\n\n```ini\n[Network]\nUDPPort=4242                    ; Must match OpenTrack output port (1024-65535)\n\n[Sensitivity]\nYawMultiplier=1.0               ; Horizontal rotation (0.1-5.0)\nPitchMultiplier=1.0             ; Vertical rotation (0.1-5.0)\nRollMultiplier=1.0              ; Head tilt (0.0-2.0)\n\n[Position]\nSensitivityX=2.0                ; Lateral sensitivity (0.1-10.0)\nSensitivityY=2.0                ; Vertical sensitivity (0.1-10.0)\nSensitivityZ=2.0                ; Depth sensitivity (0.1-10.0)\nLimitX=0.30                     ; Max lateral offset in meters\nLimitY=0.20                     ; Max vertical offset in meters\nLimitZ=0.40                     ; Max forward offset in meters\nLimitZBack=0.10                 ; Max backward offset (prevents camera clipping)\nSmoothing=0.15                  ; Position smoothing (0.0-0.99)\nInvertX=false                   ; Invert lateral axis\nInvertY=false                   ; Invert vertical axis\nInvertZ=false                   ; Invert depth axis\nEnabled=true                    ; Enable or disable 6DOF position tracking\n\n[Hotkeys]\n; Virtual key codes (hex)\nToggleKey=0x23                  ; End - enable or disable tracking\nRecenterKey=0x24                ; Home - recenter view\nPositionToggleKey=0x21          ; Page Up - cycle tracking mode\nReticleToggleKey=0x2D           ; Insert - toggle reticle\nYawModeKey=0x22                 ; Page Down - toggle world/local yaw\n\n[Reticle]\nEnabled=true                    ; Show the head tracking reticle overlay\n\n[General]\nAutoEnable=true                 ; Auto-enable tracking on game start\nWorldSpaceYaw=true              ; true = horizon-locked yaw (default), false = camera-local\n```\n\n## Troubleshooting\n\n**Mod not loading:**\n- Ensure REFramework is installed (`dinput8.dll` in the game root).\n- Check that the `reframework/` folder exists with `plugins/RE2HeadTracking.dll` inside.\n- Try running the game as administrator once.\n\n**No tracking response:**\n- Verify OpenTrack is running and outputting data.\n- Check that the UDP port matches (default 4242).\n- Press **End** to enable tracking and **Home** to recenter.\n- Check that your firewall isn't blocking UDP port 4242.\n\n**Jittery or unstable tracking:**\n- Increase position smoothing in `HeadTracking.ini`.\n- If using a phone app over WiFi, some jitter is expected. The built-in interpolation helps.\n\n**Wrong rotation axis or yaw feels wrong at extreme angles:**\n- Adjust the sensitivity multipliers or use the Invert settings in the Position section.\n- Toggle between world-locked and camera-local yaw with `Page Down`. World-locked (default) is horizon-stable; camera-local follows the camera's current up-axis.\n\n## Updating\n\nDownload the new release and run `install.cmd` again. Your config is preserved.\n\n## Uninstalling\n\nRun `uninstall.cmd`. This removes the mod DLLs. REFramework is only removed if the installer put it there. To force-remove REFramework anyway:\n\n```powershell\nuninstall.cmd /force\n```\n\n## Building from Source\n\nPrerequisites:\n\n- [CMake](https://cmake.org/) 3.20+\n- [Visual Studio 2022](https://visualstudio.microsoft.com/) with the C++ desktop workload\n- [pixi](https://pixi.sh) task runner\n\n```bash\ngit clone --recurse-submodules https://github.com/itsloopyo/resident-evil-2-headtracking.git\ncd resident-evil-2-headtracking\npixi run build        # build the mod (debug)\npixi run install      # build release and deploy to the game\npixi run package      # create the release ZIPs\n```\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n\n## Credits\n\n- [Capcom](https://www.capcom.com/) - Resident Evil 2 Remake\n- [praydog](https://github.com/praydog/REFramework) - REFramework\n- [OpenTrack](https://github.com/opentrack/opentrack) - head tracking software\n- [CameraUnlock](https://github.com/itsloopyo/cameraunlock-core) - shared head tracking library\n\n## Disclaimer\n\nThis mod is not affiliated with, endorsed by, or supported by Capcom. Use at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsloopyo%2Fresident-evil-2-headtracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsloopyo%2Fresident-evil-2-headtracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsloopyo%2Fresident-evil-2-headtracking/lists"}