Skip to content

VR (vr branch) on WiVRn/Quest 2: no Roblox VR UI, laser pointer or menu button; washed-out colours without MOCKTAIL_VR_SRGB #113

Closed

Description

@jamesisboredcoding

Testing the vr branch (#27) with WiVRn. Tracking, hands and stereo rendering work well, but Roblox's own VR UI never appears, so in-game menus can't be reached.

Setup

  • vr branch at 6232fc0, local Release build with MOCKTAIL_ENABLE_VR=ON
  • Fedora 44, RTX 3060 Ti (proprietary driver), Wayland
  • Quest 2 over WiVRn 26.9 (Flathub Flatpak)
  • Roblox 2.746.1266 (20836), the default payload

Main problem: no Roblox VR UI in normal games

In ordinary (non-VR-specific) games there's no VR bottom bar or menu and no laser pointer, so Roblox UI can't be navigated in the headset. Head and hand tracking and the stereo eye images all work.

  • It's the same with MOCKTAIL_VR_SPATIAL_TOOLBAR=off and with the default (on).

  • Roblox logs no CoreScript errors in those sessions.

  • In the very first in-game session the spatial UI tree was built, but the TopBar error boundary caught a crash in it:

    Error: Rendered more hooks than during the previous render.
    [CoreScriptsErrorBoundary surface=TopBar]
        in IconHost
        in UnibarPills
        ...
        in UnibarMenuWrapper
        in SurfaceGui
        in Panel3D
        in Panel3DInSpatialUI
        in VRBottomUnibar
        in ScreenGui
    
  • In a game that ships its own forked PlayerModule, its VR module waits forever on Workspace.Camera.VRCorePanelParts:WaitForChild("BottomBar_Part"). So with the toolbar off, the legacy VRBottomBar panel isn't created either.

Related: Roblox's VREnabled setting got turned off

At one point GlobalBasicSettings_13.xml had <bool name="VREnabled">false</bool> (and HasEverUsedVR false). With that set, no Roblox UI rendered in the headset at all. Setting it back to true before launch brought ordinary game UI back. It may be worth forcing it on in VR mode, or warning about it.

Left controller menu button isn't seen as Select

The menu button reaches Nightcap: /user/hand/left/input/menu/click is active on /interaction_profiles/oculus/touch_controller. It's written to native channel 27, but Roblox doesn't react. As a test I moved it to each unused channel in turn (26, 18–21, 5–8, 14–17, 27) and none of them toggled anything. That may just be because there's no bar for Select to toggle.

Colours washed out on WiVRn without MOCKTAIL_VR_SRGB=1

Roblox's eyes are R8G8B8A8_UNORM (37) holding gamma-encoded values, and by default the swapchain is also UNORM. WiVRn treats UNORM swapchains as linear, as the OpenXR spec says, so the image comes out washed out and whitish. MOCKTAIL_VR_SRGB=1 (sRGB swapchain 43, raw copy, FXAA linearize path) fixes it, and eye dumps from a diagnostics build match source and destination. Consider defaulting to sRGB, at least on runtimes other than SteamVR.

Minor: WiVRn Flatpak isn't found with MOCKTAIL_VR_RUNTIME=wivrn

The explicit wivrn selection only checks /usr/{local/,}share/openxr/1/openxr_wivrn.json. With the Flathub WiVRn, the manifest is only reachable through the ~/.config/openxr/1/active_runtime.json symlink, which WiVRn creates while its server is running. auto or XR_RUNTIME_JSON=$(readlink -f ~/.config/openxr/1/active_runtime.json) works.

Logs and diagnostics-build eye dumps are available if useful.

Activity

  1. CoderDayton commented on Nov 18, 2026

    @CoderDayton
    Owner

    Should be fixed on the vr branch now (#115). Roblox was saving VREnabled as false, which kept its VR menus from loading. Nightcap now turns it back on before every VR launch. sRGB is also the default now on everything except SteamVR, and MOCKTAIL_VR_RUNTIME=wivrn finds the Flathub WiVRn.

    Can you pull vr and check the menus and colours on WiVRn?

  2. jamesisboredcoding commented on Nov 19, 2026

    @jamesisboredcoding
    Author

    Pulled 5c89b60 and tried it on WiVRn 26.9 with a Quest 2, no local workarounds this time.

    MOCKTAIL_VR_RUNTIME=wivrn finds the Flathub WiVRn now, and the colours look right. VREnabled gets turned back on as well. I set it to false in GlobalBasicSettings before launching and it was true afterwards, so that part works.

    The VR menu still doesn't show up for me though. There's no bottom bar and no laser pointer for the Roblox UI, so I still can't open the menu in the headset. I don't think that one is caused by VREnabled. In my earlier tests I was already forcing it to true before every launch and the bar and pointer were missing then too, in a normal game as well as in VR Hands. VR Hands also still waits forever on VRCorePanelParts:WaitForChild("BottomBar_Part"). The VRBottomUnibar "Rendered more hooks" crash from my first session is in the original post if that helps.

  3. added 2 commits that reference this issue on Nov 21, 2026
    9ebb448
    a3d134f
  4. CoderDayton commented on Nov 21, 2026

    @CoderDayton
    Owner

    Fixed on the vr branch in #121. The menu buttons never reached Roblox before. Now the left menu button toggles the VR bar and the right one opens the in-game menu, and they work without the desktop window focused. On Touch controllers the left one is the only menu button, so press it to bring up the bar and use the laser on the bar's menu icon. Pull vr and reopen this if it still doesn't show up on WiVRn.

  5. jamesisboredcoding commented on Nov 21, 2026

    @jamesisboredcoding
    Author

    Pulled a3d134f and tested on WiVRn. The laser pointer works on the Roblox UI now, thanks.

    The left menu button isn't quite right yet though. In a normal game, pressing it doesn't bring up the VR bar. It just makes the game's own UI flicker for a moment and then it goes back. Recording attached. My guess is that Select is going to the synthetic gamepad, which isn't the VR one since native VR input already has Gamepad1, so Roblox treats it as a normal gamepad Select and toggles UI navigation instead of the VR bar. Focused or unfocused makes no difference.

    One more thing from the log: the interaction profile keeps switching between oculus/touch_controller and khr/simple_controller (WiVRn hand tracking kicking in, I think), and the synthetic gamepad disconnects and reconnects each time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions