Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

GT3 Revisited

An open-source reimplementation of the Gran Turismo 3 A-Spec engine for modern platforms: Windows, macOS, Linux, Android, iOS, Meta Quest and PC VR.

Download the latest release · Installing · FAQ · Modding · Controllers · Discussions

You need a disc image (.iso or .chd) of your own copy of the game. Nothing from the game is included here. Cars, courses, menus, movies and music are loaded from your image at runtime and never extracted to disk.

What is this?

A native C++ port of GT3. Each part of the game was ported or rewritten to run on modern hardware:

  • Physics, AI and race rules are ported from GT3 routine by routine, in the same order of operations, with the PS2's single-precision float rounding reproduced in software. They're checked step by step against the original, with identical results on x86-64 and ARM.
  • Rendering is a native renderer on Vulkan and Metal through SDL_GPU, with OpenGL ES for GPUs without Vulkan. GT3's models, courses, lighting, reflections and effects are drawn at your resolution and aspect ratio, not upscaled from 640×448. Physics ticks at GT3's 60 Hz, and frames between ticks are interpolated for higher refresh rates.
  • Menus, GT Mode, the HUD, cameras, replays and sound are rewritten to match the original, using the disc's own layouts, text, fonts and audio.

Open your disc image to start at the opening movie and title screen, as on a PS2.

Features

  • The full game: GT Mode, Arcade, licenses, championships, endurance races with pit stops, 2-player split screen, the Replay Theater
  • Any resolution, widescreen, high refresh rates and MSAA, or the original 640×448 if you prefer it
  • Online races for up to 16 players on PC, Mac, Linux, Android and Quest, with a session code and no port forwarding. The host can fill the grid with CPU cars up to 32 in all and set car rules, and everyone picks tires and tunes their car in the lobby. Players without someone's mod car can download it from the lobby.
  • VR on the Meta Quest (standalone, no PC) and PC VR headsets: stereo 3D with head tracking, the HUD in front of you, and the menus on a big screen
  • Phones and tablets: touch controls you can move and resize, tilt steering, or a controller
  • Wheels with force feedback, DualSense adaptive triggers, Xbox impulse triggers, and every control remappable
  • Quick race: any event with any car, nothing to unlock. In a custom race you pick the track, the laps, up to 31 opponents with their cars, colors and skill, and your grid slot.
  • Custom cameras: build your own race views in the camera editor (chase, hood, cockpit) with your own field of view and mirror, and share them
  • NTSC-U, PAL and NTSC-J discs, the Gran Turismo Concept discs, and modded discs like GT3: Concept
  • Playable on budget phones, 90 fps on the Quest 3, and an OpenGL ES renderer for old PCs without Vulkan

Mods

  • Texture packs at any resolution. Dump the game's textures from the Mods screen, edit them, and reload them live without restarting. You can convert PCSX2 texture packs too.
  • New cars at the dealers, in the arcade and online, electric ones too
  • Your own GT Mode events and championships with the Event creator, with a pool of up to 32 opponents per race, shared as a .zip
  • Your own music as race songs (MP3, FLAC, WAV or Ogg)
  • Import and export saves for a real PS2 or PCSX2 memory card, plus a save editor

Smaller stuff

  • Extra views: bumper with no mirror, far chase, free look on the right stick, and the driver's view of any car in replays
  • mph or km/h on any disc
  • Skip songs from the pause menu, or with a button combo mid-race
  • Full detail on distant cars, and the showroom's detailed wheels in races
  • Replay effects (blur, heat haze, vignette) on or off
  • A Car database with torque curves, a Movie theater and a Music jukebox
  • Background input, for playing with the game on a second monitor
  • A disc library for switching discs, and a save folder you can sync between devices
  • In-game updates, Discord status, F12 screenshots

All of it is optional. Turn it off and it's GT3 as it was.

FAQ

Is it an emulator or a recomp? Neither. It's a native port with no PS2 code in it at runtime (What is this?).

Do I need a PS2 BIOS? No, just your disc image.

Will it run on my PC or phone? Probably. Most PCs from the last 15 years, Apple Silicon Macs (macOS 12 or later), Android 7 or later and iOS 16 or later. On phones the defaults are lighter settings.

Can I play online with friends on other devices? Yes. PC, Mac, Linux, Android and Quest players can race together, on any region's GT3 disc (Online).

Can I use my PCSX2 texture packs and saves? Yes. Convert packs from the Mods screen, and import saves or PCSX2 memory cards from the Load game page (Saves).

