Skin detail: keep the sheet filtering inside each tile #497

Manually merged
github merged 2 commits from github-bot/gh-497 into gh-pr/497/base 2026-11-27 19:36:45 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 19:08 UTC · original
holdmysocks:people-skin-detail-bleed → master · +10 −3 · 2 files · 2 commits · merged 2026-11-27 19:32 UTC

A minor correctness fix for the engine skin detail (issue #392). It does not fix the rings and lines reported on #385, which don't reproduce on an RTX 4080.

The mismatch. The game samples its detail tiles from a texture array, so a tile never sees its neighbours. The viewer packs them into a 4×4 sheet instead. It sampled that sheet with anisotropic filtering and a 1/256 inset, so near tile edges the filter could reach the neighbouring tile.

Changes:

  • skin_tile samples one isotropic mip level, chosen from the larger gradient.
  • It holds the position half a texel of the coarser blended level away from the edge.
  • The layout note in extras.skin_spec.detail tells other renderers to do the same.

Effect. Renders of cs_raina and cs_andy change by at most 9/255. In the sheets, neighbouring tiles have nearly the same average and differ only in a one-texel seam.

Tests: the sixng-gui and skinspec release tests pass (before the master merge).

**@⁠holdmysocks** on GitHub · 2026-11-27 19:08 UTC · [original](https://github.com/holdmysocks/SixNG/pull/497) `holdmysocks:people-skin-detail-bleed` → `master` · +10 −3 · 2 files · 2 commits · merged 2026-11-27 19:32 UTC A minor correctness fix for the engine skin detail (issue #392). It does **not** fix the rings and lines reported on #385, which don't reproduce on an RTX 4080. **The mismatch.** The game samples its detail tiles from a texture array, so a tile never sees its neighbours. The viewer packs them into a 4×4 sheet instead. It sampled that sheet with anisotropic filtering and a 1/256 inset, so near tile edges the filter could reach the neighbouring tile. **Changes:** - `skin_tile` samples one isotropic mip level, chosen from the larger gradient. - It holds the position half a texel of the coarser blended level away from the edge. - The `layout` note in `extras.skin_spec.detail` tells other renderers to do the same. **Effect.** Renders of cs_raina and cs_andy change by at most 9/255. In the sheets, neighbouring tiles have nearly the same average and differ only in a one-texel seam. Tests: the sixng-gui and skinspec release tests pass (before the master merge).
The game reads the detail tiles as a texture array. The viewer's 4 x 4 sheet
was sampled with anisotropic filtering and a 1/256 inset, so the filter could
reach the neighbouring tile at each tile repeat. Sample one isotropic mip
level and hold the position half a texel of it from the edge. The extras
layout note says the same for other renderers.
# Conflicts:
#	crates/sixng-core/src/skinspec.rs
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:09:45 +00:00
github-bot changed target branch from master to gh-pr/497/base 2026-11-27 19:36:44 +00:00
github manually merged commit 61b377e141 into gh-pr/497/base 2026-11-27 19:36:45 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.