Skip to content

OpenUnleashed v0.2.0

Latest

Choose a tag to compare

@fussraider fussraider released this 22 Nov 10:28

OpenUnleashed 0.2.0 — an unofficial, open-source engine for Need for Speed: Porsche Unleashed
(PC, 2000), written from scratch in Rust, that runs natively on macOS, Windows and Linux and plays like the original.

You need your own copy of the game: no file of the original game is in these archives.

What is in it

  • Evolution career, Factory Driver, quick races and test drives with the original's physics, opponents, traffic and police
  • The original menus, HUD, music, sound and intro movies
  • New: enhanced graphics (see below): off at first, one key or one menu row turns them on
  • Network races over LAN or the internet (UDP 9442), including races against the original game
  • Gamepads, wheels and pedals with force feedback, keyboard and controller rebinding in the game's own options

Downloads

System Archive
macOS 13+ (Apple Silicon and Intel, one universal app) OpenUnleashed-macos-universal-*.zip
Windows 10+ x64 (DirectX 12 or Vulkan) OpenUnleashed-windows-x64-*.zip
Linux x86_64 (glibc 2.36+, Vulkan, or OpenGL 3.3 without it) OpenUnleashed-linux-x86_64-*.tar.gz

The big change: enhanced graphics

Until now the engine drew the picture as the original did. 0.2.0 adds a set of graphics enhancements. They have been
tried on little hardware so far, so the game starts with the original's graphics: turning the enhancements on is
your choice. They only change how the game looks: gameplay, physics, the opponents' driving and the network protocol
are exactly the same, so an enhanced game and a game with everything off still race each other.

  • Press 0 (or set the first row of the enhancements panel, graphics, to enhanced) to turn them on; the same
    key or row brings the original's graphics back, handy for comparing. The choice is remembered for the next start, and
    your enhancement settings are kept while the original's graphics are shown. With every enhancement off the game draws
    the original's frame.
  • Options → Graphics → Enhancements has one row per enhancement with a short explanation, grouped as below, and
    three presets: default, light (for weaker GPUs) and like the original. Your choices are kept in
    enhancements.json in the saves folder (delete it to get the defaults back).
  • The set prepared for you on the first start follows the GPU: a weak one (an integrated one other than Apple Silicon,
    or software rendering) gets the light preset, any other the full defaults; it is what 0 turns on. Nothing is
    written until you press 0 or change something in the panel, and the log says which set was prepared.
  • Command line: NFS_ENH=off starts as the original, NFS_ENH=all with everything on, NFS_ENH=E1,E3 only the
    listed switches.
  • They need a reasonably modern GPU with Metal (macOS), DirectX 12 or Vulkan. On integrated graphics start with the
    light preset.