Is it finished? The whole game is playable. The few differences from the original are listed below.

Found a bug? Open an issue and attach the log (Settings → Disc & saves → Show the log).

Is it free? Yes. It's open source, with no account and nothing to buy.

Installing

Download the package for your system from the Releases page. Each release lists SHA256SUMS, and every file carries a build attestation: gh attestation verify <file> --repo matt-pulsipher/GT3-revisited checks that it was built by this repository's workflow from the tagged source. The packages are not signed with a developer certificate, so the first launch needs one extra step:

  • Windows: unzip and run gt3r.exe. If SmartScreen says "Windows protected your PC", choose More info → Run anyway. 3D runs on Vulkan, or on GPUs without it (e.g. GeForce 400/500, Intel HD 2000–4000) on OpenGL ES through ANGLE, which the package includes.
  • macOS (Apple Silicon, macOS 12 or later): unzip and move gt3r.app to Applications. On the first launch macOS says it cannot verify the app; open System Settings → Privacy & Security, scroll down and choose Open Anyway next to GT3 Revisited. Later launches open normally.
  • Linux (x86_64): extract the archive and run gt3r. 3D needs a Vulkan driver (Mesa's mesa-vulkan-drivers on AMD / Intel, or your GPU vendor's), or on older GPUs without Vulkan, OpenGL ES 3.0 (Mesa, or NVIDIA's legacy drivers).
  • Android (7.0 or later, arm64 or x86_64): open the .apk on the device and allow installing from that source when asked. In countries where Android requires verified developers for sideloaded apps, use Android's advanced install flow for unverified apps (Developer options) or install with adb install gt3r-android.apk.
  • Meta Quest (verified on Quest 3; Quest 2, 3S and Pro untested): turn on developer mode for the headset in the Meta Horizon phone app, then install gt3r-quest.apk from a computer with adb install gt3r-quest.apk (or SideQuest / Meta Quest Developer Hub). Copy your disc image into the headset's Download folder over USB. The game is in the library under Unknown Sources. Details: VR.
  • PC VR (Windows x64, Quest Link, SteamVR or any other OpenXR runtime): use gt3r-windows-x64-vr.zip in place of the Windows package. Start your headset's software first; with no headset the game opens in its window. With both Meta's software and SteamVR installed, Settings → VR → Headset software picks one. Wheels, pads and VR controllers all drive, and the window shows what the headset shows. Bind Recenter view to a wheel button in Settings → Controls, or press F9. Details: VR.
  • iPhone and iPad (iOS 16 or later): there is no package, because an iOS app has to be signed for the device it runs on. Build it on a Mac and install it with Xcode and your own Apple ID; a free account is enough (Building). With a free account the installed app stops opening after 7 days: installing it again renews it, and your saves and settings stay.

Direct links to the newest release, always the same: gt3r-windows-x64.zip, gt3r-macos-arm64.zip, gt3r-linux-x86_64.tar.gz, gt3r-android.apk, gt3r-quest.apk, gt3r-windows-x64-vr.zip. The game's Download update uses them.

Or build it yourself (Building); a build from source needs none of the steps above.

Running

You need a disc image of Gran Turismo 3 A-Spec or Gran Turismo Concept. The NTSC-U, PAL and NTSC-J releases of GT3 are verified; the list, and the Concept discs, are in COMPATIBILITY. Use a .iso image or a .chd created from it with chdman createdvd.

gt3r                                  # first run asks for your disc image
gt3r "/path/to/Gran Turismo 3.iso"    # or pass it directly

You can also drag the .iso or .chd onto the window. On Android and the Quest, choose Open disc image and pick the file (android/README.md). On iOS, Open disc image shows the Files app's picker: the image can be anywhere it reaches (On My iPhone, a network share, another app's folder) and is read where it is, never copied. Every disc you open joins the disc library (Discs... in the main menu, or Settings > Disc & saves), which remembers what each one is; picking another disc there goes straight to its title menu. If the remembered disc is missing at startup (moved, or on a drive that isn't connected), the first screen says which file failed and offers the library's discs that are there.

The game starts like GT3: the opening movie (skip with Cross/Start), then the title menu. Press Select on the title menu, or click/tap the GT3R menu button beside it, to reach GT3 Revisited's main menu underneath the game:

Main menu
Playback to the game (opening movie, then the title menu)
Online battlerace other players over the internet or a LAN
Settingsdisplay, audio, controls, force feedback, touch, disc, online
Modsenable or disable installed mods
Music jukeboxthe soundtrack from your disc
Quick raceany event with any car, or a custom race with your own grid of opponents
Event creatormake your own GT Mode events (docs/MODDING.md "Adding events")
Time trialany car on any course; saved replays
Movie theaterthe game's movies
Car databasespecs, torque curves, upgrades and events
Save editorchange a GT Mode save (below)
Discs...your disc library: switch discs, or add one
Developer optionsasset browser, viewers and test screens for working on the project
Quit

Keys: F11 toggles fullscreen and F12 saves a screenshot to screenshots/ in the user data folder. In PC VR, F9 recenters the view.

User data folder

Settings, saves, replays, mods and screenshots live in:

  • Windows: %APPDATA%\GT3Revisited\GT3Revisited\
  • macOS: ~/Library/Application Support/GT3Revisited/GT3Revisited/
  • Linux: ~/.local/share/GT3Revisited/GT3Revisited/
  • Android: the app's private storage, shown in the Files app as GT3 Revisited (the Mods screen's Open folder goes there)
  • iOS: the app's Documents, shown in the Files app as On My iPhone › GT3 Revisited and in Finder when the device is connected (the Mods screen's Open folder goes there); a copy of the disc image can go there too

If a portable.ini file sits next to the executable, all user data is kept beside it instead. Saves and replays can go in another folder of your choice (Saves).

In the folder
config.inisettings (below)
saves/GT Mode saves (below), unless Settings chooses another save folder; a folder per region and per disc of its own (COMPATIBILITY)
replays/saved replays (.gt3replay), listed by the Replay Theater and Time trial; in the save folder too, by disc as saves/
mods/installed mods (MODDING)
music/your own race music (below), unless Settings chooses another folder
music_playlist.txtyour songs' playlist (their order and check marks)
music_songs.txtyour songs as the last scan found them, and how loud each is (so the next start has them at once)
screenshots/F12 screenshots
gt3r.logthis session's log, for bug reports (Settings → Disc & saves → Show the log); after a crash it ends with why the game closed. Your home folder shows as ~ and your user name as <user>; it stops at a few MB
gt3r.prev.logthe session before this one's log (the one that crashed, once you start the game again)

Your music

Your own MP3, FLAC, WAV and Ogg files can play as race songs: choose their folder in Settings → Audio → Music folder (or copy them into music/) and they play in place of the disc's. The Both and Original tabs in the game's Options → Favorite Music List mix them with the disc's or go back to it. In races, the pause screen's L1 / R1 skip songs. Step by step: MUSIC.

Settings

Settings (main menu, the first-run screen, or --screen settings) edits everything with a pad, keyboard, mouse or touch: Up/Down picks an option, Left/Right changes it, Cross toggles or opens, Triangle/Esc goes back, L1/R1 or Tab switches page. Changes are saved immediately; all but the 3D renderer switch apply at once. The game's own Options menu (title menu) works as in the original. config.ini can also be edited by hand; keys marked (file) are only there:

