Skip to content

fix: the VR menu can be zoomed with the stick again (1-8 m, kept in Gothic.ini) - #546

Closed
BoroBongo wants to merge 1 commit into
developfrom
fix/vr-menu-zoom
Closed

BoroBongo wants to merge 1 commit into
developfrom
fix/vr-menu-zoom

Conversation

@BoroBongo

Copy link
Copy Markdown
Contributor

What

The VR menu can be zoomed again: the right stick (left with the mirrored control layout) pulls it closer (down) or pushes it away (up), 1-8 m. The distance is kept in Gothic.ini.

  • VRPlaceInFrontOfCamera on Gothic's menu (the object with MenuHandler) zooms with IVrInput.GetThumbstick(ControlLayout.TurnSide). The video cinema screen uses the same component and doesn't zoom.
  • Teleporting is off while the menu is open, because the same stick would aim it. It is restored when the menu closes.
  • Gothic.ini [GOTHIC_VR_ACCESSIBILITY] menuDistance is read when the menu opens and written when the stick is released or the menu closes. Log: [Menu] Zoomed to X m. (VR).
  • No prefab change.

Why

Lost-fixes analysis 2026-11-22: the experimental branch had this (c2d9f34c9, on VRMenuBillboard). Main replaced the menu placement (03960a143), so the zoom was gone and the save list was hard to read with the menu 2.5 m away. No issue exists for it.

How to test manually

  • Headset: open the in-game menu, go to Save or Load - right stick down pulls the menu closer, up pushes it away, it stops at about 1 m and 8 m.
  • While zooming with the stick pushed up, no teleport arc appears and the player doesn't move.
  • Close the menu and teleport - teleporting works again.
  • Reopen the menu (and restart the game) - it opens at the zoomed distance; Gothic.ini has menuDistance.
  • Mirrored control layout (left-handed): the left stick zooms.
  • A video (cinema screen) - the stick doesn't move the screen.

Save/load

Not part of save games. The distance is a setting in Gothic.ini.

Known gaps / follow-ups

  • Compiled in the Editor together with the other fixes of this playtest round, not play tested in the headset yet.
  • No menu slider for menuDistance, only the stick.
  • If teleport gets switched off or on by something else while the menu is open, closing the menu restores the old value.

AI usage

Claude found the missing feature by comparing the experimental branch with develop and rebuilt it on develop's menu placement.

…er, up pushes it away (1-8 m, kept in Gothic.ini)

The experimental branch had it (c2d9f34, VRMenuBillboard); main replaced that placement and the zoom was gone, so
the save list was hard to read with the menu 2.5 m away. Now VRPlaceInFrontOfCamera on Gothic's menu (MenuHandler)
zooms with the turning hand's stick (right, mirrored: left) and keeps the distance in Gothic.ini
[GOTHIC_VR_ACCESSIBILITY] menuDistance. Teleporting is off while the menu is open, the same stick would aim it.
The cinema screen, which uses the same placement, doesn't zoom.
@BoroBongo

Copy link
Copy Markdown
Contributor Author

Dropped: the stick zoom didn't feel good in the headset.

@BoroBongo BoroBongo closed this Nov 22, 2026
@BoroBongo
BoroBongo deleted the fix/vr-menu-zoom branch November 22, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant