Skip to content

DUDE 0.9.10

Latest

Choose a tag to compare

@Inkub0 Inkub0 released this 20 Nov 17:25

DUDE 0.9.10: PBR for Every Texel

A materials release on top of 0.9.9. Two things lead it:

  • Per-pixel PBR textures. Optional texture packs give every surface of Doom 3, Resurrection of Evil, The Lost Mission and Quake 4 its own roughness, metalness and ambient occlusion per texel, plus a baked height map that gives parallax deeper relief. Bare steel, paint, rust and grime on the same panel now respond to light differently.
  • Mods download their own game library, Windows included. Start a mod and DUDE offers to fetch the library it needs from one repository. On Windows this brings 64-bit builds of every mod dhewm3 has ported, so mods with their own game code finally run there.

Around that: parallax on the Path Tracing tier, ambient occlusion that reacts to each light, cleaner ray-traced shadows on characters, smoke and steam that take the light of the room, a first-person body, Doom 3 multiplayer that can join dhewm3 servers, and the fixes for the issues reported since 0.9.9 (GitHub #4, #9, #20, #25, #26, #27, #29, #30, #33, #34).

Per-pixel PBR materials

  • Baked PBR packs (optional downloads). Until now a material had one roughness and one metalness value for its whole surface, from DUDE's material table. With a pack installed, a texture next to each diffuse map sets them per texel, so bare steel, paint, rust and grime on the same panel respond to light differently. The packs are generated from the games' own textures and are separate downloads (see "Optional downloads" below). They are used with PBR on, which the High preset and above turn on.
  • Deeper, steadier parallax. The same textures carry a baked height map in their alpha channel. Parallax mapping uses it in place of the height it used to derive from the normal map on the fly, for deeper and more consistent relief.
  • Quake 4 has PBR materials at all. The Quake 4 material table was never included in the dude-q4 archive, so for everyone but the developers PBR did nothing visible in Quake 4. It ships now, retuned on the retail campaign, and Quake 4 has its own texture pack.
  • Resurrection of Evil's own materials have their table rows in the release (d3xp/pbr/pbr_game.cfg); they were missing from 0.9.9's archives. The Lost Mission reads them too.
  • Textures Raven marked downsize(...) (about one Quake 4 diffuse in eight: character bodies, gibs, decals) now take PBR textures and baked ambient occlusion like any other.
  • The packs load with the level. PBR textures are read during the loading screen and freed when the next level does not use them.
  • On and off: Graphics → Lighting → Per-Pixel PBR Textures (ORM) (r_pbrTextureMaps). With it off, or without a pack, every material uses its table values as before.
  • See what a pack does: Debug Views → PBR Material View (r_pbrDebugView) shows ambient occlusion, roughness or metalness on their own.

Mods download their libraries now.

  • Start a mod and DUDE offers to download its game library. A mod needs its own game library, and so far you had to find one and place it yourself. When it is missing, DUDE now names the mod, where the library comes from and under which licence, and downloads it on your OK, checking it against a known SHA-256 before using it. It covers every mod dhewm3 has ported, plus Doom 3: Phobos and Classic Doom 3, from one repository, dude-sdk. You still supply the mod's own data.
  • Windows: mods with their own game code finally run. dhewm3 builds its mod libraries for 32-bit Windows only, and the 64-bit DUDE cannot load a 32-bit library, so until now most of these mods could not run with DUDE on Windows unless you compiled the library yourself. dude-sdk publishes a 64-bit Windows build of each of them and DUDE fetches it for you. On Windows a known mod always runs that 64-bit library; a 32-bit or outdated copy in the mod's folder is replaced on your OK.
  • com_allowModDownload 0 never downloads and only reports the missing library. Nothing is ever downloaded without asking.

Parallax and ambient occlusion

  • Parallax mapping on the Path Tracing tier. The relief was only applied by the classic lighting pass, so the Path Tracing tier drew flat walls. It is now applied where that tier takes its surfaces from, so its lighting, ambient occlusion, bounce light and reflections all see the relief.
  • Glow layers and ambient light follow the relief. A material's glowing stages (screens, light strips) and the ambient light were drawn on the flat surface and slid over the relief as you moved.
  • A grazing limit (r_parallaxMinAngle, 15 degrees, Grazing Limit slider) stops the relief from smearing when a wall is seen almost edge-on. The default depth is slightly lower (r_parallaxScale 0.10).
  • Ambient occlusion reacts to each light (r_aoLightAware, 0.5). Ambient occlusion used to darken every light by the same share, so a groove stayed dark even with a lamp shining straight into it. The share now fades where the light reaches the occluded spot.
  • AO micro-shadows (r_aoMicroShadows, on). Baked and texture ambient occlusion is read as "how open is this spot" and shadows a light only where it comes in from outside that opening. Grooves between tiles keep a small shadow at grazing light and lose it when lit head on, highlights included.
  • Characters use their own baked ambient occlusion (Accurate Model Baked AO, on by default). A model's baked AO map is made for that exact mesh; the pack's AO belongs to the texture and is an average over every mesh that shares it. Where a model has both, its own map now wins. The two have separate strength sliders under Debugging → Baked and Texture Occlusion Maps.

Shadows

  • Characters under ray-traced lights. With every light ray-traced, faces showed black wedges in the corners of the eyes, at collars and lips, and a hard dark patch along the jaw and neck. Both are fixed: shadow rays no longer count the inside of a character's own mesh near their start, and skin keeps its soft light past the shadow line.
  • Shadow edges on skin bleed warm (Skin Shadow Scatter, r_skinShadowScatter, on). Skin shading already warmed the edge where light turns to shade, but a soft shadow falling across a face stayed a neutral grey. Its edge now bleeds red into the shadow the same way. It comes with skin shading: off at the Potato preset or with r_skinShading 0, and 0 restores the grey edge. The slider is under Debugging → Materials → Skin.
  • RT contact shadows are soft. Their soft edge was built from the same four directions in every pixel block, which showed as four hard copies of each shadow, "a blur made of lines". The directions now cover the whole cone and turn from block to block, and from frame to frame while FSR 2 is on. With Soften RT Shadows off they also stay visible, where they used to vanish.
  • Small occluders cast real shadows under softened ray-traced lights (Near Ray Start, r_rtShadowNearStart, on). The softening ray started one unit off the surface, which lifted it over anything closer: a nose over a lip, a panel's edge on a wall, trim and cables. Only the contact shadow drew those, at 40%. The ray now starts at the surface where it faces the light, so they are part of the light's own shadow, at full strength and with its soft edge. It applies wherever softened RT shadows are on; 0 restores the old start, and 2 also skips the contact ray those lights no longer need.
  • Screen-space contact shadows without the grey steps. Their darkness changed once per march step and their edge was hard; they now fade smoothly with the occluder's distance and have a softness setting (r_contactShadowSoftness).
  • The player's shadow with ray tracing (GitHub #27). Show Player Shadow (g_showPlayerShadow 1) had no effect on the ray-traced and Path Tracing tiers.
  • Frame rate collapsing after 10 to 20 minutes, and video memory that kept growing (GitHub #4, #30). The cache of spot-light and flashlight shadow maps had no limit and could grow to about 1.6 GB at the top presets, squeezing the other shadow maps into constant re-rendering. All shadow maps now share one budget that keeps a quarter of the video memory free. If you still see the collapse, the log now has a "VRAM watch" line that says what filled up.

Smoke and steam

  • Environment-aware smoke and steam (Graphics → Environment-Aware Smoke & Steam, on at Ultra and Nightmare). Smoke, steam and dust kept the same flat look in a dark corridor and under a red alarm light. They now fade into darkness, take the colour and brightness of the light around them, and steam hides and blurs what is behind it instead of only adding brightness.

First-person body

  • See your own body (F10 → Game Options → Camera → Show Player Body, g_showPlayerBody, off by default): look down and your legs and torso are there, in Doom 3, Resurrection of Evil and The Lost Mission. The camera rides the body's head, so it follows crouching, landing and the lean when you look down. Show Player Shadow has a menu entry in the same place.

Doom 3 multiplayer

  • Joining dhewm3 servers works. DUDE's own additions (its material overrides, the optional packs) made a pure server reject the client with "data not in sync". DUDE now presents the stock data to a pure server and keeps its additions to itself.
  • Two crashes on joining a game are fixed: one on every Vulkan client at its first snapshot, and one when the renderer restarted on connecting.
  • The console is no longer flooded with cheat-protection messages, and the server list's columns line up.

Quake 4

  • A DUDE Settings button in the main menu (GitHub #20), and the main menu and loading screens fill a wide screen. DUDE still ships none of Raven's menu files: the additions are applied in memory to the menu from your own install.
  • Strogg health stations work (GitHub #33). After the stroggification the stations could not be used: their screen is part of an animated model, which the crosshair never focused.
  • Signs are readable (GitHub #29). The text on room signs and monitors (the USS Hannibal's, for example) was squashed into a thin line at the top.
  • No flicker on distant terrain (GitHub #25). The far ground on outdoor maps such as the MCC landing flickered on every tier.
  • No red wedge over the picture with FSR 2 (GitHub #26). A leftover debug drawing piled up on the MCC landing and showed over everything, the weapon included.

Rendering fixes

  • Floors with a reflection layer on OpenGL 3.3 and Vulkan (GitHub #34). Materials that blend a faint mirror image into a lit surface, such as the floors the D3HDP texture pack adds, showed a distorted copy of the view instead of their textures, and the reflection shrank with FSR 2 on. They now look as on the legacy renderer: the lit floor with a faint reflection, at any resolution. The few stock materials built the same way take the same fix.
  • A Vulkan crash with very much of a level in view (for example after noclipping out of the map with a large texture pack). The per-frame buffer for draw settings could overflow and overwrite settings still in use, and the GPU stopped ("device lost"). It now grows instead.

Menus and input

  • Only the resolutions your display supports are offered, in the classic menus and in Quake 4's.
  • Ray Tracing has its own row in System → Video, right under Quality: Off, On, Path Tracing.
  • PDA Mouse Speed (GitHub #9). The PDA cursor moved at half speed on a 4K screen; the slider is under Mouse Sensitivity in Game Options (m_pdaSensitivity).
  • Intro logo videos on wide screens: black bars beside them instead of the menu showing through, and Resurrection of Evil's Nerve logo is no longer stretched.
  • Screenshots show what you see. With upscaling on, a screenshot was a separately rendered full-resolution frame without anti-aliasing, so it did not match the screen. It is now the frame as displayed (r_screenshotAsSeen; 0 gives the old behaviour).

Experimental, off by default

  • Emissive Lights - Mars City 1 (Graphics → Lights & Atmosphere → Ray Tracing, Path Tracing tier): the first level with hand-placed light-emitting surfaces.

For modders and developers

  • PBR editor (editPbrMaterial): an All sidecars tab adjusts every pack texture's ambient occlusion, roughness and metalness at once and saves the result as the next bake's settings. Per texture, Save for next bake records a channel edit in pbr/edits/<game>.cfg: the game shows it at once and the baker applies it, so it ends up in the pack. Save to texture writes the pixels locally.
  • Make your own packs: tools/pbr_extract_maps.py, tools/bake_pbr_sidecars.sh and the pack scripts for Doom 3 and Quake 4, documented in docs/pbr-texture-maps.md. A hand-made <diffuse>_orm or <diffuse>_rmao texture next to a diffuse map works without any of them.
  • r_rtShadowDebug: a once-a-second console readout of what the ray-traced shadow system did, and views of one shadow term at a time. tools/bench has a matching timedemo set.
  • The scissor state is kept in step with the GPU around the light loop (a hardening for the dark overlay of GitHub #24, which I could not reproduce).
  • dhewm3's inherited test-build workflows are gone from the repository.

Upgrading from 0.9.9

  • Savegames are unaffected: 0.9.10 loads 0.9.9's saves.
  • The PBR packs need 0.9.10. 0.9.9 and older do not read them.
  • Quake 4: take the 0.9.10 dude-q4 archive as well. The game library is unchanged, but the archive now carries Quake 4's material table.
  • One setting moves once on the first start (the screen-space contact shadow thickness, only where your config still holds the old default). New defaults such as the parallax depth apply to new configs; yours keeps its values.

Known limitations

  • Bounce light and reflections use the table values. Ray-traced bounce light, and the surfaces seen inside ray-traced reflections, still take a material's single table value, not the pack's per-texel one. Path-traced shadow rays ignore the parallax relief.
  • Some pack textures are soft. Roughness and metalness come from the games' own specular maps, and id shipped some of those very small (the Mars City doors: 64x64 for a 512x512 texture).
  • Doom 3 multiplayer: cancelling while a server restarts the client in pure mode can hang.
  • Emissive Mode is still experimental and ships off.
  • Quake 4 multiplayer is not supported yet.

Installing

Setup is the same as for 0.9.9. Step-by-step guides for Steam, GOG and CD on Windows, Linux, the Steam Deck, Quake 4, The Lost Mission and other mods are on the website: install guide. Renderer and graphics-driver help is in the FAQ.

  • Quake 4 also needs its game library, a separate archive from a separate project: dude-q4-0.9.10-win64.zip or dude-q4-0.9.10-linux-x86_64.tar.gz from dude-q4 (tag v0.9.10). It is built from Raven Software's Quake 4 SDK and is under the SDK's licence, not the GPL: non-commercial use only, free copies only, with the licence file (included in the archive) attached to every copy. It runs with the full retail Quake 4 only. No Quake 4 game data is included.

Quake and Quake 4 are trademarks of their owners (id Software / ZeniMax Media). DUDE is an independent, non-commercial project, not affiliated with, endorsed or sponsored by id Software, ZeniMax Media, Microsoft, Raven Software or Activision.

Optional downloads: baked PBR packs (new)

Generated roughness, metalness and ambient-occlusion textures with a parallax height map, for every level and model. Separate downloads with their own version: they change when the baker does, not with every DUDE release. They need DUDE 0.9.10 or newer and PBR on (the High preset and above). Remove a pack to go back to the material table's values.

  • Doom 3: z_pbr_sidecars.pk4 into base/. Resurrection of Evil: z_pbr_sidecars_roe.pk4 into d3xp/. The Lost Mission: z_pbr_sidecars_lm.pk4 into d3le/. All three from Baked PBR v1. Each game's pack goes in its own folder, because the expansions redefine some of Doom 3's materials.
  • Quake 4: z_pbr_sidecars.pk4 into q4base/, from the dude-q4 releases page ("Baked PBR v1 for Quake 4").

The textures are derived from the games' own textures. No original game files are included.

Optional downloads: baked ambient-occlusion packs (unchanged)

Baked ambient occlusion is a separate download with its own version; it only changes when the baker does, so the current packs serve 0.9.10 too. Entirely optional, and unused at the Path Tracing tier. It works well together with the PBR packs: characters and props then take their ambient occlusion from their own baked maps.

  • Doom 3 + Resurrection of Evil + The Lost Mission: one pack, z_baked_ao.pk4, dropped into base/ (it covers all three), from Baked AO v1.
  • Quake 4: z_baked_ao.pk4, dropped into q4base/, from the dude-q4 releases page.

DUDE is GPLv3, source at https://github.com/Inkub0/dude. The Quake 4 game library is under the Quake 4 SDK licence; the DUDE author's code linked into it carries a GPLv3 section 7 permission (COPYING-QUAKE4-EXCEPTION.txt).