r/computergraphics • • May 11 '20

hilbert haftoning

193 Upvotes

15 comments sorted by

6

u/sjull May 11 '20

How did you make this? It’s amazing!

11

u/flockaroo May 11 '20

its a shader based on a Hilbert-curve (in polar coordinates) which's iteration depth depends on the brightness of the image.

you can actually get it as Effect-plugin for AfterEffects or OpenFX at https://10xfx.com/?package=pack2

3

u/theFrenchDutch May 11 '20

Isn't this cheating, to also apply the image as background color itself ? I guess the goal was to have a finer/smaller hillbert on the image's dark spots to naturally create dark areas, due to the abundance of lines itself, not by adding darkening the background anyway ?

Cool visualization though !

6

u/flockaroo May 11 '20

no, honestly, thats not the case... there's, however, a bloom rendered over it. so, implicitly that darkens dark areas even more (which might lead to the impression you had). ...but thanks!

1

u/Eindacor_DS May 11 '20

i mean, the space in between the lines definitely varies in color. not sure what you mean by there's a "bloom" rendered over it, it still kinda looks like cheating

1

u/flockaroo May 11 '20

thats also visually misleading... i swear no cheating involved... but to explain: the space between the lines clearly varies, no doubt about that - thats the principle behind it... otherwise no halftoning... but i admit that some lines look thicker in darker regions. and in a way they are... but what seems as thicker lines is the line going sometimes small meanders (smaller that line thickness), which are swallowed by the constant line thickness.

1

u/flockaroo May 11 '20

...and sometimes line thickness gets thinner but only on big brightness jumps (derivatives get big per pixel, which makes calculating proper thickness by derivatives unprecise). but i guess thars not what you meant...

→ More replies (1)
→ More replies (1)

1

u/furbait May 11 '20

i think for a long moment my eyes were all pupil, no iris...

1

u/TechnoL33T May 12 '20

This effect is pretty well lost on compression.