Section / keyValues
[game] discpathdisc opened at startup
[game] recent1..recent32pathsthe disc library, most recently opened first
[disc_library]what each library disc is, as of when it was last opened
[app] startgame / hubstart with the game, or in Developer options
[video] fullscreenon / offdesktop window mode (F11)
[video] aspect16:9 / 4:3 / fillthe game's picture: 16:9 (default), 4:3 like on a 4:3 TV, or the whole screen (races use its full width; menus and movies stay 4:3)
[video] gamma0.5..2.0the whole picture lighter (higher) or darker (lower) in its shadows and middle tones, black and white unchanged; default 1, GT3's colors (Settings → Display → Gamma, with a row to reset it). Screenshots keep GT3's colors
[video] vsync1 / 0wait for the display refresh
[video] limit_60fpson / offon 120 Hz and faster displays, draw about 60 frames a second (every Nth refresh)
[video] show_fpson / offthe frame rate in a corner of the screen (default off)
[video] msaa1 2 4 83D anti-aliasing (clamped to the GPU); default 4, 2 on phones, tablets and the Quest (Android, iOS)
[video] anisotropy1 2 4 8 16anisotropic texture filtering (1 = off); default 4
[video] render_scaleauto, 0.5..4.03D resolution vs. the screen; above 1.0 the 3D views render larger and are scaled down (supersampling), up to 16384 pixels a side
[video] dynamic_resolutionon / offlower the 3D resolution (to 50% at most) when the GPU can't keep up and raise it while it keeps up, up to render_scale; with auto, up to the screen's full resolution (at most 1440 lines), starting where the last race ended (kept in dynamic_start). Default on for phones and tablets
[video] full_car_detailon / offevery car in full detail at any distance; off: distant cars switch to GT3's simpler models. Default on, off for phones and tablets
[video] showroom_wheelson / offclose cars in races get the car menus' detailed rims and tires; off: GT3's race wheels. Default on, off for phones and tablets
[video] sharp_menu_modelson / offcars and prizes in the menus at the screen's resolution; off: at the game's own 640x448, like the menu art. Default on; phones and tablets keep license cards and trophies at 640x448
[video] heat_hazeon / offGT3's heat shimmer over some trackside camera shots in replays, on some courses. Default off
[video] depth_of_fieldoff / standard / highGT3's soft focus in replays and demos, on some courses. standard: GT3's own blur; high: smoother on sharp screens, slower. Default off on phones and tablets, high elsewhere
[video] replay_vignetteon / offGT3's darker picture corners in replays and demos, on some courses. Default on
[video] replay_trailon / offGT3's fading afterimage after some camera cuts in replays. Default on
[video] gpuauto / gles / gles_driver / 0the 3D renderer: auto = SDL_GPU (Vulkan, Metal), or OpenGL ES where the GPU has no Vulkan (Windows, Linux); gles = OpenGL ES first; gles_driver = the same on Windows with the graphics driver's OpenGL ES rather than ANGLE; 0 = 2D-only (restart required). Settings offers only the kinds of OpenGL ES that open on the computer
[video] original_reson / off(file) races at the PS2's 640×448 in a 4:3 frame
[video] original_filternearest / bilinear(file) upscaling filter for original_res
[video] car_reflections, car_shadowson / off(file)
[audio] devicedevice nameoutput device (Windows, macOS, Linux); absent: the system default. A device that isn't connected plays on the default until it is
[audio] music_volume, sfx_volume0.0..1.0
[audio] surround_cueon / offGT3's rear-channel phase cue for Pro Logic decoders
[music] folderpathyour music folder (absent: the user data folder's music/; Settings → Audio)
[saves] folderpaththe save folder for saves/ and replays/ (absent: the user data folder; Settings → Disc & saves). On Android, a folder picked there (not a path)
[music] show_songon / offthe race song on the pause screen, with L1 / R1 to skip (default on)
[music] next_racenext / samenext (default): a new song every time, as GT3 does; same: a race, restart or replay starts with the song the last one ended on, from its start (Settings → Audio → Next race starts with)
[music] race_songtextthe race song playing last (disc: or yours: and its id), for next_race = same
[race] viewsall / gt3race views: GT3's plus bumper without mirror and far chase, or GT3's only (Settings → Cameras); your own cameras follow either
[race] camera_shakeon / offGT3's in-car vibration (Settings → Cameras)
[custom_camera<n>]id, name, enabled, mount, x y z, yaw pitch roll, body_roll, fov, car, hud, mirror, mirror_x mirror_y mirror_sizeyour own race cameras, one section each in the camera button's order (Settings → Cameras; made in its camera editor). mount (the editor's Anchor): follow / body / hood (seated by the car's own shape) / incar (the driver's seat); body_roll 0..100: how much the view rolls with the car's body roll (0 level); car: shown / hidden (shown fades the car out while a camera on or in it looks back across it). Keys: race/custom_cameras.h. Export all cameras / Export this camera write the same sections to a camera file (.ini) that Import cameras adds from, on any device. In a VR headset a camera sets where you sit and which way you face; you look up, down and around with your head
[cameras] preview_course, preview_car, preview_paintlabels, paint indexthe camera editor's race: the course and car of your last race
[race] unitskmh / mphspeed unit in races and menus (absent: the disc's, mph on the North American disc, km/h on the European and Japanese ones)
[race] splitauto / horizontal / vertical(file) 2P split (default: as GT3)
[race] analog_responselinear / originalsticks, triggers, wheels, touch and tilt: a linear response (default) or GT3's DualShock 2 curves (Settings → Controls)
[input] backgroundon / offdesktop: controllers and wheels keep driving the game while another window is in front, e.g. on a second monitor (default off; Settings → Controls). The keyboard works only in the game's window
[player1], [player2]controller (auto, a device name, or keyboard), keyboard, race, rumble (auto, modern, gt3); phone_vibration (player 1, Android)see INPUT
[player1.actions], [player2.actions]next_song, previous_songthe song controls' chords (INPUT)
[ffb]see INPUTDualSense/Xbox triggers and wheel force feedback
[touch]see INPUTon-screen controls on phones and tablets; Customize layout moves, resizes and hides each one
[online] serverhost namerelay server (default gt3r.gameversions.com; set in the lobby)
[online] update_checkon / offask the relay server for a newer version at startup (Settings → Online)
[options]the game's own Options menu (set in game); ours: music_source (original / custom / both; unset: custom) and music_mix (Both's order / shuffle), the music list's tabs
[mods.<disc key>], [mods]each disc's mod choices, and earlier versions' (MODDING)

