Skip to content

v0.2.5 - True-3D world geometry prototype

Choose a tag to compare

@devin-ai-integration devin-ai-integration released this 18 Sep 12:57

v0.2.5 - True-3D level geometry renderer (prototype)

In-level gameplay now renders DOOM's world as real GLES3 triangles — not the
software framebuffer on a quad. Geometry is rebuilt every frame straight from
the engine's parsed level data, so moving doors, lifts, lifts and animated
lights behave correctly:

  • Walls: quads from BSP segs with upper/lower splits from front/back sector
    heights, plus alpha-tested masked midtextures
  • Floors/ceilings: triangle fans from each subsector's convex seg ring
    (sky flats skipped)
  • Sprites: cylindrical billboards for all mobj thinkers (monsters, items,
    projectiles) with correct 8-way rotation frames and sector lighting
  • Textures: DOOM wall textures, flats and sprite patches decoded via PLAYPAL
    and cached as GL textures
  • Camera: a doom->app-space model matrix anchors the world onto the real
    tracked head pose; the located per-eye view+FOV supplies the projection —
    true 6DOF with real pitch and roll (the Y-shear hack is bypassed in 3D)
  • Hand-tracking skeletons render in the same space with depth testing

Gameplay, input, hand tracking and WAD handling are unchanged. Menus, title,
intermissions, automap and demos still use the software frame (world-locked
panel / immersive quad).

Prototype scope — honest limitations

  • No HUD/status bar or weapon viewmodel in the 3D view yet
  • Sky ceilings render as void (no sky dome); no visplane-style sprite clipping
  • No mipmaps; texture pegging approximated; geometry rebuilt per-frame
  • Still not verified on a physical Quest — no OpenXR runtime in CI

Path 2 investigation (GLBoom/PrBoom+)

Audited for Android: GLBoom's renderer targets desktop OpenGL 1.1/1.2/2.0
(fixed-function + ARB-assembly shader paths, paletted-texture extensions,
SDL windowing/context). A GLES3 port exists only as commercial
D-Touch-style conversions; adopting it needs a GL->GLES translation layer
(e.g. gl4es) or a rewrite — heavier than the native renderer landed here.
Not integrated; native path recommended. Chocolate Doom has no hardware
renderer at all (software only), so it was ruled out.

Install

adb install -r quest-doom-debug.apk, launch as "Quest DOOM"
(or adb shell am start org.communitypoke.questdoom/android.app.NativeActivity).

Includes all prior fixes: xrInitializeLoaderKHR init, ANativeActivity_onCreate
export, swapchain glFinish, world-anchored panel, frame-loop instrumentation.