Lights: modifier volume shapes, sizes and rotation; distant light random value #264
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!264
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/264/head"
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-25 12:15 UTC · original
holdmysocks:six-192-distant-fields→master· +138 −9 · 3 files · 2 commits · merged 2026-11-25 13:17 UTCFollow-up to #255: more of the distant-light and modifier-volume fields decoded.
Modifier volumes (
tc_modifiers.jsonl)fe27ffdeis the volume's shape: box (9fde1ac6, 469), cylinder (27acc35b, 103) and ellipsoid (e63a0d71, 14). EveryTC_cylinder…modifier is a cylinder or an ellipsoid. On 62 of the 103 cylinders,scalex equals y, so their axis is local z.scaleis its full size. For cylinders and ellipsoids,scaleholds the radii. I checked this on the map files that hold a single volume: their extents are a sphere of radius |scale| / 2 around a box, often exactly, and never smaller. Around the other two shapes the radius is |scale|.shape,half_extentsand worldbounds(the rotated box's AABB), and the region filter now uses those bounds.854db4c2(u32) is set on 25 volumes, with 15 distinct hashes. None matches a modifier, room, interior or dictionary name.Distant lights (
distant.jsonl)I joined a 20 % sample (92,861 lights) by position to the placed light each comes from, and tested every distant column against every placed-light field.
a13c79ef→random. A half float spread evenly over 0..100. It is independent of the source light's fields (|Spearman r| < 0.04 for all of them), of the light's hash bits, of its position and of its type. That reads as a per-light random value.half_a13c79efstays for compatibility.time_multiplier. No placed-light field determines it, so it is set only on the distant record. 0 on 4.6 % of lights. Distantflags2 and 7 occur only with 0, and5b92fa4b= 8 holds 44 % of the zeros. Lights with 0 are always-on slightly more often (98 % vs 86 %). What it scales is still unknown.8e6f0ba9reads as two half floats (halves_8e6f0ba9).0e852fdais two u16 (u16_0e852fda), the second equal to the first or one more. Both meanings are unknown.The distant
Hashis not a plain function of the entity id, archetype, light index or position (joaat, CRC and seeded variants tried), so the join stays positional.cargo check --workspace --all-targetsandcargo test -p sixng-core -p sixng-gui --releasepass. A fullsixng lights levelsrun gives the same counts as #255: 586 volumes, 4,364 rooms, 492,298 distant lights.Second commit: distant intensity, light groups, LOD tangent
47d5d47a. p = 0 on most spots, meaning the full conversion; p = 1 means none; 0.25 and 0.5 blend. This matches 94 % of the non-zero distant spots exactly: 40° / 65° gives 5.74, and 10° / 40° gives 22.70.world.jsonlgives spots the result asdistant_intensity.854db4c2on a modifier volume matches the placed lights' field58122c00. A road tunnel's modifier and its 662 lights share one hash. The other volumes with a group are interior states: dim / bright, clean / dirty, blackout, show lighting. Both are written aslight_group. The group names are not known.time_multiplier. The same for a given light of an archetype on 98.5 %, but it is stored on no placed-light field.8e6f0ba9. The tangent, octahedral-encoded as two half floats, matching the placed tangent on 99.8 %. It is written astangent.0e852fda. A first / last index that rises with the light index, 0 / 0 on 47 %. What it indexes is not known.