Saves

GT Mode keeps any number of saves in saves/ (no memory cards). The title menu's Load game / Save game / File Operation pages list them by name, with day, credits, cars and completion, and let you start a new game, save under a new name or over a save, rename, copy and delete. The game being played autosaves after every race and continues at the next launch. A save that cannot be read (damaged, or from a newer version) is never written over.

Settings → Disc & saves → Save folder keeps the saves and replays in another folder, for example one that Syncthing, Nextcloud or a cloud drive keeps the same on your phone and tablet. On Android it can be any folder the system's folder picker offers. A folder without saves gets a copy of yours; a folder that already has saves (from your other device) is used as it is, so that device's game continues. The game's own folder keeps its saves, and Use the game's save folder goes back to them. Play on one device at a time: two devices saving the same game at once leave the sync app two copies of it.

Save editor (main menu) changes a save of the disc's region: credits, prize money, the day, races, wins and trophies, the endings seen; the garage (add any car of the game in any paint, remove a car, choose the active car, set a car's paint, odometer, engine, oil and dirt); each license test's medal; each race's best place and the championships won; the arcade's courses and car levels. Numbers change with Left/Right or a number pad (keyboard digits work too). Nothing is written until Save (Start); leaving with changes asks first. The game being played takes the changes at once. Medals and results are set as chosen; Receive prize cars (on the Licenses and Races pages) then gives the prize cars they have earned and the save has not received yet, each picked the way the game picks it.

Saves from and to the PS2 original: on the Load game and File Operation pages, "FROM A FILE" imports a save from anywhere (a GT3 Revisited .sav or a PS2 save), and "Export to PS2" in a save's menu asks for the format: a .psu, a PCSX2 .ps2 card image or a raw save (.raw), then where to put it. The raw save is the bare game data file that save editors such as GT3SaveEditor open; an edited one imports like any other save. Home → Trade and the arcade's Load Garage take a friend's save the same way. Each release of the original reads only its own save, and saves go to and from your disc's: BASCUS-97102GAMEDATA (NTSC-U, both discs), BESCES-50294GAMEDATA (PAL) or BISCPS-15009GAMEDATA (NTSC-J). A Gran Turismo Concept disc's saves work the same way, under that release's own name (BESCES-50858GAMEDATA for the European Tokyo-Geneva; the others are in docs/COMPATIBILITY.md). gt3tool converts on the command line too (it needs your disc for the game data):

gt3tool save-import <iso> <ps2 save> <saves folder>/name.sav
gt3tool save-export <iso> <saves folder>/name.sav <out.psu | out.ps2 | out.raw | out folder> [--lang=XX]

On a PAL disc, --lang picks the language the original starts in with the exported save: BR (British English, the default), FR, GR, IT or SP.

<ps2 save> can be the data file (BASCUS-97102GAMEDATA etc., under any name, e.g. a .raw), its save folder, a PCSX2 folder memory card, a .psu (uLaunchELF / EMS export) or a PCSX2 .ps2 / .mcd card image (8 MB, read only). The export writes a .psu, a new 8 MB .ps2 card image holding just this save, the data file alone (.raw) or a folder <out>/BASCUS-97102GAMEDATA/ (or the PAL / NTSC-J name). To move a save onto a PCSX2 card you already use, import the .psu with a memory-card manager. Compressed .max / .cbs saves (Action Replay, CodeBreaker) are not read; convert them to .psu first.

Carried over: credits, days, races / wins, prize money, the garage (parts, settings, paint, wheel, odometer, oil, dirt), the wheel inventory, license medals and best times, race results, prizes, trophies, arcade progress, time-trial records (arcade and per course), machine-test rankings and the last name entered for a record. Setting files on the card and a championship saved between rounds are not carried. Keep a copy of your card before writing to it. Details: GT_MODE.

