This is not a standalone game: it is a tiny mod (.pk3 of configs) you layer on top of compatible base game data you install separately. It exists to demo renderer and engine cvars without maintaining a fork of qagame.
Identity: all configs, scripts, bootstrap media, and native UI stub in this tree are original to this engine project. See DEMO_IDENTITY.md. For running legacy retail mods, see docs/COMPATIBILITY.md.
| Artifact | Description |
|---|---|
idtech3_demo.pk3 |
Config mod + minimal native UI (inside the zip as vm/ui<arch>.so and vm/ui.<arch>.so, same binary): enough to open a window without retail ui.qvm. The engine packs native shared libraries only inside zips; it extracts them to vm/native_cache/ under your game home path (toggle com_nativeLibraryExtractPk3, default 1) then loads that file, because dlopen cannot read zip entries directly. Also Duktape (demo_js.cfg), optional Lua (demo_lua.cfg / scripts/lua/ when built with USE_LUA), and gameplay hints. Bootstrap renderer assets ship in the same zip (gameinfo.txt, scripts/demo_bootstrap.shader, gfx/2d/bigchars.png, small gfx/demo/*.png, Inter fonts/Inter_28pt-Regular.ttf from repo fonts/ + fonts/LICENSE.txt) so an empty base/ still clears shader init; demo_features.cfg sets r_font to that file. For the filesystem default.cfg gate, use examples/demo_skeleton/base/z_minimal_bootstrap.pk3 in base/ (or your licensed paks). Regenerate PNGs with python3 examples/demo_game/tools/gen_demo_bootstrap_media.py examples/demo_game/bootstrap_media. |
idtech3_demo_helper |
Optional tiny host binary that prints launch hints (built when BUILD_EXAMPLE_DEMO_GAME=ON). |
Menus: the pack includes a tiny native ui shared library (same API as ui.qvm) so the client can start with an empty base/ - you get a window and on-screen hint text only.
In-game: you still need stock qagame / maps from your base/ to join a map or use full UI. This mod adds:
- Renderer demo -
demo_features.cfgturns on PBR, volumetric fog, SSR, atmosphere, veg wind (Vulkan). - Physics middleware -
demo_physics.cfgenables Bullet + event bus + active ragdoll motors (phys_status). Box3D sample-style scenes live underbox3d_examples/; runexec box3d_examples/menu.cfgfor stacking, joints, sensors, CCD, compounds, character mover, soft-body/fluid, and replay examples. - Lightweight game code -
demo_hooks.jsregistersidtech3.on('map_load')andidtech3.on('frame')and draws an occasional HUD line (proves theidtech3Duktape API insrc/qcommon/js_debug.c). - Lua (optional) -
demo_lua.cfgrunsscript_reload scripts/lua/demo_hooks.lua. Requires a Lua-enabled engine build; otherwise the console reports Lua disabled. - Subsystem hooks - the engine already runs Director, Horde bridge, particles, nav crowd, behavior trees, etc. in
CL_GameFramewhencl_physicsEnabled/cl_navEnabled/ … are on - seedemo_gameplay.cfgandbuildnavmesh. - Fog bioaerosol ecology -
demo_fog_biology.cfg(Maine coastal),demo_fog_biology_namib.cfg,demo_fog_biology_openworld.cfg(streaming + coastal gradient). See docs/FOG_BIOLOGY.md.
From a configured build directory:
cmake -S . -B build-vk-Release -DBUILD_EXAMPLE_DEMO_GAME=ON
cmake --build build-vk-Release --target demo_game_pk3The .pk3 is written to build-vk-Release/idtech3_demo.pk3 (same dir as other outputs).
Or use the wrapper:
./examples/demo_game/build_demo_pack.shOr use the broader asset pipeline wrapper when you want a stable cooked stage, validation logs, hot-reload cfg, and shipping package in one run:
./scripts/asset_pipeline.sh examples/demo_game/mod --skip-shadersThat writes cooked outputs to build/asset-pipeline/idtech3_demo/. See docs/ASSET_PIPELINE.md.
CI / pre-push: test_demo_game_pk3 stages the same tree (configs + cc-built vm/ui*.so when available). Run ctest -R test_demo_game_pk3 or ./tests/scripts/test_demo_game_pk3.sh.
Quick path: use the demo skeleton (run_demo_client.sh, local.env) for a ready folder layout and launch commands.
-
Copy
idtech3_demo.pk3into a mod folder next to your game data, e.g.idtech3_demo/besidebase/:YourInstall/ ├── idtech3 ├── base/ # your licensed compatible pk3s └── idtech3_demo/ └── idtech3_demo.pk3 -
Launch (Linux example):
./idtech3 +set fs_basepath /path/to/YourInstall \ +set fs_game idtech3_demo \ +set cl_renderer vulkanIf your install uses a non-default base folder name, set
+set fs_basegame <name>(see COMPATIBILITY.md). -
On load,
autoexec.cfgruns feature cfgs includingdemo_physics.cfg. Edit files undermod/and rebuilddemo_game_pk3.
Console / HUD text: demo_features.cfg sets r_font, r_fontDpi 96, r_fontHint 1, and r_fontConsoleAlign 1 so cl_builtInTtf (default 1) rasterizes glyphs at runtime via FreeType—no offline atlas, with baseline-aligned console and big HUD strings. r_fontMipmap defaults to 1 in the renderer (atlas mipmaps for minified text). Optional r_fontShadow / r_fontSubpixel are documented in the cfg comments. Optional SDF (sharper at extreme scales): set r_sdfEnable 1 and r_sdfFont "fonts/demo_console_sdf"; regenerate that atlas with python3 examples/demo_game/tools/gen_demo_console_sdf.py fonts/Inter_28pt-Regular.ttf examples/demo_game/bootstrap_media/fonts (Pillow, numpy, scipy). If autoexec.cfg does not run, exec demo_features once or mirror the r_font line in default.cfg.
JavaScript: requires USE_DUKTAPE in the engine build. If js_reload fails, check the console; ensure js_allowEvents is 1 (default).
Lua: requires USE_LUA and a found Lua library at CMake configure time. If script_reload reports Lua disabled, reconfigure the engine with Lua dev packages installed.
This pack does not ship BSPs. Load any map from your compatible base install:
+map yourmapFor renderer regression maps, use the official regression pack and docs under docs/samples/renderer_regression/.
Do not redistribute commercial game .pk3 files. This example ships configs you edit in-tree, GPL engine-authored PNG placeholders, the demo UI native stub you compile, and Inter (SIL Open Font License 1.1 — see examples/demo_game/bootstrap_media/fonts/LICENSE.txt in the source tree and fonts/LICENSE.txt inside the zip).