What is there (the panel's groups):

Image

  • MSAA and optional SMAA anti-aliasing, anisotropic filtering, render scale, field of view and draw distance
  • Upscaling: AMD FSR 3.1 and, on macOS, MetalFX, with a sharpness row. Off by default; the temporal upscalers
    need HDR and tone mapping
  • Frame output (vsync, mailbox, immediate) and a frame rate limit (default: the display's rate, 60 on battery)
  • HDR output on HDR screens (macOS, off by default)

Light and shadows

  • HDR scene with tone mapping, corner shading (ambient occlusion), baked global illumination on the tracks
  • Cascaded sun shadows from the scenery and the cars (they fade in snowfall and rain, and a car's shadow fades where
    the sun does not reach it), moonlight on the night tracks, a soft contact shadow under the cars
  • Headlights that light the road and cast shadows, headlights that come on in tunnels, street and tunnel lamps that
    light the road and cast the cars' shadows

Surfaces

  • A clear coat on the car body with reflections of the nearby surroundings, lamps and cars; the cars lit by the
    light around them
  • Water reflections, a wet road with rain, raindrops on the windscreen in the cockpit view
  • Rounded wheels and other round car parts (done at load time, no new models)
  • Enhanced textures (see below)
  • The track-selection picture wall without seams between its strips

Atmosphere and effects

  • Glow (bloom) and a bright HDR sun, eye adaptation, light shafts, fog with sun glow, haze and visible headlight beams
    in fog, rain and tunnels, a soft volumetric beam for the Coastal lighthouse, soft particles, particles lit in HDR

Camera

  • Motion blur (off by default), lens dirt, camera shake, a steady chase camera on slopes, depth of field in replays

The enhancements also work in the 3D menu scenes (garage, dealership, track room).

Photo mode (from 0.1.5) now goes through the same effects as the screen and has a depth of field you can set: F on /
off, 1 / 2 focus distance, 3 / 4 aperture, 5 focus on the car (pad: X, d-pad left / right).

A race panel (the ` / ~ key: left of 1 on most keyboards, next to the left Shift on some Mac ones) shows the enhancement rows, the frame rate with a graph of the last frames, GPU time
per pass and the draw counts while you race. It is closed at the start of every race.

HD textures

The HD texture pack is made from the original game's textures, so it is not distributed. You can build one from your
own copy with the pipeline in tools/hd-textures (it runs on your machine with freely licensed upscaling models) and
put the result beside the game as hd_textures/x4/ — next to the executable or the .app, or in game/. The game
looks for it at start-up. Without the pack the enhanced textures row is grey; with it the row turns the pack on
and off.

Fixes (including the ones reported in issue #4)

Keys and cursor

  • The in-race keys are now the original's: Esc pauses, Tab switches the map's kind, keypad − / + zoom the
    map, F11 changes the view distance, F12 shows or hides the horizon (the cloud layers), Alt+P takes a
    screenshot, F9 / F10 music and sound effects.
  • The system mouse cursor is hidden over the game, as in the original.
  • Fixed: the camera choice and other options were lost on restart. The profile is now saved when you leave the menus,
    also when you close the window or quit with Cmd+Q.

Menus

  • Drop-down lists look like the original's (black value, black frame, shadow, a lit row under the pointer).
  • The bottom bar's icons sit level with their text, and its disabled buttons (such as RACE) are dimmed from the first
    frame.
  • The Factory Driver menu's small licence card no longer has the player's name sticking out beside it.
  • The garage's car list picks the right car when you own many; a quick race's car list lands on the car you picked.
  • The car drop-downs (quick race, garage, dealership, car comparison) are grouped as in the original: your own cars
    first, then the factory cars, under era and class headings, each with its year and, for your cars, a swatch of its
    paint.
  • The Evolution slideshow no longer shows a strip of another slide, and all twelve panels of the track room's picture
    wall turn.
  • The car set-up screen's arrows, sliders and pad input write the values as the original does.
  • The garage car's shadow turns with the car instead of sliding round it.
  • Menu text in a magnified window no longer picks up the edge of the neighbouring letter. Russian «ё» is drawn as «е»,
    because the game's fonts have no such letter.

Cars and animations

  • Car animations in races (police lights, wings, pop-up headlights, the driver's gestures) no longer speed up on
    high-refresh-rate screens.
  • Some car animations had frames missing: the driver's hands, the rear wings and the folding roof now move fully.
  • The chase, helicopter and blimp cameras no longer jitter at high frame rates (issue #2).

Other

  • Fixed: the Intel half of the macOS universal app did not start on Intel Macs (issue #3).
  • Linux: when the only Vulkan driver that can draw into the window is a software one (llvmpipe: the CPU draws every frame, 15-20 fps), the game now tries OpenGL on the graphics card, and the log (open-unleashed.log, line chosen adapter) warns when it still draws on the CPU; sudo apt install mesa-vulkan-drivers usually brings the hardware driver (issue #6).
  • Checked against the original and found to match with the enhancements off: the sun and its lens flare, the menus'
    animation speed (the same at 60 and 120 frames a second).
  • For testing: NFS_ALL_CARS=1 lists every car of the catalogue in the quick race and the knockouts, as the
    original's all-cars cheat does (NFS_ALL_TRACKS=1 does the same for the tracks).

Gamepads

  • The front end can be used with a pad alone: the d-pad or left stick moves between controls, A presses, B goes back,
    LB / RB change tabs; sliders, bars and the car set-up values take Left / Right (hold to repeat). The keys are in
    docs/en/controls.md (issue #1).
  • While a standard pad is connected, small icons of its buttons appear next to the actions it can trigger (bottom
    bar, pause menu, result pages, replay save). The icons follow the pad: letters for Xbox pads, shapes for PlayStation
    pads, the labels SDL reports for Nintendo pads.

Network

  • The internet part of the multiplayer screens (sign-on, server list, create / join, chat) is in. There is no public
    lobby server yet, so the internet button is hidden until you set an address (NFS_LOBBY_ADDRESS=host[:port], or
    an address= line in lobby.txt in the saves folder). LAN races and races against the original game work as before.

Performance

  • Frame cost was cut in many places: the first use of a new kind of light no longer stalls a race while shaders are
    built (they are made in the background and the picture is the same), the haze and several post passes are cheaper,
    a frame goes to the GPU in fewer steps, and the sun shadows under the forest canopy cost less (about 8 → 5 ms a
    frame at 2560×1600 in one measurement). Savings depend on the GPU and the settings.
  • If the default set is too slow on your GPU, pick the light preset, lower the render scale or turn on an upscaler.

Known limitations

  • The enhancements have been tried so far on an Apple M1 Pro (macOS), Intel integrated graphics (Linux) and an NVIDIA
    RTX 3060 (Windows) only. If something looks wrong, press 0 to compare with the original and report it with a
    screenshot, the track, the car and open-unleashed.log.
  • A manual frame rate limit (Options → Graphics → Enhancements) that is not a whole fraction of the screen's refresh
    rate (for example 60 on a 144 Hz screen) makes the motion uneven; auto (the default) picks a rate that fits.
  • Force feedback has not been tried on a real wheel yet. The voice chat microphone (NFS_MIC=1) has been tried in a
    LAN race from Linux to macOS only.
  • On macOS the system may keep F11 / F12 for itself: hold fn, or turn on "Use F1, F2, etc. keys as standard function
    keys".

Getting started

  1. Unpack the archive for your system.
  2. Copy the GameData and FEData folders of your installed game into the game folder of the archive.
  3. Start OpenUnleashed (macOS: OpenUnleashed.app — not notarised: the first time, right-click → Open).

Details: docs/en/install.md in the source. Problems: open an issue with open-unleashed.log from the saves folder —
never attach files of the original game.


Русский

OpenUnleashed 0.2.0 — неофициальный открытый движок для Need for Speed: Porsche Unleashed (PC, 2000), написанный
с нуля на Rust: работает нативно на macOS, Windows и Linux и играется как оригинал.

Нужна своя копия игры: файлов оригинальной игры в архивах нет.

Что в нём

  • «Эволюция», «Гонщик-испытатель», быстрые гонки и тест-драйвы с физикой, соперниками, трафиком и полицией оригинала
  • Меню, интерфейс, музыка, звук и вступительные ролики оригинала
  • Новое: улучшенная графика (см. ниже): сначала выключена, включается одной клавишей или строкой меню
  • Сетевые гонки по локальной сети и через интернет (UDP 9442), в том числе против оригинальной игры
  • Геймпады, рули и педали с обратной связью, переназначение клавиш и контроллеров в собственных настройках игры

Загрузки

Система Архив
macOS 13+ (Apple Silicon и Intel, одно универсальное приложение) OpenUnleashed-macos-universal-*.zip
Windows 10+ x64 (DirectX 12 или Vulkan) OpenUnleashed-windows-x64-*.zip
Linux x86_64 (glibc 2.36+, Vulkan, а без него OpenGL 3.3) OpenUnleashed-linux-x86_64-*.tar.gz

Главное: улучшенная графика

Раньше движок рисовал картинку так же, как оригинал. В 0.2.0 появился набор улучшений графики. Пока он проверен на
небольшом числе видеокарт, поэтому игра запускается с графикой оригинала: включать улучшения или нет, решаете вы.
Они меняют только внешний вид: игровой процесс, физика, езда соперников и сетевой протокол остаются точно такими же,
поэтому игра с улучшениями и игра со всем выключенным по-прежнему могут гоняться друг с другом.

  • Клавиша 0 (или первая строка панели улучшений, графика, в положении улучшенная) включает их; та же клавиша
    или строка возвращает графику оригинала — удобно для сравнения. Выбор запоминается до следующего запуска, а настройки
    улучшений сохраняются, пока показана графика оригинала. Если все улучшения выключены, игра рисует кадр оригинала.
  • Опции → Графика → Улучшения: по строке на каждое улучшение с коротким пояснением, строки сгруппированы, как
    ниже, и есть три набора: по умолчанию, лёгкий (для слабых видеокарт) и как в оригинале. Ваш выбор хранится
    в enhancements.json в папке сохранений (удалите файл, чтобы вернуть значения по умолчанию).
  • Набор, который приготовлен при первом запуске, зависит от видеокарты: для слабой (встроенной, кроме Apple Silicon, или
    программной отрисовки) это набор лёгкий, для любой другой — полный набор по умолчанию; его и включает 0. Пока
    вы не нажали 0 и ничего не поменяли в панели, ничего не записывается, а в журнале указано, какой набор приготовлен.
  • Командная строка: NFS_ENH=off — запуск как оригинал, NFS_ENH=all — всё включено, NFS_ENH=E1,E3 — только
    перечисленные переключатели.
  • Нужна достаточно современная видеокарта с Metal (macOS), DirectX 12 или Vulkan. На встроенной графике начните с
    набора «лёгкий».

Что есть (группы панели):

Изображение

  • Сглаживание MSAA и по желанию SMAA, анизотропная фильтрация, масштаб рендера, угол обзора и дальность прорисовки
  • Апскейлинг: AMD FSR 3.1 и, на macOS, MetalFX, со строкой резкости. По умолчанию выключен; временным
    апскейлерам нужны HDR и тонемап
  • Вывод кадров (вертикальная синхронизация, mailbox, immediate) и ограничение частоты кадров (по умолчанию — частота
    дисплея, 60 при работе от батареи)
  • HDR-вывод на HDR-экранах (macOS, по умолчанию выключен)

Свет и тени

  • HDR-сцена с тонемапом, затенение углов (AO), запечённое глобальное освещение на трассах
  • Каскадные тени от солнца — от декораций и машин (в снегопад и дождь они слабеют, а тень машины гаснет там, куда не
    доходит солнце), лунный свет на ночных трассах, мягкая контактная тень под машинами
  • Фары, освещающие дорогу и отбрасывающие тени, фары, включающиеся в тоннелях, уличные фонари и лампы тоннелей,
    которые освещают дорогу и дают тени машин

Поверхности

  • Лак кузова с отражениями ближнего окружения, фонарей и машин; машины освещаются светом вокруг
  • Отражения в воде, мокрая дорога под дождём, капли на лобовом стекле в виде из кабины
  • Скруглённые колёса и другие круглые детали машин (при загрузке, без новых моделей)
  • Улучшенные текстуры (см. ниже)
  • Стена с картинками на экране выбора трассы без швов между полосами

Атмосфера и эффекты

  • Свечение (bloom) и яркое HDR-солнце, адаптация глаза, лучи света, туман со свечением солнца, дымка и видимые лучи
    фар в тумане, дожде и тоннелях, мягкий объёмный луч для маяка на трассе Coastal, мягкие частицы, частицы с HDR-освещением

Камера

  • Размытие в движении (по умолчанию выключено), грязь на объективе, тряска камеры, плавная камера погони на склонах,
    глубина резкости в повторах

Улучшения работают и в трёхмерных сценах меню (гараж, автосалон, комната трасс).

Фото-режим (с 0.1.5) теперь проходит через те же эффекты, что и экран, и у него есть настраиваемая глубина резкости:
F — вкл / выкл, 1 / 2 — дистанция фокуса, 3 / 4 — диафрагма, 5 — фокус на машину (геймпад: X, крестовина
влево / вправо).

Панель гонки (клавиша ` / ~, в русской раскладке «ё»: на большинстве клавиатур левее 1, на некоторых клавиатурах Mac у левого Shift) показывает строки улучшений, частоту кадров с графиком последних кадров, время GPU по
проходам и число вызовов отрисовки, пока вы едете. В начале каждой гонки она закрыта.

HD-текстуры

Пакет HD-текстур делается из текстур оригинальной игры, поэтому не распространяется. Его можно собрать из своей
копии конвейером в tools/hd-textures (он работает на вашем компьютере со свободно лицензированными моделями
апскейла) и положить результат рядом с игрой как hd_textures/x4/: возле исполняемого файла или .app либо в game/.
Игра ищет его при запуске. Без пакета строка улучшенные текстуры серая; с ним строка включает и выключает пакет.

Исправления (в том числе из issue #4)

Клавиши и курсор

  • Клавиши в гонке теперь как в оригинале: Esc — пауза, Tab — вид карты, − / + на цифровой клавиатуре —
    масштаб карты, F11 — дальность прорисовки, F12 — показать или скрыть горизонт (слои облаков), Alt+P —
    снимок экрана, F9 / F10 — музыка и звуковые эффекты.
  • Системный курсор мыши над игрой скрыт, как в оригинале.
  • Исправлено: выбор камеры и другие настройки терялись при перезапуске. Профиль теперь сохраняется при выходе из
    меню, а также при закрытии окна и выходе по Cmd+Q.

Меню

  • Выпадающие списки выглядят как в оригинале (чёрное значение, чёрная рамка, тень, подсвеченная строка под
    указателем).
  • Значки нижней панели стоят вровень с текстом, а недоступные кнопки (например, RACE) приглушены с первого кадра.
  • В меню «Гонщика-испытателя» рядом с маленькой карточкой лицензии больше не торчит имя игрока.
  • Список машин в гараже выбирает нужную машину, когда их много; список машин в быстрой гонке встаёт на выбранную вами.
  • Выпадающие списки машин (быстрая гонка, гараж, автосалон, сравнение машин) сгруппированы, как в оригинале: сначала
    ваши машины, потом заводские, под заголовками эр и классов, у каждой год, а у ваших ещё и цвет кузова.
  • В слайд-шоу «Эволюции» больше нет полоски соседнего слайда, а все двенадцать панелей стены с картинками в комнате
    трасс поворачиваются.
  • Стрелки, ползунки и ввод с геймпада на экране настройки машины записывают значения так же, как оригинал.
  • Тень машины в гараже поворачивается вместе с машиной, а не скользит вокруг неё.
  • Текст меню в увеличенном окне больше не цепляет край соседней буквы. Русская «ё» рисуется как «е»: в шрифтах игры
    такой буквы нет.

Машины и анимации

  • Анимации машин в гонках (мигалки полиции, антикрылья, выдвижные фары, жесты водителя) больше не ускоряются на
    экранах с высокой частотой обновления.
  • В некоторых анимациях машин не хватало кадров: руки водителя, задние антикрылья и складывающаяся крыша теперь
    двигаются полностью.
  • Камеры погони, вертолёта и дирижабля больше не дрожат при высокой частоте кадров (issue #2).

Прочее

  • Исправлено: на Mac с Intel не запускалась Intel-половина универсального приложения для macOS (issue #3).
  • Linux: если в окно может рисовать только программный Vulkan-драйвер (llvmpipe: каждый кадр рисует процессор, 15-20 fps), игра теперь пробует OpenGL на видеокарте, а лог (open-unleashed.log, строка chosen adapter) предупреждает, если кадры всё равно рисует процессор; аппаратный драйвер обычно ставится командой sudo apt install mesa-vulkan-drivers (issue #6).
  • Сверено с оригиналом, при выключенных улучшениях совпадает: солнце и его блик, скорость анимации меню (одинаковая
    при 60 и 120 кадрах в секунду).
  • Для тестов: NFS_ALL_CARS=1 открывает в быстрой гонке и турнирах на выбывание все машины каталога, как чит-код
    оригинала на все машины (NFS_ALL_TRACKS=1 делает то же для трасс).

Геймпады

  • Передним меню можно пользоваться одним геймпадом: крестовина или левый стик перемещает между элементами, A нажимает,
    B возвращает назад, LB / RB переключают вкладки; ползунки, шкалы и значения настройки машины принимают влево / вправо
    (удерживайте для повтора). Клавиши перечислены в docs/ru/controls.md (issue #1).
  • Пока подключён стандартный геймпад, рядом с действиями, которые он может вызвать, показываются маленькие значки его
    кнопок (нижняя панель, меню паузы, страницы итогов, сохранение повтора). Значки подстраиваются под геймпад: буквы для
    Xbox, фигуры для PlayStation, подписи, которые сообщает SDL, для Nintendo.

Сеть

  • Интернет-часть экранов сетевой игры (вход, список серверов, создание и подключение, чат) готова. Публичного сервера
    лобби пока нет, поэтому кнопка интернет скрыта, пока вы не зададите адрес (NFS_LOBBY_ADDRESS=host[:port] или
    строка address= в lobby.txt в папке сохранений). Гонки по локальной сети и против оригинальной игры работают как
    раньше.

Скорость

  • Стоимость кадра снижена во многих местах: первое появление нового вида света больше не подвешивает гонку, пока
    собираются шейдеры (они собираются в фоне, картинка та же), дымка и несколько проходов постобработки стали дешевле,
    кадр уходит на GPU за меньшее число шагов, а тени от солнца под кронами леса обходятся дешевле (примерно 8 → 5 мс на
    кадр при 2560×1600 в одном замере). Выигрыш зависит от видеокарты и настроек.
  • Если набор по умолчанию слишком тяжёл для вашей видеокарты, выберите набор лёгкий, уменьшите масштаб рендера или
    включите апскейлер.

Известные ограничения

  • Улучшения пока опробованы только на Apple M1 Pro (macOS), встроенной графике Intel (Linux) и NVIDIA RTX 3060
    (Windows). Если что-то выглядит неправильно, нажмите 0, чтобы сравнить с оригиналом, и сообщите об этом со снимком
    экрана, трассой, машиной и open-unleashed.log.
  • Ручное ограничение FPS (Опции → Графика → Улучшения), не кратное частоте экрана (например, 60 на экране 144 Гц),
    делает движение неровным; авто (по умолчанию) подбирает подходящую частоту.
  • Обратная связь на настоящем руле ещё не проверялась. Микрофон голосового чата (NFS_MIC=1) проверен пока только в
    гонке по локальной сети с Linux на macOS.
  • На macOS система может забирать F11 / F12 себе: удерживайте fn или включите «Использовать F1, F2 и т. д. как
    стандартные функциональные клавиши».

Как начать

  1. Распакуйте архив для своей системы.
  2. Скопируйте папки GameData и FEData из установленной игры в папку game архива.
  3. Запустите OpenUnleashed (macOS: OpenUnleashed.app — без нотаризации: в первый раз правый клик → «Открыть»).

Подробности — docs/ru/install.md. Проблемы: заведите issue и приложите open-unleashed.log из папки сохранений —
файлы оригинальной игры не прикладывайте.