Online

Online battle (main menu, or Arcade → i.LINK Battle) races up to 16 players, each on their own machine, with CPU cars up to 32 cars in all:

  • Create a session shows a code such as ABCD-EFGH; the others choose Join with a code and type it. No port forwarding is needed: players connect directly where they can, and otherwise through the relay server, gt3r.gameversions.com by default (UDP 47631). Another server can be set under Relay server in the lobby.
  • Host by address / Join by address works without any server, on a LAN or with UDP port 47630 forwarded to the host.
  • Every car of the game can race, none locked: chosen by maker, by class, or from your GT Mode garage. The classes are the arcade's C, B, A, S and rally cars: its class lists' cars (raced as the arcade does), and every other car by its weight per power, as GT3 classes garage cars.
  • The host's Car rules limit the cars: class, production or race cars, drivetrain, NA or turbo, stock cars only, stock settings only, which tires, a power limit, mod cars. The car page can list only the cars allowed. The host can also turn on Tire wear.
  • Each player chooses their car's Tires (the sets the tune shop sells for it; an arcade car's racing or drift tires too) and can change its Settings in the lobby, within the ranges its parts allow, as in GT Mode's settings menu. The lobby remembers them per car; a GT Mode garage car keeps its own.
  • A GT Mode car races only with parts and settings the game's tune shop and settings menu can give it; any other setup (an edited save, say) is refused.
  • Stability control (ASM) and Traction control (TCS) are your own choice, on the start page or in the lobby. They are the same switches as the Options menu's driver's assist page, so a change in one place applies everywhere.
  • Every lobby page works with a mouse, touch or a VR controller's pointer too.
  • Mod cars are offered to the other players as checked downloads.
  • Players on any Gran Turismo 3 release (NTSC-U, PAL or NTSC-J) race together. Any other disc, such as a Gran Turismo Concept release or a modified copy, races only against the same disc: the host turns other players away and names both discs. A Gran Turismo Concept disc races online on its own physics.
  • The other players can see your IP address, as in any peer-to-peer game.
  • Updates. At startup the game asks the relay server whether a newer version exists. That is one small message with the game's version and platform (Windows, macOS, Linux, Android or other), nothing else.
    • When a newer version exists, a dialog says so once per version: Download update downloads the package for your system, Later keeps playing, and Release notes opens the release page. A badge in the main menu's title bar opens it again.
    • Sessions through the relay server need an up-to-date game. An older one shows "Update required to play online" when you open Online battle.
    • Offline play is never blocked. Host / Join by address needs the same version on both machines.
    • Turn the startup check off under Settings → Online ("Check for updates at startup", or [online] update_check = off). Check now there asks on demand; Download update and Release notes are there too.

How it works, and how to run your own relay: ONLINE.

Discord

Your Discord profile can show that you're playing GT3 Revisited, with what you're doing: "Arcade race · Tsukuba Circuit", then your car, lap and place. It's off until you turn on Show what you're playing under Settings → Online ([discord] status = on).

  • The game talks only to the Discord app on the same computer. It sends nothing when Discord is closed, and nothing over the internet itself.
  • Windows, macOS and Linux (including Discord's Flatpak and Snap packages). Phones and Meta Quest headsets don't have it.
  • [discord] app_id shows the status as another Discord application.

Mods

The Mods screen installs mods from a .zip (Install from .zip, or drop the .zip onto the window on a computer), turns them on and off, and removes them. Mods live in mods/ in the user data folder; Open folder opens it (on Android and iOS, in the Files app). A mod can replace any file of the game, add music, or add cars, defined in small text files, that appear at the dealers, in the arcade and online. Texture packs replace the game's textures with PNG pictures at any size: Save textures saves the disc's textures to start from, and PCSX2 pack turns a texture pack made for PCSX2 into a mod. The car and course viewers export models for Blender. See MODDING.

Differences from the original

  • Saves are files on your computer instead of memory-card slots; the memory-card pages are replaced by a save list on the same artwork. PS2 saves move both ways (above).
  • i.LINK Battle is online play over UDP; it does not talk to real PS2s.
  • Physics runs at 60 steps a second on every disc, with the rules of the disc's release; races, replays and the disc's demonstrations play out as in the game (PHYSICS, European and Japanese discs: COMPATIBILITY). Electric mod cars race with an electric drive of our own, which GT3 has no counterpart of (MODDING).
  • A few presentation details are measured from captures rather than specified exactly, and a few effects that come from PS2 microcode are approximated (RACE, GT_MODE).
  • Added on top, all optional: the main menu, Quick race, extra race views, widescreen and high refresh rates, touch controls, modern controller features and mods.

How it's built

The disc's file formats are documented in FORMATS and docs/formats/, and how the game behaves is described per system in docs/behaviour/ (physics, AI, GT Mode, menus, race presentation, sound, music), with implementation notes in docs/dev/. The specifications behind those pages, with the original program's addresses, are in docs/specs/, and the method in REVERSE_ENGINEERING. The engine is verified against the original, side by side, with automated tests and with a harness that runs the original's routines from your own disc against ours (DIFF_HARNESS). It contains no game data or assets; all game content is read from your own disc at runtime. The rules for contributions are in CONTRIBUTING.

Building

Requirements: CMake 3.21 or later, a C++20 compiler, and SDL3 (3.4 or later). zlib is optional. If SDL3 or zlib is not installed, CMake fetches and builds it.

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
  • macOS: brew install sdl3 cmake first, to skip the source build. Produces build/gt3r.app. If linking fails with "unknown architecture" in a .tbd file, your linker is older than your SDK: update Xcode / the Command Line Tools, or point -DCMAKE_OSX_SYSROOT at an older SDK.
  • Windows: Visual Studio 2022 or later. cmake -S . -B build then build gt3r. SDL3 is fetched automatically, or install it with vcpkg. 3D uses Vulkan, or OpenGL ES 3.0 on GPUs without it: the driver's, or ANGLE's when -DGT3R_ANGLE_DIR=<folder> points at a folder with its DLLs and license (pwsh packaging/angle.ps1 builds them into angle\ with vcpkg; RENDERING).
  • Linux: install your distro's SDL3 development package, or let CMake fetch and build it. Building SDL needs its window, audio and input headers; on Debian / Ubuntu (tested on Ubuntu 24.04):
    sudo apt install build-essential cmake ninja-build pkg-config zlib1g-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxss-dev libxtst-dev libxfixes-dev libxkbcommon-dev libwayland-dev wayland-protocols libdecor-0-dev libegl-dev libgl-dev libvulkan-dev libdrm-dev libgbm-dev libasound2-dev libpulse-dev libpipewire-0.3-dev libudev-dev libdbus-1-dev libibus-1.0-dev libusb-1.0-0-dev
    The 3D renderer uses Vulkan: install your GPU's Vulkan driver (Mesa's mesa-vulkan-drivers on AMD / Intel).
  • Android: see android/README.md.
  • iOS (on a Mac with Xcode): CMake's Xcode generator, signed with your own team ID and a bundle identifier of your own (a free Apple ID works):
    cmake -S . -B build-ios -G Xcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=16.0 -DGT3R_IOS_TEAM=<team ID> -DGT3R_IOS_BUNDLE_ID=<com.you.gt3r>
    Then open build-ios/GT3Revisited.xcodeproj, choose the gt3r scheme and your device, and Run. Where to find the team ID, the device's Developer Mode, installing from the command line and the simulator: PLATFORMS.

Targets: gt3r (the game), gt3tool (disc tools), gt3r-relay (online relay server) and gt3r_tests (unit tests). Run the unit tests with ctest --test-dir build; set GT3R_DISC=/path/to/image.iso to also run the tests that need game data. Packaging and per-platform notes: PLATFORMS. Please read CONTRIBUTING before sending changes.

Command line

gt3r [disc.iso] [--hub] [--screen <id>] [--browse <vol path>] [--shot <out.png>]
     [--msaa <n>] [--render-scale <s>] [--no-gpu] [--gles] [--gles-driver] [--help]
  • --help lists the options, every screen id and the testing variables (GT3R_*).
  • --hub starts in Developer options (or set start = hub under [app]).
  • --screen <id> opens a screen: the main menu's online, settings, mods, jukebox, quickrace, race (time trial), movies, database, saveeditor, or a developer tool (browser, gt3menu, cars, courses, menu, text, sound, viewer, ...).
  • --browse <path> opens the asset browser on a file in GT3.VOL.
  • --shot out.png saves a screenshot after a few frames and exits.

On Android and iOS, put one argument per line in args.txt in the user data folder.

Tools

