rust_pod_gold

POD Gold brings Ubisoft’s futuristic 1997 racing classic to modern Windows and Linux systems as a native Rust port. Race through dark sci-fi landscapes with high resolutions, widescreen support, uncapped frame rates, and modern gamepad controls. Extended draw distance, more precise geometry, anti-aliasing, and a customizable HUD bring the presentation up to date while preserving the original gameplay. Every enhancement can be switched back to the original behavior.

README

POD Gold in Rust

A native port of POD Gold (Ubi Soft, 1997) in Rust. The game's own program is recompiled: the player's WPOD3DFX.EXE is lifted to Cranelift IR and compiled to native code when the game starts, and the Windows, Glide and DirectX functions it calls are implemented in Rust (OpenGL 3.3 for the 3D renderer, winit, cpal for sound, gilrs for gamepads). No game code or data is part of this repository or its releases: you need your own copy of the game.

Built with recomp_kit.

A race on Beltane in widescreen

The main menuChoosing a carThe settings (F10)
The main menuChoosing a carThe settings (F10)

Playing

  1. Download from the releases: rust_pod_gold-...-windows-x64.zip for Windows or rust_pod_gold-...-linux-x64.tar.gz for Linux (x86-64, OpenGL 3.3), and unpack it.
  2. Put an image of your POD Gold CD next to rust_pod_gold.exe (Linux: rust_pod_gold) or into the game_files folder: the .cue sheet with its .bin file(s). The music is the CD's audio track, so keep the .cue next to the .bin. An .iso, .img or .mdf has the game's files but no music, and without a .cue the game stops with "Problem with SoundDriver initialization". You can also copy the contents of the CD (or your installed POD folder) into game_files; the .cue and .bin still have to be there or next to the program.
  3. Start rust_pod_gold.exe (Linux: ./rust_pod_gold in its folder). It finds the game, checks the version, and sets it up in game_files/POD: WPOD3DFX.EXE and DATA (with the videos), taken out of the CD image; the image stays where it is. Nothing in game_files is ever deleted: remove other copies yourself once the game runs. The first start compiles the game (kept in game_files/POD/compiled.bin), later starts are quick.

The Glide version of POD Gold is supported (WPOD3DFX.EXE, 1194496 bytes, SHA-256 031f003e...cbe7); with any other, or without one, rust_pod_gold says so. Its messages go to rust_pod_gold.log next to it on Windows, to the terminal on Linux. Settings go to registry.txt, the game's own settings to WINDOWS/UbiSoft/Ubi.ini, both in game_files/POD, with the saved games. On Linux the libraries for sound (ALSA, or PipeWire/PulseAudio through it) and gamepads (libudev) are needed; every desktop distribution has them. Linux has not been tested much yet.

Gamepad

Connect it before starting, then choose the steering wheel in Options, Controls. The left stick steers, RT is gas, LT brake (both analog; F10, Game, "Stick pedals" adds the stick's up and down). The menus work with the D-pad, A and B.

What is new compared to the original

  • High resolution and widescreen (Hor+, with an adjustable field of view), fullscreen (Alt+Enter), anti-aliasing and texture filtering
  • Frame rates up to unlimited (several hundred frames a second), with the game's logic unchanged
  • The HUD in the corners of a wide picture, every part of it shown or hidden on its own
  • Sub-pixel geometry: polygons at their exact place instead of whole pixels, so nothing wobbles or snaps
  • The whole track drawn far ahead (no scenery popping in, no gaps), cars always with their full model, car shadows always on the ground
  • Upright verticals: less of the camera's downward tilt, walls more upright
  • Gamepads (XInput layout, see above)
  • The game's language chosen in the settings (English, French, German, Italian, Spanish)

Every improvement can be switched back to the original's behaviour in the settings.

Settings

F10 opens the settings, in the menus and during a race. Arrows choose and change, PgUp/PgDn switch the page, F10 or Esc closes it. Everything applies at once.

  • Display: fullscreen, resolution, VSync, Max FPS (30 to 360 or Unlimited), anti-aliasing, textures (filtering), frame rate display, widescreen
  • HUD: the parts in the corners or in the 4:3 middle, steady messages, and each part on its own: place, lap, standings, lap times, split times, race clock, bars, speed and gear, damage
  • Advanced: field of view, sub-pixel geometry, upright verticals, draw distance, shadows, car detail
  • Game: language, stick pedals

Building

cargo build --release --workspace
cargo run --release -- path/to/WPOD3DFX.EXE

Without a path it sets up and uses game_files (next to rust_pod_gold.exe, else in the current folder) as above. cargo test --release needs no game files. How it works and what is open: CLAUDE.md and PLAN.md.

License

MIT (the code here). The game and its files belong to their owners and are not part of this project.