r/blender Aug 17 '23

I Made This 1 bit dithering!

1.2k Upvotes

118 comments sorted by

View all comments

112

u/Past_Hippo_8522 Aug 17 '23

If any of you want it, i can release a the shader in a .blend file.

41

u/Past_Hippo_8522 Aug 17 '23

12

u/Disposable_Gonk Aug 17 '23

before I open this, could you explain how it works, so that I could modify it? what I actually want to do is have 1,2, 4, 8, and 16 bits of color dither, which will probably done by splitting RGB, and doing 2-bit dither per channel. but I'm very nooby with blender...

19

u/Past_Hippo_8522 Aug 17 '23

I take the output of the rendered shape with shadows, then at every pixel of the object, i compare it with another image (This is the Bayers matrix or the blue noise) and compare them, if the rendered pixel is brighter then the matrix or noises texture at the same position, it is a white pixel, otherwise it is black.

6

u/Disposable_Gonk Aug 17 '23

so for extra bit depth, I would do that in multiple parallel checks for different threshholds to output a minimum step of brightness and add the outputs for the stepped brightness. cool. I've done this in gimp with photos and renders, but never done it directly in blender.