gt3tool inspects and extracts data from your disc. Extracted output is for your own modding and research only.

gt3tool info    <iso>                      identify the disc
gt3tool ls      <iso> [dir]                list GT3.VOL
gt3tool extract <iso> <prefix> <outdir>    extract files (decompressed)
gt3tool tex     <iso> <vol-path> <outdir>  textures to PNG
gt3tool tex-dump <iso> <outdir>            every texture, named for texture packs
gt3tool model   <iso> <vol-path> <outdir> --gltf  a car model for Blender (glb)
gt3tool wav     <iso> <vol-path> <out.wav> music to WAV
gt3tool bgm     <iso>                      list soundtrack
gt3tool car     <iso> <label>              a car's catalogue specs
gt3tool modcar  <iso> <car.ini | mod dir>  check and test-drive mod cars
gt3tool input   <iso> [seconds]            list controllers and their presses
gt3tool save-import / save-export          GT Mode saves from / to the PS2 (see above)

Run gt3tool without arguments for the full list.

Documentation

  • ARCHITECTURE: how the engine is organized
  • FORMATS: the disc's file formats
  • docs/behaviour/: how the original game behaves, per system (physics, AI, GT Mode, menus, race presentation, sound, music)
  • docs/specs/: the research specifications, with program addresses; REVERSE_ENGINEERING: the method, RE_TOOLKIT and DIFF_HARNESS: the analysis scripts and the comparison harness
  • INPUT: controller support and binding syntax
  • MUSIC: playing your own music in races
  • MODDING: making and installing mods
  • COMPATIBILITY: tested disc versions
  • docs/dev/: implementation notes per area (race, GT Mode, physics, AI, online, rendering, movies, platforms)
  • CONTRIBUTING

License

GT3 Revisited's own code is released under the MIT License. Third-party components keep their own licenses (below).

Legal

Gran Turismo is a trademark of Sony Interactive Entertainment. This project is not affiliated with or endorsed by Sony or Polyphony Digital. It ships no game data or assets. It exists for interoperability with your own copy of the game: owning the game is required to play. Please do not open issues or pull requests that contain game files, extracted assets, or the original program's code in any form.

Third-party components

  • Barlow (Semi Condensed Medium, Condensed SemiBold), the font of our own screens (setup, main menu, settings, tools): Copyright 2017 The Barlow Project Authors, SIL Open Font License 1.1 (third_party/fonts/barlow/OFL.txt). It is compiled into the executable; the game's menus use the fonts from your disc.
  • PromptFont v1.10 by Yukari "Shinmera" Hafner (based on Xolonium by Severin Meyer), the controller and keyboard button icons on our own screens: Copyright 2018-2023 Yukari Hafner, SIL Open Font License 1.1 (third_party/fonts/promptfont/OFL.txt). It is compiled into the executable.
  • stb_truetype v1.26 by Sean Barrett, public domain (or MIT), rasterises these fonts.
  • dr_mp3, dr_flac and dr_wav by David Reid, public domain (or MIT-0), and stb_vorbis v1.24 by Sean Barrett, public domain (or MIT), decode your own music and mods' (third_party/dr_libs, third_party/stb).
  • SDL 3 and zlib, zlib License, fetched at build time (Windows builds ship SDL3.dll).
  • libchdr v0.3.0, BSD 3-Clause, reads .chd disc images; it vendors the LZMA SDK (public domain), miniz (MIT) and zstd (BSD 3-Clause). Fetched at build time. Its notices and theirs are in THIRD-PARTY-NOTICES.md, which the Windows, macOS and Linux packages ship.
  • The Khronos OpenGL ES 3.0 headers (third_party/khronos), MIT and Apache 2.0, for the OpenGL ES renderer.
  • The Khronos OpenXR loader, Apache 2.0, in the PC VR package with its license (LICENSE-OpenXR.txt).
  • ANGLE, BSD 3-Clause, built with vcpkg: Windows packages ship libEGL.dll and libGLESv2.dll with its license (LICENSE-ANGLE.txt).

关于 About

Gran Turismo 3 A-Spec engine reimplementation for modern platforms (bring your own disc)

语言 Languages

C++97.0%
Python1.9%
Java0.3%
GLSL0.3%
CMake0.2%
Shell0.2%
PowerShell0.1%
Batchfile0.0%
Dockerfile0.0%
C0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
191
Total Commits
峰值: 57次/周
Less
More

核心贡献者 Contributors