Rezmason / matrix

matrix (web-based green code rain, made with love)
https://rezmason.github.io/matrix
MIT License
3.29k stars 212 forks source link

Horizontal black stripe with high density #33

Closed presianbg closed 1 year ago

presianbg commented 1 year ago

Hi,

First and foremost, thank you for the awesome project!

I've noticed that increasing the density results in a black stripe in the middle of the screen, which becomes more and more noticeable the higher the density is.

This is the settings I've used.

image

Do you see the same on your end ?

Cheers, PY

Rezmason commented 1 year ago

Thanks for your interest!

Yep, this line is present at any density, when the width is even. When it's odd, it gets hidden:

https://rezmason.github.io/matrix/?effect=customStripes&colors=119,0,121,1,1,0,0,1,1&width=100&volumetric=true&forwardSpeed=0.2&density=10&ditherMagnitude=0.02&width=81

image

Nice settings by the way!

So, what's going on? Basically, volumetric mode gives the glyph columns unique distances from the camera, but otherwise the glyphs are still in a grid. Most of the gaps between rows of glyphs are "above" or "below" the vanishing point; this one is directly aligned with the horizon.

The fix is for me to add a slight, random vertical offset to the columns in 3D mode, so the grid is shaken up a bit. Let's see how long that takes...

Rezmason commented 1 year ago

Fixed! Remember to clear the broken version from your browser cache.