Color Quantization and Dithering

  Рет қаралды 457,915

Acerola

Acerola

Күн бұрын

Пікірлер: 433
@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.
@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!
@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 2 ай бұрын
her hair isn't a flat 3d model, its a 2d texture
@ddnava96
@ddnava96 2 ай бұрын
@@Luizfelipe28175 No, it's not :> Iirc they basically did that so that the hair can have physics instead of only pre-made animation
@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].
@Nayckron
@Nayckron 2 жыл бұрын
I loved the montage section, you have the perfect combination of educational, humourous and good editing.
@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!
@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.
@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.
@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 👍
@SamiTheAnxiousBean
@SamiTheAnxiousBean 2 жыл бұрын
As a pixel artist this was a extemely Interasting watch thank you for the incredible presentation
@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. 🙂
@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.
@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!!
@loremaster1253
@loremaster1253 2 жыл бұрын
Great video! Really helpful given how popular the pixel look is in modern indie design.
@thecompl33tnoob
@thecompl33tnoob 10 ай бұрын
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.
@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.
@skylarcanode-rhodes9771
@skylarcanode-rhodes9771 2 жыл бұрын
Just found you yesterday! I'm looking forward to seeing more of your videos, keep up the good work! 😃
@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.
@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.
@mandelbro1
@mandelbro1 Жыл бұрын
Got a give a like because you use the cheapest most basic Samson mic and frankly I love it. Also, good video
@samueldavies646
@samueldavies646 2 жыл бұрын
the dither explination was amazing, I found it super interesting!
@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.
@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.
@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
@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.
@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 9 ай бұрын
which software is Acerola using??? i thought he used blender
@minidavid-devdave
@minidavid-devdave 2 жыл бұрын
such a detailed video. I love it. I don't use unity but have learned a lot about how things work from it
@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
@badkluster
@badkluster Жыл бұрын
is this the best and most informative channel in KZbin? maybe
@SwifterYT
@SwifterYT 2 жыл бұрын
This channel's very addicting, wanting to get into shaders soon so this stuff will be helpful. Thanks!!
@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
@lastsipahi
@lastsipahi Жыл бұрын
I recently bought ProPixelizer asset and this video gave me the insides of how it's working. Thank you!
@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.
@sampson217
@sampson217 2 жыл бұрын
This was amazing. Thank you. 👏
@Acerola_t
@Acerola_t 2 жыл бұрын
Thanks!
@STICKOMEDIA
@STICKOMEDIA 2 жыл бұрын
That montage is beautiful
@firedbluex
@firedbluex 2 жыл бұрын
the amv in the middle of the video is absolutely captivating
@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
@Enipulve
@Enipulve 2 жыл бұрын
The T-pose Sheik color pallet montage would make a great meme.
@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.
@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.
@medj7218
@medj7218 2 жыл бұрын
i really apreciate your help with dowloanding this software
@ShinSpiegel
@ShinSpiegel Жыл бұрын
This was a freaking amazing video. Thanks for sharing
@WhiteDeVil3
@WhiteDeVil3 Жыл бұрын
Appreciate the WMM 2000's vibe montajjjjj, cheers bruv.
@Rubyllim
@Rubyllim 2 жыл бұрын
Thanks, yoinking this for my school project
@sarerusoldone
@sarerusoldone 10 ай бұрын
the windows movie maker dithering AMV was *chef's kiss*
@BakeBakePi
@BakeBakePi Жыл бұрын
That's so cool! Great video!
@darknessflame101
@darknessflame101 Жыл бұрын
Love the windows movie maker throwback, absolutely brilliant
@krawieck
@krawieck 2 жыл бұрын
very cool video, im gonna now watch every other video on ur channel
@Soundy777
@Soundy777 2 жыл бұрын
KZbin! light this channel up!
@ciberman
@ciberman 5 ай бұрын
Came for the dithering, stayed for the montage
@kwmcgreal
@kwmcgreal Жыл бұрын
Very helpful to learn what these functions do!
@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
@chlorine6539
@chlorine6539 2 жыл бұрын
i have no idea whats going on but this showed up on my recommended and Im having a good time
@ragingdonut
@ragingdonut 2 жыл бұрын
love the monogatari theme
@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
@Rullisi
@Rullisi Жыл бұрын
The montage was amazing.
@wii58739
@wii58739 Жыл бұрын
That windows movie maker montage was lit!
@augmentedcamel
@augmentedcamel Жыл бұрын
fantastic edit
@mastef
@mastef 7 ай бұрын
jesus man what a great video!
@sig3363
@sig3363 3 ай бұрын
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.
@blakerussell5538
@blakerussell5538 Жыл бұрын
I fucking love this guys taste in video game music. WOH is neat
@abelstypewriters
@abelstypewriters 2 жыл бұрын
You have a gift for being concise.
@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
@cyancatnp
@cyancatnp Жыл бұрын
I learnt a lot from this video. Thank you
@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.
@glitched_code
@glitched_code Жыл бұрын
this is very useful, thank you!!
@nottellinganyoneanything
@nottellinganyoneanything 2 жыл бұрын
that color clamping montage made me feel15 years younger
@theai_1
@theai_1 Жыл бұрын
I'd love to see an effect like this on larger terains - like for example that ocean simulation. Looks incredible
@StHappyfaces
@StHappyfaces 2 жыл бұрын
Thank you kindly, stranger
@AndiieRose
@AndiieRose Жыл бұрын
I actually used this video to make my own color quantization algorithm, in Scratch of all places!
@firecrusades3397
@firecrusades3397 Жыл бұрын
the most important video of the last decade
@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!
@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!
@csxcatgirl9896
@csxcatgirl9896 2 жыл бұрын
ABSOLUTE BANGER
@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
@SpacerZVEVO
@SpacerZVEVO Жыл бұрын
1:09 I screamed
@fernandaalmeida6670
@fernandaalmeida6670 2 жыл бұрын
thanks a lot!!! so nice reverb
@jdigi78
@jdigi78 2 жыл бұрын
love the montage
@Xenthera
@Xenthera 2 жыл бұрын
7:35 calm down 2007 youtube
@CrxzyYT
@CrxzyYT Ай бұрын
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.
@jackmiddleton2080
@jackmiddleton2080 6 ай бұрын
I can't remember the last time I learned so much so quickly.
@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
@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
@Koplerio
@Koplerio 2 жыл бұрын
This video is literally going back in time.
@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.
@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
@ArchOfficial
@ArchOfficial 2 жыл бұрын
I knew this was going to be a shitpost as soon as I heard the P3 BGM. Subscribed.
@NoTengoIdeaGuey
@NoTengoIdeaGuey Жыл бұрын
Holy shiiiiiiiiiit the Blow Me Away montage, taking me back to 2007 lmaoo. Was that a cover band that did the music or was it some kind of audio filter applied to the actual track to dodge DMCA? It sounded obviously different but pretty dang close enough to make me wonder. Edit: NVM, read the description. 🤪
@BickSnarf
@BickSnarf Жыл бұрын
7:35 man that hit me in the nostalgia
@TheRealBoof
@TheRealBoof 2 жыл бұрын
That montage is FIRE
@nolanj.3897
@nolanj.3897 2 жыл бұрын
As someone who has never done anything involving textures, very good video
@nguyenhoangminhtrung2779
@nguyenhoangminhtrung2779 2 жыл бұрын
I love these videos!
@TheBigMaxYT
@TheBigMaxYT Жыл бұрын
You waited until 11:38 to blow my mind, sir.
@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
This is the Kuwahara Filter
18:16
Acerola
Рет қаралды 473 М.
How are holograms possible?
46:24
3Blue1Brown
Рет қаралды 2 МЛН
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
This is the Difference of Gaussians
19:03
Acerola
Рет қаралды 270 М.
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Рет қаралды 751 М.
I Tried Turning Games Into Text
18:18
Acerola
Рет қаралды 385 М.
Do Video Games Fake Buoyancy?
17:08
Acerola
Рет қаралды 250 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,7 МЛН
What's The Deal With Depth Of Field
14:36
Acerola
Рет қаралды 125 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,6 МЛН
How Do Games Render Fur?
28:51
Acerola
Рет қаралды 507 М.
Simulating the Evolution of Aging
32:22
Primer
Рет қаралды 5 М.
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН