{"id":50909233,"url":"https://github.com/itsloopyo/resident-evil-4-headtracking","last_synced_at":"2026-06-16T08:31:01.072Z","repository":{"id":363176000,"uuid":"1255484987","full_name":"itsloopyo/resident-evil-4-headtracking","owner":"itsloopyo","description":"An OpenTrack compatible head tracking mod for Resident Evil 4 Remake","archived":false,"fork":false,"pushed_at":"2026-06-07T18:17:25.000Z","size":26188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T20:10:06.647Z","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":"other","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:09:09.000Z","updated_at":"2026-06-07T18:17:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/itsloopyo/resident-evil-4-headtracking","commit_stats":null,"previous_names":["itsloopyo/resident-evil-4-headtracking"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/itsloopyo/resident-evil-4-headtracking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-4-headtracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-4-headtracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-4-headtracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-4-headtracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsloopyo","download_url":"https://codeload.github.com/itsloopyo/resident-evil-4-headtracking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fresident-evil-4-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.027Z","updated_at":"2026-06-16T08:31:01.064Z","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# RE4 Head Tracking\n\nHead tracking for Resident Evil 4 Remake that moves your view with your head while your mouse or controller still controls aim, no VR headset required.\n\n\u003c!-- ![Mod GIF](https://raw.githubusercontent.com/itsloopyo/resident-evil-4-headtracking/main/assets/readme-clip.gif) --\u003e\n\n## Features\n\n- **Decoupled look and aim** - head tracking moves the camera; aim stays on your mouse/controller\n- **6DOF positional tracking** - lean and peek with head position\n\n## Requirements\n\n- [Resident Evil 4 Remake](https://store.steampowered.com/app/2050650/Resident_Evil_4/) (Steam)\n- [OpenTrack](https://github.com/opentrack/opentrack) or a compatible head tracking app (smartphone, webcam, or dedicated hardware)\n- Windows 10/11 (64-bit)\n\n## Installation\n\n1. Download the installer ZIP from the [Releases page](https://github.com/itsloopyo/resident-evil-4-headtracking/releases)\n2. Extract the ZIP anywhere\n3. Double-click `install.cmd` (it auto-detects your game and installs REFramework if needed)\n4. Configure OpenTrack to output UDP to `127.0.0.1:4242`\n5. Launch the game; head tracking is enabled automatically\n\nThe installer automatically finds your game via Steam registry lookup. If it can't find the game:\n- Set the `RESIDENT_EVIL_4_PATH` environment variable to your game folder, or\n- Run from command prompt: `install.cmd \"D:\\Games\\RE4\"`\n\n### Manual Installation\n\nFor placing files by hand (or installing the Nexus ZIP, which contains only the plugin files):\n\n1. Install [REFramework](https://github.com/praydog/REFramework-nightly/releases) for RE4 (extract to game root)\n2. Copy `RE4HeadTracking.dll` to `\u003cgame\u003e/reframework/plugins/` (the mod writes `HeadTracking.ini` there on first launch)\n\n## Setting Up OpenTrack\n\n1. Download and install [OpenTrack](https://github.com/opentrack/opentrack/releases)\n2. Configure your tracker as input\n3. Set output to **UDP over network**\n4. Host: `127.0.0.1`, Port: `4242`\n5. Start tracking before launching the game\n\n### VR Headset Setup\n\nA VR headset makes an excellent high-precision tracker.\n\n1. Connect your headset to the PC with Air Link (Quest) or [Virtual Desktop](https://www.vrdesktop.net/)\n2. Launch SteamVR so the headset is tracked\n3. In OpenTrack, set the input to **SteamVR**\n4. Set 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 needed; OpenTrack's built-in **neuralnet tracker** uses any webcam for 6DOF face tracking.\n\n1. In OpenTrack, set the input to **neuralnet tracker**\n2. Select your webcam in the tracker settings\n3. Set 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 needing OpenTrack on 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 it)\n3. Set the protocol to OpenTrack/UDP\n\n**With OpenTrack (optional):** If you want curve mapping or visual preview, route through OpenTrack. Set OpenTrack's input to \"UDP over network\" on a different port (e.g. 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 view | `Home` | `Ctrl+Shift+T` |\n| Toggle head tracking | `End` | `Ctrl+Shift+Y` |\n| Toggle positional tracking | `Page Up` | `Ctrl+Shift+G` |\n| Toggle yaw mode (world-space / camera-local) | `Page Down` | `Ctrl+Shift+H` |\n| Toggle aim reticle | `Insert` | `Ctrl+Shift+U` |\n\nEach action fires from either its nav-cluster key or its chord - they are\nregistered simultaneously, not configurable alternatives. The chord set exists\nfor tenkeyless / laptop keyboards without a nav cluster.\n\n## Configuration\n\nThe mod creates a config file at `reframework/plugins/HeadTracking.ini` on first run. Edit it to customize:\n\n```ini\n[Network]\nPort=4242                       ; Must match OpenTrack output port\n\n[Tracking]\nEnabled=true                    ; Enable/disable head rotation tracking\nYawSensitivity=1.0              ; Horizontal rotation (0.1-3.0)\nPitchSensitivity=1.0            ; Vertical rotation (0.1-3.0)\nRollSensitivity=1.0             ; Head tilt (0.1-3.0)\nInvertYaw=false                 ; Invert horizontal rotation\nInvertPitch=false               ; Invert vertical rotation\nInvertRoll=false                ; Invert head tilt\nSmoothing=0.0                   ; Rotation smoothing (0.0-1.0, baseline 0.15 floor applied)\n\n[Position]\nEnabled=true                    ; Enable/disable 6DOF position tracking\nSensitivityX=2.0                ; Lateral sensitivity (0.0-5.0)\nSensitivityY=2.0                ; Vertical sensitivity (0.0-5.0)\nSensitivityZ=2.0                ; Depth sensitivity (0.0-5.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-1.0)\nInvertX=false                   ; Invert lateral axis\nInvertY=false                   ; Invert vertical axis\nInvertZ=false                   ; Invert depth axis\n\n[Hotkeys]\n; Virtual key codes (hex)\nRecenterKey=0x24                ; Home - Recenter view\nToggleKey=0x23                  ; End - Enable/disable\nPositionToggleKey=0x21          ; Page Up - Toggle position\nYawModeKey=0x22                 ; Page Down - Toggle world/camera-local yaw\nReticleToggleKey=0x2D           ; Insert - Toggle reticle\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; false = follows camera pitch\n```\n\nDelete the file to reset to defaults.\n\n## Troubleshooting\n\n**Mod not loading:**\n- Ensure REFramework is installed (`dinput8.dll` in game root)\n- Check `reframework/` folder exists with `plugins/RE4HeadTracking.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 UDP port matches (default 4242)\n- Press **End** to enable tracking, **Home** to recenter\n- Check firewall isn't blocking UDP port 4242\n\n**Jitter:**\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:**\n- Adjust sensitivity multipliers or use the Invert settings in the Position section\n\n**Yaw feels wrong when looking up or down at extreme angles:**\n- Try toggling 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` from the release folder. This removes the mod DLLs. REFramework is only removed if it was originally installed by this mod. To force-remove REFramework:\n\n```\nuninstall.cmd /force\n```\n\n## Building from Source\n\n### Prerequisites\n\n- [CMake](https://cmake.org/) 3.20+\n- [Visual Studio 2022](https://visualstudio.microsoft.com/) with C++ desktop workload\n- [pixi](https://pixi.sh) task runner\n- Resident Evil 4 Remake installed (for deployment only)\n\n### Build\n\n```bash\ngit clone --recurse-submodules https://github.com/itsloopyo/resident-evil-4-headtracking.git\ncd resident-evil-4-headtracking\n\n# Build and deploy to game (release)\npixi run install\n\n# Build only (debug)\npixi run build\n\n# Package for release\npixi run package\n```\n\n### Available Tasks\n\n| Task | Description |\n|------|-------------|\n| `pixi run build` | Build the mod (Debug configuration) |\n| `pixi run build-release` | Build the mod (Release configuration) |\n| `pixi run install` | Build release and deploy to game directory |\n| `pixi run deploy` | Build debug and deploy to game directory |\n| `pixi run detect-game` | Show detected game installation path |\n| `pixi run uninstall` | Remove the mod from the game |\n| `pixi run package` | Create release ZIPs |\n| `pixi run clean` | Clean build artifacts |\n| `pixi run clean-all` | Clean build artifacts and release output |\n| `pixi run release` | Version bump, build, tag, and push |\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n\n## Credits\n\n- [Capcom](https://www.capcom.com/) - Resident Evil 4 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-4-headtracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsloopyo%2Fresident-evil-4-headtracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsloopyo%2Fresident-evil-4-headtracking/lists"}