monkeylashes
← Medal of Honor: Allied Assault in VR

Medal of Honor: Allied Assault 0.1.0: the first playable build

This is the first build I think is ready for other people to try. It’s OpenMoHAA, the open-source engine for Medal of Honor: Allied Assault, compiled for Android and rendered through OpenXR on a Quest 3. It runs on the headset and nothing is streamed. Missions start and play through to the end. The APK is just the engine, so you need the game’s data from a copy you own. I don’t distribute any of it.

Why it uses the old renderer

The port runs renderergl1 on gl4es instead of renderergl2. That sounds backwards, since rend2 is the newer renderer, but the old fixed-function path only asks the game’s content for what it actually has.

rend2 ran this game at 10 to 15 fps. The GPU was done in 3 ms, so drawing wasn’t the problem. The CPU was spending 50 to 60 ms per eye binding GLSL programs, setting up lighting that art made in 2002 doesn’t have the maps for. Because that cost is per eye, it doubles in VR.

Resolution and frame rate

Each eye renders at the full 1680×1760. That holds 90 fps standing still and drops to 77–85 while moving, so while you’re moving most frames are being reprojected by the compositor instead of drawn by the game.

I chose that on purpose. It plays well and the picture is a lot sharper. If you’d rather have the frames, resolution is the first thing to turn down, and vr_resolutionScale is there for that.

Rough edges

  • The HUD is still drawn flat in screen space during gameplay, so it doesn’t converge properly. The menus are fine because they sit on a quad layer fixed in the room.
  • Weapon grip alignment is one global setting shared by every weapon, so a pistol and a bazooka sit in your hand the same way.
  • I’ve written the two-handed hold, the reload gesture and off-hand steering, but I haven’t tried them on the headset yet.
  • Some foliage still turns with your head.
  • I’ve only tested this on a Quest 3.

There’s also a SIGSEGV from the Adreno driver in the log on every launch. It looks alarming, but it predates the VR work (it was there in the flat builds too) and the process survives it.

I used Team Beef’s RTCWQuest as my reference the whole way through, and it’s all built on the OpenMoHAA project’s engine.