OpenTPW

Texture packs (Enhanced, Detailed and Original)#

October 18, 2026. Status: OpenTPW extension ([EXT:texture-pack]), Original world textures by default.

Clarity removed (October 17, 2026). The curated Clarity pack (clarity-enhanced) and everything that offered, downloaded, verified or preferred it were removed from OpenTPW on the project owner's decision. That covers its distribution manifest and checksum, the in-game download screen, the browser's lazy texture delivery, the packaging and publishing tools and the publish workflow. A saved clarity-enhanced choice reads as Original (see "Setting and migration"). Clarity was the only downloadable pack, so OpenTPW has no pack download system any more: packs are built locally or installed by hand.

The world-texture options offer Original (the game's own textures), Enhanced (the enhanced pack, the default name of the local builder), Detailed, and other installed packs. An explicit saved choice is preserved. A fresh installation uses Original world textures. Enhanced is always listed; without a local enhanced pack it behaves like Original.

Redrawn interface art removed (October 18, 2026). OpenTPW no longer ships redrawn HUD and menu buttons. The 55 AI-redrawn button textures, the tools that made them, the HUD and icons option, the browser build's predecoded copy of the art and the builder's directory option for hand-made replacements were removed on the project owner's decision: the original icons now decode crisply (the WCT planar-row decoder was fixed), so the redraws were no longer needed. Old settings files that still carry the EnhancedInterface key load unchanged and the key is ignored.

Packs#

For a named pack, OpenTPW checks these locations in order:

  1. <config>/texture-packs/<name> — a player's local override.

  2. <program>/content/texture-packs/<name> — portable content included by release packaging.

Each pack needs a supported pack.json and a textures directory. An invalid local manifest is reported and a valid bundle of the same name is tried. The options list usable packs from both locations once, with Enhanced and Detailed first, then the others alphabetically. If a selected pack is unavailable, the game reports the missing pack and continues with original world textures.

Desktop publishing already copies content/**/*, so a pack staged in the second location travels with the executable and works offline. This runtime support does not fetch packs or include their binary content by itself. The browser build has no local packs.

An explicit OPENTPW_TEXTURE_PACK=<pack>/textures override pins that directory and takes precedence over the saved choice.

The original textures are small: 8,375 .wct textures in the installed WADs, mostly 32×32 (2,777) and 128×128 (2,352), the largest 256×128 (48.4 million pixels in total). On a high-resolution or Retina display at native render size they are magnified a lot. An enhanced texture pack replaces them with AI-upscaled copies (4×: 128×128 becomes 512×512).

Variants#

The local builder offers two world-texture variants. Each is a separate pack under <config>/texture-packs/, beside graphics.json; OPENTPW_CONFIG_DIR can override the config directory. You can build either or both and switch between them in the options.

The original .wct textures are lossy (wavelet) compressed, so they carry blocking and ringing artifacts that a 4x upscaler happily magnifies. Both variants therefore first run a 1x de-artifact model over every world texture and only then upscale. The lead's comparison on eight jungle textures at native resolution:

Pack nameOptions labelPipelineLook
enhanced (builder default)Enhanced (legacy)1x DeJPG, then Real-ESRGAN realesrgan-x4plusCrisp edges, keeps the original cartoony CG style
detailedDetailed1x DeJPG, then ultrasharp-4x (4x-UltraSharp)Most detail, some grain

Interface art always uses realesrgan-x4plus-anime without the pre-pass. Guest sprite atlases use the variant's world model and no pre-pass by default (see "Pre-pass" below).

Models and licences#

You supply the models; OpenTPW ships and downloads none of them.

Make your first local pack#

OpenTPW ships no world-texture pack, so a pack is something you build from your own installation (desktop only; the browser has no local packs).

  1. Download realesrgan-ncnn-vulkan for your platform and unpack it with its models folder next to the executable.

  2. For a quick trial that takes minutes instead of hours, build only one world: add --texture-pack-subtree levels/jungle to the command below. Without it the whole game is upscaled.

  3. Run the builder from the OpenTPW folder (the scripts/run.sh / scripts/run.ps1 wrapper starts the same game with the options you pass):

    bash scripts/run.sh --game-path '/path/to/Theme Park World' --build-texture-pack \
      --upscaler /path/to/realesrgan-ncnn-vulkan --texture-pack-subtree levels/jungle

    The pack is written to <config>/texture-packs/enhanced (--texture-pack-name <name> changes the name).

  4. Start OpenTPW, open Game Options > OpenTPW and choose the pack under Enhanced textures (Original, Enhanced, Detailed, then other packs). The textures swap in the background; no restart is needed.

  5. To go back, choose Original again.

The sections below explain the options, the optional pre-pass and the two variants.

Building a pack#

The local builder makes a pack on the player's machine from their own installation. Its default name is enhanced. Building does not upload the resulting pack. OpenTPW distributes no pack images (since Clarity was removed); runtime pack support does not grant rights to the original assets or the models used to create them.

  1. Get realesrgan-ncnn-vulkan for your platform (the macOS build is universal and runs on Apple silicon through MoltenVK). Unpack it with its models folder next to the executable. For the Detailed pack add the Upscayl ultrasharp-4x model files there. Get the DeJPG ONNX file.

  2. Build (the ONNX model runs through ONNX Runtime: CoreML on macOS when available, CPU otherwise):

    # Enhanced (default pack name "enhanced")
    bash scripts/run.sh --game-path '/path/to/Theme Park World' --build-texture-pack \
      --upscaler /path/to/realesrgan-ncnn-vulkan --prepass-model /path/to/dejpg.onnx
    
    # Detailed
    bash scripts/run.sh --game-path '/path/to/Theme Park World' --build-texture-pack \
      --upscaler /path/to/realesrgan-ncnn-vulkan --prepass-model /path/to/dejpg.onnx \
      --texture-pack-name detailed --upscale-model ultrasharp-4x

    Options: --texture-pack-name <name> (default enhanced; the pack goes to <config>/texture-packs/<name>), --upscale-model <name> (default realesrgan-x4plus), --prepass-model <onnx> (without it there is no pre-pass and the build is exactly the old one), --prepass-sprites, --texture-pack-dir <dir> (overrides the location), --texture-pack-subtree <data-relative dir> (e.g. levels/jungle, for a quick trial; it selects WAD directories), --interface-model <name> (default realesrgan-x4plus-anime), --texture-pack-no-interface, --texture-pack-interface-only, --texture-pack-sprites-only (with --texture-pack-interface-only both) and --texture-pack-merge (keep that pack's existing textures and add or replace the ones built now; it warns when the models differ). All of these act per pack name. The game lists packs under the config directory and bundled content; a pack built elsewhere is used with OPENTPW_TEXTURE_PACK=<dir>/textures, which pins the pack and overrides the setting.

  3. Choose Game Options -> OpenTPW -> Enhanced textures (Original, Enhanced, then Detailed and any other installed pack) and press OK. The textures are swapped in the running game in the background; no restart is needed. Enhanced is always offered: without a local enhanced pack it behaves like Original.

Setting and migration#

graphics.json stores the choice as "TexturePack": "<name>". "" is Original (the default when the key is missing or null), "enhanced" is Enhanced, "detailed" is Detailed, and other names select the corresponding local or bundled pack. Files from earlier versions with "EnhancedTextures": true are read as "TexturePack": "enhanced", false as Original; the old key is dropped the next time the settings are saved. Smoke tests always run on the originals. If both keys exist the new one wins. Names must be plain directory names (letters, digits, -, _, .).

Clarity migration. A saved "TexturePack": "clarity-enhanced" (any case) reads as "" (Original world textures). GraphicsSettings.Load logs "The 'clarity-enhanced' texture pack was removed; using the original world textures." once and writes the migrated file back, so later starts are silent. A player-local copy under <config>/texture-packs/clarity-enhanced is not removed and gets no special handling: if it holds a valid pack.json and textures directory it is listed like any other installed pack (labelled "clarity-enhanced") and can be selected again by hand.

Removed HUD choice. Earlier versions also stored "EnhancedInterface": true|false (the HUD and icons option). The key is ignored when read and is not written back. Smoke tests set the world choice to Original for original-pixel checks.

Reading settings, finding installed packs, and activating local files never touch the network.

Pre-pass#

--prepass-model runs the 1x model over each world texture before padding and upscaling. The model has a fixed 256x256 input: textures up to 192 px per side are centred in one tile and wrap-padded (world textures tile), larger ones are cut into overlapping tiles with a 32 px margin that advance by 192 px, reading across the border by wrapping, so tiling textures stay seamless. Only RGB is processed; alpha passes through untouched. pack.json records the model as PrepassModel.

Guest sprite atlases (decision): they use the variant's world model and, by default, no pre-pass. Trial on the spr_be atlas with --prepass-sprites (RGB only, edge-padded, alpha untouched) showed no fringes, but the gain is marginal (slightly cleaner shading), the 1024x256 atlas takes 12 model runs (about 18 s per atlas, 146 s for the eight kid atlases against 0 s) and tile borders can show faint steps on non-tiling art. Add --prepass-sprites to opt in.

Timing: one 256x256 run takes about 1.2 s on Apple silicon through CoreML (1.9 s on CPU) and the builder runs four textures at once (about 0.47 s per 128x128 texture, OPENTPW_PREPASS_PROVIDER=cpu forces the CPU provider). A 128x128 texture takes one run, a 256x256 one four. A full build with the pre-pass therefore takes roughly an hour or more on top of the upscale; try --texture-pack-subtree levels/jungle first.

Switching at runtime#

Changing the choice in the options takes effect at once, in the background: there is no loading screen and the player keeps playing while the textures change one by one; a small line at the top of the screen shows "Updating textures in the background... n / total" until the switch is done. (Building a pack is a separate, slow step: see "Building a pack".) Technically, the switch reloads every texture the game has made from a .wct (a registry of weak references keyed by game path): the new pixels are decoded on a worker thread through a small bounded queue (a 4x pack would otherwise hold gigabytes in memory), uploaded on the render thread in slices of about 8 ms per frame, and swapped into the existing Texture objects. Materials look the GPU texture up when each draw is recorded, and the old GPU texture is deleted after the frame. A full switch is fast: in the front end, 134 loaded textures swapped to and from the real 1.4 GB pack in 0.5-1.3 s over 60-140 frames, with the working set unchanged (about 4 ms per texture on the render thread, so the roughly 4,200 textures of a fully loaded park take under half a minute). Interface images (UI renderer cache) and guest sprite atlases reload when the switch ends. Textures from the bonus content roots do not come from game .wct files and are not part of the pack. OPENTPW_TEXTURE_PACK pins the pack, so the options row has no effect then.

What the builder does#

At load time Texture checks the active pack before decoding a .wct; a missing file falls back to the original. OPENTPW_TEXTURE_PACK=<pack>/textures forces a pack for tests.

Results and limits (MacBook Pro, Apple silicon, Retina)#

Source: docs/TEXTURE-PACKS.md in the project repository.