Color Quantization and Dithering

  Рет қаралды 449,166

Acerola

Acerola

Күн бұрын

Пікірлер
@Acerola_t
@Acerola_t 2 жыл бұрын
Please let me know if this video is too shitpost-y lmao
@_zurr
@_zurr 2 жыл бұрын
Never
@gonderage
@gonderage 2 жыл бұрын
no, it's shitposty enough. i freaking love the windows movie maker montage of a sheik rendered in different ways
@Acerola_t
@Acerola_t 2 жыл бұрын
@@gonderage thanks I really peaked with that
@dawnrock2391
@dawnrock2391 2 жыл бұрын
Yeah the meme cut-ins are funny af, needs more shitposting
@TavishMcEwen
@TavishMcEwen 2 жыл бұрын
It's great, loving it
@Gymomanen
@Gymomanen 2 жыл бұрын
The windows movie maker montage with Blow Me Away was spot on. Thanks for the nostalgia 😂
@mou.2
@mou.2 2 жыл бұрын
All it was missing was some "unregistered hypercam 2" in the corner.
@magnushmann
@magnushmann 2 жыл бұрын
@@mou.2 Except it wouldn't be a screen recording, but a purely windows movie maker production, so that wouldn't really make sense. Unless you for some reason recorded your final video with the screen recorder instead of just exporting it properly.
@devRat
@devRat 2 жыл бұрын
I started laugh crying. I think I made the exact montage when I was in highschool...
@2iinfinite
@2iinfinite Жыл бұрын
Or paralyzer
@gigawattsfactory6777
@gigawattsfactory6777 Жыл бұрын
The memories you brought back by doing the windows movie maker bit was Insane. Thank you.
@ddnava96
@ddnava96 2 жыл бұрын
Fun fact: Madeline (Celeste) is a combination of pixel art and 3D (or actuallh 2D). Her body and face are made of sprites but her hair is actually a flat 3D model
@GLEPCHANNEL
@GLEPCHANNEL Жыл бұрын
source?
@ddnava96
@ddnava96 Жыл бұрын
@@GLEPCHANNEL. I don't have a link for you, but you can easily find videos in KZbin that show how the game renders certain things, including Madeline's hair, lighting, etc
@TheRealAnsontp
@TheRealAnsontp Жыл бұрын
I love spline 3D animation for hair
@Luizfelipe28175
@Luizfelipe28175 22 күн бұрын
her hair isn't a flat 3d model, its a 2d texture
@ddnava96
@ddnava96 22 күн бұрын
@@Luizfelipe28175 No, it's not :> Iirc they basically did that so that the hair can have physics instead of only pre-made animation
@stevethe3307
@stevethe3307 2 жыл бұрын
Thank you soo much, I developed one heck of a headache trying to even find the correct terms to describe what I was attempting to do (restrict all colors on screen after dynamic lights and such to my color pallet). At one point thought I was going to have to go for some out of the box or super inefficient brute force solution but your vid showed me the correct most efficient way in terms I could actually understand! Definitely subbing for that alone, keep up the good work man.
@Acerola_t
@Acerola_t 2 жыл бұрын
Thanks! Dithering is my comfort effect lol I will take any chance I can get to talk about it.
@suop1234
@suop1234 Жыл бұрын
same, i only just remembered that acerola literally made a whole video on it... thanks acerola!
@realastropulse
@realastropulse 2 жыл бұрын
This is pretty interesting. As an experienced pixel artist, pixel art faker, and pixel art gatekeeper, this is a great description of how it works. I actually put together my own Blender based shader that I use for 3D -> pixel art work. Really cuts down on time, especially for animations. One thing that you can do to improve 3D scenes is actually use the depth buffer to apply some outline/darkening effects. Another trick is to use more solid blocks of color, because anything too detailed creates noise. This is why in games that use this style the objects typically have one color per section of the model.
@fiskurtjorn
@fiskurtjorn 2 жыл бұрын
10:57 To me, this feels odd with a .5 step in the middle. I would have chosen [0.00] [0.33] [0.66] [1.00], but I also experienced my visual system playing nasty tricks on me.
@JoBot__
@JoBot__ 2 жыл бұрын
I agree.
@RosarioLeonardi
@RosarioLeonardi Жыл бұрын
Is preferable to sample a pixel in the middle most of the time. So pixel 0 become 0.5 and pixel 3 becomes 3.5. Divided by the total number of pixels (4) you get a nice and uniform [0.125; 0.375; 0.625; 0.875].
@mrgreenskypiano
@mrgreenskypiano 2 жыл бұрын
I love the combination of shitposting and still explaining how everything works in enough detail that I understood most of the concepts first try. Great video!
@Nayckron
@Nayckron 2 жыл бұрын
I loved the montage section, you have the perfect combination of educational, humourous and good editing.
@Purely_Andy
@Purely_Andy 2 жыл бұрын
4:45 correction, that would be 1-bit. 2-bit would be black, dark gray, light gray, white (00, 01, 10, 11)
@guitarguyjones
@guitarguyjones 2 жыл бұрын
Fun fact, the last handful of pixel-art King of Fighters games also used 3D models to create the animations (like Dead Cells and other newer games), but instead of using an automated process to convert the models to sprites, SNK's artists did it all by hand, redrawing everything in 2D, frame by frame.
@sparkymcsparkerton8109
@sparkymcsparkerton8109 Жыл бұрын
I literally almost never comment on KZbin. You can fact check that if you like. But, I could not resist sending you a message to say I love everything about your videos. Like literally everything. It is edutainment [chef finger kiss]. I didn’t even skip the ads because it’s the literal least amount of “work” I could do to pay you with my attention. And I never don’t skip the ads. I love these videos that much. I commented on this one, not because it’s my favourite, but it’s the one I most recently watched and after watching it I said, “you have got to let this person know that their work is appreciated” So, yeah, keep it up. You’re winning at KZbin and I couldn’t be happier for you and everyone that has the pleasure of watching your work.
@Acerola_t
@Acerola_t Жыл бұрын
Thanks!
@anthonysilveira6181
@anthonysilveira6181 2 жыл бұрын
You're videos are fire, it's so interesting actually seeing the math that creates these effects.
@SamiTheAnxiousBean
@SamiTheAnxiousBean 2 жыл бұрын
As a pixel artist this was a extemely Interasting watch thank you for the incredible presentation
@dmnkb
@dmnkb Жыл бұрын
This gave me some fantastic mid-2000 vibes, thanks for that! Kinda reminds me of how much more fun the internet used to be back then. Thanks for your detailed explanations, really inspiring!!
@peppidesu
@peppidesu 2 жыл бұрын
2:51 Mipmaps are copies of the original texture scaled down by some factor. Because the pixels being sampled at a large distance change rapidly when the camera moves around, using the original texture would introduce noise to the texture. So instead, a mipmap is used in its place depending on how far away / how small the texture is. Switching between mipmaps causes banding artifacts at the distance boundaries, though. to counter that, *trilinear filtering* is used, which fades textures from one mipmap to the next. But there is another problem. The copies of the textures are scaled down by the same amount on both X and Y axis, a.k.a. they are scaled isotropically. If a texture were to be scaled down a lot on one axis, but stay the same on the other axis (for example when you stand close to a wall) the texture becomes more blurred than normal because the mipmap used is too small. *Anisotropic Filtering* takes care of that, by making copies for every combination of X and Y scalings. Side note: The term anisotropic filtering is actually not correct because it isn't a filtering mode. It is a alternative way of generating mipmaps. In other words, you can use anisotropic mipmaps with point filtering (that is, if your GPU and graphics API support that), they are not mutually exclusive like bilinear and trilinear filtering would be.
@fungo6631
@fungo6631 2 жыл бұрын
There's yet another problem you forgot to mention. Textures consume fillrate. Fillrate doesn't grow on trees. Mimpaps also reduce the fillrate requirements for distant objects that don't require as much fillrate. This allows you to add more detail where it matters with the same performance.
@AlphaGarg
@AlphaGarg 2 жыл бұрын
@@fungo6631 Fillrate?
@fungo6631
@fungo6631 2 жыл бұрын
@@AlphaGarg Yes, fillrate. What's so strange here?
@ShinyVeggie
@ShinyVeggie 2 жыл бұрын
@@fungo6631 He doesn't know what fillrate is/means and was hoping for you to expand on it instead of googling it himself.
@Krilium
@Krilium 2 жыл бұрын
Simplified: Mipmaps are a set of images, each half the size of the last. When the camera is far enough away (among other reasons), the lower resolution versions fade in. This is to save memory, and to avoid weird artefacts.
@loremaster1253
@loremaster1253 2 жыл бұрын
Great video! Really helpful given how popular the pixel look is in modern indie design.
@razeenag8478
@razeenag8478 2 жыл бұрын
Your channel is an absolute gem, educative and entertaining!!
@DanTDMs-homunculus
@DanTDMs-homunculus 2 жыл бұрын
you just popped up on my recommended and i gotta say i love your editing, your style is just very cool and nice to look at thanks for making things
@Acerola_t
@Acerola_t 2 жыл бұрын
Thank you!
@DanTDMs-homunculus
@DanTDMs-homunculus 2 жыл бұрын
@@Acerola_t 👍
@KingBobXVI
@KingBobXVI 2 жыл бұрын
The dithering bit is super interesting, I've never actually looked into how to do it on non-ascii-art images before, lol. For the pixelization bit though, is there a specific reason to do down-sampling at all? It seems like it would be much easier (and more efficient) to render at, say, 1/4 scale and up-sample it instead (which may also avoid some artifacting you can get from nearest neighbor down-sampling).
@Acerola_t
@Acerola_t 2 жыл бұрын
Yeah that would be more efficient, I like having it parameterizable in the shader though since then this effect could be used as a photo mode effect for a game that isn't specifically made to look like this. For example, I ported the effect over to ReShade for use in Final Fantasy XIV but if it was reliant on rendering at a lower resolution then the effect wouldn't work there.
@5alpha23
@5alpha23 2 жыл бұрын
I don't know why this landed in my recommended videos but boy am I glad it did! - Perfect video for a Sunday afternoon, at least in my case. 😁 Your tongue-in-cheek approach is really refreshing. 🙂
@thecompl33tnoob
@thecompl33tnoob 8 ай бұрын
I'm writing up my very first game design documentation and thought just yesterday "damn, I wish there was an Acerola video on converting 3D assets to pixel art, I should stop by the channel." and BOOM the heavens opened and this absolute jewel of a video came soaring down. I have no idea how I missed this one, as I've watched nearly everything on your channel. Please keep going man, your content is supremely helpful and immensely entertaining. The nostalgia hit hard on that montage. 😂😂😂
@christianwilliam1167
@christianwilliam1167 2 жыл бұрын
I made a very similar shader in Blender but I based on PS1 aspects, it's funny to see you came up with pretty much the same solutions.
@skylarcanode-rhodes9771
@skylarcanode-rhodes9771 2 жыл бұрын
Just found you yesterday! I'm looking forward to seeing more of your videos, keep up the good work! 😃
@SpacerZVEVO
@SpacerZVEVO Жыл бұрын
1:09 I screamed
@Cyfrik
@Cyfrik Жыл бұрын
Having messed around with similar effects in an image editor instead of a game engine, I've noticed you can also get some interesting effects if you give each separate color channel a different dither map.
@AutisticYui
@AutisticYui 2 жыл бұрын
Pretty much just binged all your videos, great stuff. Fun style and approach to the topic. Thanks for stressing the importance of optimization.
@samueldavies646
@samueldavies646 2 жыл бұрын
the dither explination was amazing, I found it super interesting!
@JulsGeekPI
@JulsGeekPI 2 жыл бұрын
very good work for the video, the formulas, the detailed explanation of the algorithm, thanks master Acerola, also the music and the relaxed mode of teaching.
@Crazymoniker
@Crazymoniker 2 жыл бұрын
That Blow Me Away montage was nostalgiac as hell. I really miss the good old days of playing Halo after school and watching shitty gameplay compilations on youtube.
@nicholasjones7822
@nicholasjones7822 2 жыл бұрын
if possible, would be cool to see limited anti-aliasing as well to smoothen out the sometimes sharp edges of the sprite
@mandelbro1
@mandelbro1 Жыл бұрын
Got a give a like because you use the cheapest most basic Samson mic and frankly I love it. Also, good video
@andrewalvarez1480
@andrewalvarez1480 Жыл бұрын
I started cracking up halfway through the video when I realized how hilarious your animations were. truly great video 5/7
@cruz6550
@cruz6550 7 ай бұрын
which software is Acerola using??? i thought he used blender
@CaveyMoth
@CaveyMoth 2 жыл бұрын
0:16 Wait. This isn't Monogatari! The downsampling and dithering give the graphics a really nice PS1 vibe. It especially reminds me of Silent Hill's graphics.
@ako_0256
@ako_0256 2 жыл бұрын
My thoughts exactly lol
@evgenyaleksandrov1206
@evgenyaleksandrov1206 Жыл бұрын
Your fascinating manner of explaining and good taste makes this interesting concept even more amazing. Thanks. I hit a subscribe button after first thing I saw from you.
@lastsipahi
@lastsipahi Жыл бұрын
I recently bought ProPixelizer asset and this video gave me the insides of how it's working. Thank you!
@firedbluex
@firedbluex 2 жыл бұрын
the amv in the middle of the video is absolutely captivating
@ZX_STH
@ZX_STH 2 жыл бұрын
The T-pose Sheik color pallet montage would make a great meme.
@feelshowdy
@feelshowdy 2 жыл бұрын
Great video. I know my way around Photoshop so I'm familiar with these effects, and they're actually so useful for practicing art. What I do is I pass my references through a downsamping filter to reduce the number of colors. When the reference is simplified like that, it helps me a lot with understanding how to shade and color everything.
@Roxor128
@Roxor128 2 жыл бұрын
I did something similar to this, but the destination palette was the EGA default. The shader included it as a 16-entry lookup table and found the two closest colours in the palette, then used dithering to decide which of the two to use for the final pixel. Given most of the colours in the EGA palette are so saturated, I had to add an extra stage that significantly increased the colour saturation first in order to get decent-looking results. Without it, most of what came out was greys, as the more realistic source material I was feeding into it just wasn't anywhere near that saturated.
@microdavid7098
@microdavid7098 2 жыл бұрын
such a detailed video. I love it. I don't use unity but have learned a lot about how things work from it
@WhiteDeVil3
@WhiteDeVil3 Жыл бұрын
Appreciate the WMM 2000's vibe montajjjjj, cheers bruv.
@badkluster
@badkluster Жыл бұрын
is this the best and most informative channel in KZbin? maybe
@Rubyllim
@Rubyllim 2 жыл бұрын
Thanks, yoinking this for my school project
@aeleequis
@aeleequis 2 жыл бұрын
Monogatari, persona 3 (if I'm not mistaken) and more references, paired with cool jokes and awesome video editing. You deserve way more followers than you have
@darknessflame101
@darknessflame101 11 ай бұрын
Love the windows movie maker throwback, absolutely brilliant
@filipgaming1233
@filipgaming1233 2 жыл бұрын
The montage reminded me of a video montage i watched when I was like 7 years old, just watched it again, good times.. thanks
@theseatoad
@theseatoad 2 жыл бұрын
Using a downsample + dither on 3D looks great, but I always like a nice thick outline around my pixel art. It would be interesting to create a shader that adds outline around Sheik. It always helps distinguish characters from environment.
@sarerusoldone
@sarerusoldone 8 ай бұрын
the windows movie maker dithering AMV was *chef's kiss*
@Soundy777
@Soundy777 2 жыл бұрын
KZbin! light this channel up!
@spuryaas
@spuryaas Жыл бұрын
I played Persona 3 for the first time about a week ago and now I hear music from it in every second video
@STICKOMEDIA
@STICKOMEDIA 2 жыл бұрын
That montage is beautiful
@sampson217
@sampson217 2 жыл бұрын
This was amazing. Thank you. 👏
@Acerola_t
@Acerola_t 2 жыл бұрын
Thanks!
@Xenthera
@Xenthera 2 жыл бұрын
7:35 calm down 2007 youtube
@SwifterYT
@SwifterYT 2 жыл бұрын
This channel's very addicting, wanting to get into shaders soon so this stuff will be helpful. Thanks!!
@ragingdonut
@ragingdonut 2 жыл бұрын
love the monogatari theme
@ShinSpiegel
@ShinSpiegel Жыл бұрын
This was a freaking amazing video. Thanks for sharing
@aiden_3c
@aiden_3c 2 жыл бұрын
I actually really love this video, also how you actually talk about the math now I understand how I'd do some shader shit like this. Thank you
@chlorine6539
@chlorine6539 2 жыл бұрын
i have no idea whats going on but this showed up on my recommended and Im having a good time
@BakeBakePi
@BakeBakePi Жыл бұрын
That's so cool! Great video!
@errantwashere
@errantwashere 2 жыл бұрын
Errant was here
@AndiieRose
@AndiieRose Жыл бұрын
I actually used this video to make my own color quantization algorithm, in Scratch of all places!
@ciberman
@ciberman 3 ай бұрын
Came for the dithering, stayed for the montage
@krawieck
@krawieck 2 жыл бұрын
very cool video, im gonna now watch every other video on ur channel
@medj7218
@medj7218 2 жыл бұрын
i really apreciate your help with dowloanding this software
@nottellinganyoneanything
@nottellinganyoneanything 2 жыл бұрын
that color clamping montage made me feel15 years younger
@kwmcgreal
@kwmcgreal Жыл бұрын
Very helpful to learn what these functions do!
@wii58739
@wii58739 Жыл бұрын
That windows movie maker montage was lit!
@blakerussell5538
@blakerussell5538 Жыл бұрын
I fucking love this guys taste in video game music. WOH is neat
@sig3363
@sig3363 Ай бұрын
This is the first video I watched from this guy. I could spot some shitpost humor but when the montage dropped, I lost everything. I wanna be his friend.
@Krilium
@Krilium 2 жыл бұрын
I am here to say that I'm happy because I remembered what mipmaps were off the top of my head and I have minor short term memory problems. YAY LEARNING!
@abelstypewriters
@abelstypewriters 2 жыл бұрын
You have a gift for being concise.
@StHappyfaces
@StHappyfaces 2 жыл бұрын
Thank you kindly, stranger
@Koplerio
@Koplerio 2 жыл бұрын
This video is literally going back in time.
@firecrusades3397
@firecrusades3397 Жыл бұрын
the most important video of the last decade
@jackmiddleton2080
@jackmiddleton2080 5 ай бұрын
I can't remember the last time I learned so much so quickly.
@cyancatnp
@cyancatnp 11 ай бұрын
I learnt a lot from this video. Thank you
@Rullisi
@Rullisi 11 ай бұрын
The montage was amazing.
@theai_1
@theai_1 11 ай бұрын
I'd love to see an effect like this on larger terains - like for example that ocean simulation. Looks incredible
@CrxzyYT
@CrxzyYT 18 күн бұрын
as an artist who dables in the occosional programming project because im inasne and literally do everything myself from digital art to video game mod, or sometimes entire coding project. I learned something from this. And no, it wasnt that i miss the 2006 montage edits.
@mastef
@mastef 5 ай бұрын
jesus man what a great video!
@DeuxisWasTaken
@DeuxisWasTaken Жыл бұрын
Thanks Acerola very cool The montage not only made me giggle but also reminded me of the existence of Breaking Benjamin to which I last listened like 10 years ago lol, thanks for the nostalgia
@csxcatgirl9896
@csxcatgirl9896 2 жыл бұрын
ABSOLUTE BANGER
@glitched_code
@glitched_code Жыл бұрын
this is very useful, thank you!!
@mr_clean575
@mr_clean575 2 жыл бұрын
I would love to see what the different color shading effects using the grayscale mapping would look like on the sheik model
@joemama-bu5ue
@joemama-bu5ue 2 жыл бұрын
The edition was filled with shitpost and super fluid, exactly the type of edit I love, congrats for whoever edit it.
@rainbowzzzplayzzz
@rainbowzzzplayzzz 2 жыл бұрын
Ive never once wondered about any of this. Despite that this was a very fun video and I enjoyed it v much ty for giving me your knowledge.
@memesfromtheforsakenworlwi9218
@memesfromtheforsakenworlwi9218 2 жыл бұрын
nice monogatari reference
@flamshiz
@flamshiz Жыл бұрын
the only reason I can think of not to precompute the LUT for the dither pattern would be if you're really pinching each byte of memory for size constraint purposes
@vehicleboi5598
@vehicleboi5598 2 жыл бұрын
we’re started dithering
@ArchOfficial
@ArchOfficial 2 жыл бұрын
I knew this was going to be a shitpost as soon as I heard the P3 BGM. Subscribed.
@augmentedcamel
@augmentedcamel Жыл бұрын
fantastic edit
@qdeqdeqdeqde
@qdeqdeqdeqde 2 жыл бұрын
the way the colors look remind me of the old game MDK
@BickSnarf
@BickSnarf Жыл бұрын
7:35 man that hit me in the nostalgia
@fernandaalmeida6670
@fernandaalmeida6670 2 жыл бұрын
thanks a lot!!! so nice reverb
@aluminiumsandworm
@aluminiumsandworm 2 жыл бұрын
i was not prepared for the montage... now i have an irrepressible urge to play cod 4 until 3 am while eating junk and shittalking my friends on xbox live
@tciddados
@tciddados 2 жыл бұрын
I feel like a good addition to this might be explanation of non-standard palette dithering. The kind explained at the end is neat, but ultimately a fake color picture from greyscale, and the color-choosing algorithm shown before just assumes an RGB palette with equally-spaced items. Would be interesting to go a bit into palette-aware algorithms (like ones with a higher # of greens than blues, to make the night landscape picture show up better).
@Acerola_t
@Acerola_t 2 жыл бұрын
Very true!
@TheRealBoof
@TheRealBoof 2 жыл бұрын
That montage is FIRE
@psully212
@psully212 2 жыл бұрын
There's no way it was less time and labor intensive to make this slide show than to record a simple video
@andershour
@andershour 2 жыл бұрын
Gonna tell my girl I need her to do a lil dithering on my mixels tonight 😈
@Acerola_t
@Acerola_t 2 жыл бұрын
she downsample my dither make my palette swap
@jackmiddleton2080
@jackmiddleton2080 5 ай бұрын
bruh I didn't know what anti aliasing was for like 20 years until watching 3 seconds of this video.
The Strange Graphics Of LETHAL COMPANY
15:59
Acerola
Рет қаралды 997 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,6 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
This is the Kuwahara Filter
18:16
Acerola
Рет қаралды 464 М.
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 1 МЛН
Game Dev Tutorials Are LYING To You
10:42
Acerola
Рет қаралды 337 М.
I Tried Turning Games Into Text
18:18
Acerola
Рет қаралды 373 М.
How to Make 100% Accurate PS1 Graphics in Modern Software
12:24
How Are Games Rendering Fur?
28:51
Acerola
Рет қаралды 493 М.
Making a Game About Weak Points
21:27
Emis
Рет қаралды 485 М.
Deferred Lights - Pixel Renderer Devlog #1
8:41
aarthificial
Рет қаралды 402 М.
Your Colors Suck (it's not your fault)
37:01
Acerola
Рет қаралды 545 М.
This is the Difference of Gaussians
19:03
Acerola
Рет қаралды 266 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН