Skin translucency: the game's subsurface profiles, shaded and exported #483
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!483
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-483"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-27 18:04 UTC · original
holdmysocks:people-skin-translucency→master· +220 −21 · 7 files · 1 commits · merged 2026-11-27 18:12 UTCPart of #392: ped skin translucency, from the game's own subsurface profiles.
What was found
.zmt). No meta resource or carved PSO has that layout. The file is a data.rpf PSO that only the table of contents reaches (toc-extract). The game executable's parser table (exeschema) gives its layout:a0ec2837: an array of73bc6e91records plus two floats;name,scatterColor,scatterDistance, a thickness range, an exponent and a kind enum.skin_default,eye_defaultandanimal_default. Four unnamed records are copies ofskin_default.d = max((byte / 255)^2 x scatterDistance, 1e-5)per colour channel, from the engine's table builder. Forskin_defaultthat is 1.5, 0.025 and 0.004 mm for red, green and blue, with a thickness of 0.5 to 40 mm and an exponent of 1.3. So thin skin passes red light only.0.17182 T (2 + 0.75 / (1.25 + L.V)^1.5)to the diffuse light, times the light colour and a shadow term, with no N.L.Tis the Burley-style transmittance through that thickness.What changed
skinspec: theSssProfiletype with its radii, thickness and transmittance, and theSKIN_DEFAULTvalues.extras.skin_spec.translucencynow records the profile.<spec>_sss.pngand the material getsKHR_materials_diffuse_transmissionfrom it:2 x 0.17182 x max(T), which is the term without its angle part.Not traced
skin_default.3b316b01+0x74 and +0x30). They are still taken as 1; no static writer was found.Checked
sixng-coretests: 389 pass, including a new profile test.sixng-guitests: 57 pass. The release build is OK.