Skip to content

[DO-NOT-MERGE] PBR based Lighting with support for O-R-M-Maps#363

Open
kirides wants to merge 13 commits into
masterfrom
feat/pbr
Open

[DO-NOT-MERGE] PBR based Lighting with support for O-R-M-Maps#363
kirides wants to merge 13 commits into
masterfrom
feat/pbr

Conversation

@kirides

@kirides kirides commented May 31, 2026

Copy link
Copy Markdown
Owner
  • Replaces Blinn-Phong lighting with PBR
  • Adds support for (Ambient)Occlusion-Roughness-Metalness-Maps inside a combined TEX_orm.dds file
  • Normalmaps also enables ORM-maps

See for example the highlights of the Roofs in Khorinis city with the attached normals and ORM-maps.

Here are some sample textures compressed with texconv.exe -f BC7_UNORM *.png

Normalmaps_0.zip

To see it in action, put all the files inside this Zip-file into Gothic 2\System\GD3D11\Textures\replacements\Normalmaps_0\

> tree . /f
B:\D\SPIELE\GOTHIC 2 GOG\SYSTEM\GD3D11\TEXTURES\REPLACEMENTS\NORMALMAPS_0
    NW_City_Roof_02_normal.DDS
    NW_City_Roof_02_orm.DDS
    NW_City_Roof_04_normal.DDS
    NW_City_Roof_04_orm.DDS
    NW_City_Roof_05_normal.DDS
    NW_City_Roof_05_orm.DDS
    ....

Here's the link to the build where this feature is enabled: https://github.com/kirides/GD3D11/actions/runs/26912350120/artifacts/7396700650

For an up to date build, see the github actions runs of this PR https://github.com/kirides/GD3D11/actions/workflows/build-and-conditional-release.yml?query=branch%3Afeat%2Fpbr

You can use the following tool, modified from https://github.com/crazytoolsteam/NormalMapOnline/ to generate basic PBR maps.

NormalMapOnline-main.zip

The renderer assumes OpenGL formatted normals (+Y) instead of DirectX (-Y) - Don't ask me why...

@kirides kirides force-pushed the feat/pbr branch 10 times, most recently from 5d059cd to e96c7aa Compare June 3, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant