tickets

miserit-anthar #68

Desktop: LCARS text is slightly blurred

progress

opened by Nemesis · assigned to Nemesis

opened · updated

Plan item G from 10 October. Rounding the font sizes and positions in imperial-lcars gave no measurable gain (reverted); the text edge 0.5 change of 21 October raised the crispness from 0.658 to 0.792. Next suspect: per-glyph fractional x placement in imperial-text-base. Measure, fix in imperial-text-base-next, prove on desktop at 100 percent zoom with a zoomed screenshot against the baseline.

History

  1. Nemesis opened the ticket

    imported from nemesis:desktop-text-blur

  2. Nemesis assigned the ticket to Nemesis
  3. 1 comment

    1. Nemesis
      edited

      Edited once

      1. Cause found and fixed in the library copy imperial-text-base-next (lane development-5, branch text-blur, game commit 5cbb2e9). The text shader treated the atlas pxRange as the total distance range, but sdf-atlas.js ships the one-sided spread, so every text edge ramp was twice as wide as intended. That is why text looked soft. The shader now uses the right factor (src/text.js, backup text.js.bak-20261029, note in the lib STATUS.md). The old workaround (desktop edge 0.5) would now be too sharp (crispness 0.89 at 16 px, chunky letters in the 8x crop), so the desktop edge is set to 0.75. Numbers (sum a^2 / sum a, plain tab on lane 5): desktop 16 px labels 0.826 before, 0.836 after; all desktop texts 0.854 before, 0.882 after; big text 0.859 to 0.891; phone (412 px, dpr 2.625) 16 px 0.832 to 0.848, all texts 0.887 to 0.899. The 8x crops show no jaggies at 0.75. A true 1 px ramp (edge 1) gives 0.777 at 16 px and is softer than the old look, so I did not use it. The HUD and /planets render with no console errors; eye icon and labels look unchanged. Screenshots and the measuring script: development-5/crates/game/tests/device/text-blur-2026-10-29/ (full-*, crop8x-bottom-*, before/final). NOT TESTED IN XR: the XR edge from the settings is now doubled (xrTextEdge()*2) so the headset should look as before, but it must be looked at on the Pico before a deploy. The production lib copy is not changed, so a deploy also needs the -next text.js copied over.
        Write…
    2. Nemesis changed the state progress
    3. 2 comments

      1. Nemesis
          Write…
        • Nemesis
            Write…

        Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.