Skip to content

Hide visible scrolling in background staticNoise#768

Open
aaronkollasch wants to merge 1 commit intoSwordfish90:masterfrom
aaronkollasch:random-static-noise
Open

Hide visible scrolling in background staticNoise#768
aaronkollasch wants to merge 1 commit intoSwordfish90:masterfrom
aaronkollasch:random-static-noise

Conversation

@aaronkollasch
Copy link
Copy Markdown

@aaronkollasch aaronkollasch commented Nov 17, 2022

The current background staticNoise is generated by scrolling a noise texture. However, I find that this scrolling is visible, most clearly with large window sizes on high-resolution displays. To me, this distracts from the illusion of static noise.

This PR pseudo-randomizes the vertical position of the staticNoise texel and adds that to the pre-existing scrolling of noise texture (both horizontal and vertical; faster in vertical direction). I've found that produces the best balance of hiding visible scrolling while preserving the smoothness of the previous animation. (The pseudo-random function applied to the time variable seems to produce jerky outputs if used on its own, but they aren't visible when scrolling is also applied.)

The static noise still isn't perfect on large windows with this PR applied (mostly due to the fixed 512x512 texture), but the obvious scrolling artifact is removed.

Randomize vertical position of staticNoise texel and add to
existing scrolling of noise texture (both horizontal and vertical;
faster in vertical direction)
eric2801 added a commit to eric2801/cool-retro-term that referenced this pull request Aug 14, 2024
@Swordfish90 Swordfish90 force-pushed the master branch 2 times, most recently from b65f478 to 8cf3031 Compare January 19, 2026 10:39
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