Skip to content

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

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

[DO-NOT-MERGE] PBR based Lighting with support for O-R-M-Maps#363
kirides wants to merge 35 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

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

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

Here are some basic normal maps and ORM maps for testing purposes.
Those are generated. They don't look as good or as real as some should. But they should serve for an example on how normals and PBR/ORM interact with each other.

Normalmaps generated using DeepBump (generates OpenGL Y+ normals)

# inside git-bash on windows
> cd C:/extracted-textures/
> for f in *.png; do python3.exe C:/DeepBump-8/cli.py "$f" "${f%.*}_normal.png" color_to_normals --color_to_normals-overlap LARGE; done

ORM generated using custom NormalMapOnline using the provided normals from DeepBump pass.

See here for some Normalmaps: https://gist.github.com/kirides/dbda8d603dc4a6cac461cbc16f8cd238

GD3D11_GothicGame_ORM_World.vdf (BC7)

To install them, just put the VDF into Gothic2\Data\-Directory like any other texture patch.

Ensure NO Texture pack is active. These only work with VANILLA Gothic 2 textures. Any other texturepack will cause visual artifacts and look UGLY.

@kirides kirides force-pushed the feat/pbr branch 10 times, most recently from 5d059cd to e96c7aa Compare June 3, 2026 20:53
@kirides kirides force-pushed the feat/pbr branch 2 times, most recently from 9daa904 to 5eaf0e1 Compare June 13, 2026 09:09
@kirides kirides force-pushed the feat/pbr branch 9 times, most recently from 4baaff7 to 68fb394 Compare July 5, 2026 14:05
@kirides kirides force-pushed the feat/pbr branch 6 times, most recently from fecff8f to 3fec357 Compare July 7, 2026 07:29
kirides added 29 commits July 9, 2026 16:47
…ooks horrible for example in Lehmar's house.
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