This is the Difference of Gaussians

Поделиться
HTML-код
  • Опубликовано: 22 сен 2024
  • In the realm of image based edge detection, aesthetically pleasing edges are hard to come by. But, what if we could get stylized edge lines by just blurring our image twice?
    Download my GShade shader pack!
    github.com/Gar...
    Patreon: / acerola_t
    Twitter: / acerola_t
    Twitch: / acerola_t
    Code: github.com/Gar...
    Join My Discord Server! / discord
    References:
    users.cs.north...
    Music:
    Sandgem Town (Day) - Pokemon Diamond OST
    Joy - Persona 3
    During The Test - Persona 3
    Afternoon Break - Persona 3
    This Mysterious Feeling - Persona 3
    Muscle Blues - Persona 4
    Like A Dream Come True - Persona 4
    Soft Oversight - Sonny Boy OST
    Summer Storm - Sonny Boy OST
    ソウとセイジ - Sonny Boy OST
    arrow in thumbnail drawn by thlurp
    Thanks for watching!
    This video is dedicated to my friend, Alotryx.
    #acerola #graphics #gamedev #unity3d #graphics #shaders

Комментарии • 591

  • @wuketuke6601
    @wuketuke6601 Год назад +1346

    Acerola: as you can see, the fine detail gets preserved
    Me, watching on 144p on mobile: Undoubtedly

  • @yoavsigler4457
    @yoavsigler4457 Год назад +1500

    This channel produces consistently entertaining educational videos that feel like total shitposts and I couldn't ask for more

    • @PropaneWP
      @PropaneWP Год назад +33

      Agreed. Instead I would like to ask for less goblin sharks.

    • @priestofhiro
      @priestofhiro Год назад +11

      @@PropaneWP I would like to ask for more

    • @scoutgaming737
      @scoutgaming737 8 месяцев назад +2

      This channel is the difference of gaussians

    • @c0d3r1f1c
      @c0d3r1f1c 4 месяца назад

      Moar dog, plz.

  • @hwinnemo
    @hwinnemo Год назад +366

    When you randomly come across a tech channel... Dig the presentation style and watch more... Only to find one of your old papers being the topic covered in the video 🤯 The pronunciation of my name leaves something to be desired, but the rest of the explanation and delivery was something I only wish I would've had the skills or time for back then! Super well done 👏Keep up the good (and entertaining!) work

    • @Acerola_t
      @Acerola_t  Год назад +128

      omg how flattering, your work is by far my favorite post processing effect I've implemented
      sorry about pronunciations! I try my best lol

  • @-Gnarlemagne
    @-Gnarlemagne Год назад +101

    This video, particularly the edge tangent flow and line integral convolution, helped me out a tremendous amount with my job, and led to a breakthrough in a problem I was working on. This is particularly surprising, considering my work has nothing to do with video filters - but it's not an exaggeration to say this saved me weeks, maybe months, of fumbling around. Thanks mr aceroller :)

    • @Acerola_t
      @Acerola_t  Год назад +29

      omg thanks so much!! I'm glad I could help out.

    • @beginner1639
      @beginner1639 10 месяцев назад +13

      Now im very curious to know what was the work. Can you say it?

  • @Providence83
    @Providence83 Год назад +153

    Finally, a video that explains what the D.O.G. doin'.
    This video fascinated me as a mechanical engineer to see a different application of all the various math tools we were taught for things like controls and dynamic systems. Everytime a new term I knew came up I got hyped. "We can use this tensor" omg yes! _Sick!_ "and then use these eigenvectors" *YYEEEEEESSS!*

    • @Acerola_t
      @Acerola_t  Год назад +50

      Glad to know at least 1 viewer knows what a tensor is

    • @user-me7hx8zf9y
      @user-me7hx8zf9y Год назад +2

      PROVIDENCE! it's me frank

    • @Providence83
      @Providence83 Год назад +1

      @@user-me7hx8zf9y Frank! Wow, fancy you finding me all the way on this other side of the internet. You've always been a man of good taste.

  • @khing5720
    @khing5720 Год назад +541

    Randomly changing cross hatching direction in real time every frame (or every few frames) might give you an animated look, like its being redrawn or something

    • @Acerola_t
      @Acerola_t  Год назад +195

      I do think that's the thing that'll really drive the effect home for real time, animating it in a way that doesn't look awful

    • @khing5720
      @khing5720 Год назад +36

      @@Acerola_t yeah, i wonder if there’s a way to get that kinda worbly line effect that animated objects have when theyre redrawn, in a way that isnt super expensive

    • @zacharychristy8928
      @zacharychristy8928 Год назад +22

      @@khing5720 maybe by selecting the cross hatch direction locally with some kind of continuous but varying noise? Varying the noise parameters could vary the "wobble" effect's intensity and frequency. Maybe you could make it totally random temporally so it looks like it's being re-drawn every frame (or every several frames)

    • @moth.monster
      @moth.monster Год назад +25

      I'd simply make the crosshatch mask an animated loop that wiggles nicely lol

    • @TroublingMink59
      @TroublingMink59 Год назад +15

      You would probably want to lock the framerate of the changing crosshatch texture to something low, like 12 fps. Maybe make it dependent on a motion vector extracted directly (good luck) or derived from depth & normal buffers.

  • @chromevillager
    @chromevillager Год назад +237

    This is the difference of gaussians

    • @D01Light
      @D01Light Год назад +8

      The difference of gaussians this is

    • @dogeth4021
      @dogeth4021 Год назад +7

      Of gaussians the difference this is

    • @VikalpRajKisku
      @VikalpRajKisku Год назад +3

      This Difference is Gaussian of the

    • @scoutgaming737
      @scoutgaming737 8 месяцев назад +2

      Different this of is the Gaussians

    • @_yuno2223
      @_yuno2223 8 месяцев назад +1

      This is the difference of gaussians

  • @SamBskate
    @SamBskate Год назад +14

    The intersection between art, math, and computer science here is amazing.

  • @smartnube
    @smartnube Год назад +251

    Incredible, you made me interested in signal processing after 2 teachers bored me to death with it

    • @owa1985
      @owa1985 Год назад +11

      If only your channel existed 15 years ago.

    • @w花b
      @w花b Год назад +5

      ​@@owa1985this would be too high quality for a channel of that time

    • @spacelover4106
      @spacelover4106 2 месяца назад +1

      ​@@w花bcheck Captain Disillusion, he keeps making consistently high quality videos since the rise of youtube

  • @Lance_G
    @Lance_G Год назад +33

    You are absolutely crushing the dead center of the "wildly entertaining meets comprehensively informative” Venn Diagram🙌

  • @chickennugget6684
    @chickennugget6684 Год назад +94

    I feel like some of these DoGs could make a cool horror game setting, the high contrast could lead to interesting atmospheres

    • @DKarkarov
      @DKarkarov Год назад +2

      I can only answer this question with "Yes." Thanks to how chonky the Dog is from all those settings, especially double or.... three way dogs, you can get away with forcing a lot of interesting color choices/patterns but there is definitely a lot of fine tuning required. Like many hours of it -_-

    • @1224chrisng
      @1224chrisng Год назад

      There's a detective game called "Return of the Obra Dinn" with a similar style. I think they use dots and dithering moreso than edge detection

    • @PauLtus_B
      @PauLtus_B Год назад

      @@1224chrisng I really don't think Obra Dinn used DoG's except for maybe some edge detection.

  • @Kavukamari
    @Kavukamari Год назад +38

    if you had a quantum computer, you could try all variations of the parameters at once, and then use the quantum reverse fourier transform to extract the one that you think looks the best using a neural network trained on your preferences

    • @Rudxain
      @Rudxain 9 месяцев назад +6

      At first I thought this was just an insane joke, but then I realized this could be totally possible! We just need a NN designed for dealing with quantum sines, allowing us to connect it directly to the superposition, no need for FFT!

    • @mnxs
      @mnxs 4 месяца назад

      As something of a cultured nerd myself, I approve of this technobabble 👍

  • @araqweyr
    @araqweyr Год назад +94

    This is top tier content. I'm eternally grateful for a great knowledge you've provided Acerola. I can't stop thinking of an infinite possibilities this technique provides

  • @mubashirali4858
    @mubashirali4858 Год назад +17

    i think it'd be super cool to use the vector flow field to drive the rotation for the crosshatching texture, with the first and darkest layers being parallel to the VFF and the additional layers being varied parpendicular angles rather than random rotation. This would give you a more accurate crosshatching pattern that takes form into account rather than just using raw values.

  • @anonelusive340
    @anonelusive340 Год назад +41

    I love those references to Tatami Galaxy and Monogatari in the editing of the video! Also the topic is presented in a very clear way, it really makes me want to code it up myself

    • @zekiz774
      @zekiz774 Год назад +1

      Same. Also the whole style is a Monogatari reference and so is the name of the channel

  • @TheBaxes
    @TheBaxes Год назад +10

    Love the references to Monogatari series and Tatami Galaxy! And love the use of Persona music too!
    The explanation is very good too, I should try watching it when my brain isn't melted due to lack of sleep though

  • @earlycomposer4018
    @earlycomposer4018 Год назад +14

    god i just love these videos so much. please keep it up

  • @umbra4540
    @umbra4540 8 месяцев назад +1

    idk why but the arrow with the transparent background got me better than anything else today. very silly and good comedy

  • @squdioodellover2589
    @squdioodellover2589 Год назад +31

    Calling it the DOG is way funnier to me than it should be. I don't really care about shaders, but calling it the DOG kept me watching.
    Also loved those transitions, this is a well-made video :)

  • @randomacc1029384756
    @randomacc1029384756 Год назад +2

    "in signal processing" triggered my fight or flight

  • @superman39756
    @superman39756 Год назад +1

    What a banger video! Not only did you manage to reteach me complicated topics I had encountered in a more intuitive way, supported by examples, but also you manages to sustain the feel of a casual conversation throughout. What a video. Subscribed.

  • @DonChups
    @DonChups Год назад +1

    Ok, time to playlist your whole channel. Thanks for sharing this.

  • @chloehuppe5962
    @chloehuppe5962 Год назад +1

    "It's kinda like the stellaris tech-tree" "Image processing / stellaris" is the intersection of topics I would've expected to see on youtube when I woke up this morning

  • @KoshakiDev
    @KoshakiDev Год назад +20

    I love the pencil cross hatch! Please continue making more videos!

  • @ElinaNoodles
    @ElinaNoodles 27 дней назад

    This is actually really helpful for people trying to achieve some stylized backgrounds for animation without going through the trouble of drawing every single one of them by hand completely. I'm currently working on an animation and have 3D modelled the entire set piece in blender so I want to turn the renders I make from them and make them look more "illustration-like" in the final work.

  • @JepMZ
    @JepMZ 11 месяцев назад +2

    That's so crazy that artstyle can be defined by equations and numbers. To be able to bridge art and logic is mind blowing

  • @AdjectiveObject
    @AdjectiveObject Год назад +2

    You're a seriously great communicator. I wish I had this back in my undergrad visual computing classes.

  • @IsaMorphic
    @IsaMorphic Год назад +2

    You are special, I enjoy how much you seem to enjoy making these :)

  • @gordonlawrenz7635
    @gordonlawrenz7635 Год назад +2

    Thanks man. Had a hard time recently to stay motivated so I started playing around with webGPU and some of your filters as a side project. I'm really having a blast with it thanks to you. Hope you are doing well, bro!

    • @Acerola_t
      @Acerola_t  Год назад

      Thanks! WebGPU is definitely in need of some implementations of these effects

  • @mmilerngruppe
    @mmilerngruppe 2 месяца назад

    Dude, your videos are amazing. Please do more of this sick image processing shit I so hated in the university. Now I begin to love it.

  • @EmanoelQueiroz03
    @EmanoelQueiroz03 Год назад +2

    One of my new favorite channels to watch! Funny and educational

  • @NKCubed
    @NKCubed Год назад +3

    crazy dedication man, not sure how many other creators have invented a time machine to improve their stuff, but you're part of a select few

  • @mihailkondratyev8435
    @mihailkondratyev8435 Год назад +4

    Wonderful channel! Please keep making these videos!

  • @_Olaroll
    @_Olaroll Год назад +3

    Woah, that crosshatching style looked amazing!

  • @unintendoedconsequences3278
    @unintendoedconsequences3278 Год назад +1

    I've spent two days watching this video on loop with the UE4 material editor open. Thank you for this information.

    • @Acerola_t
      @Acerola_t  Год назад +2

      I'd recommend referencing the paper in my description for a more true to form description of the implementation as I do neglect mild yet important details for the sake of watchability.

  • @jamesweatherwax4444
    @jamesweatherwax4444 Год назад +1

    First video i watched from you. The explanations are technically in depth but still easy to understand. This makes me want to watch more Videos and learn more about the topic. Great work

  • @yenoice1050
    @yenoice1050 Год назад +9

    Finally, he’s back

  • @DarkSwordsman
    @DarkSwordsman Год назад +3

    I'm only 2:30 in, but holy cow, you have provided so much useful information that is easy to understand. Thank you!

  • @DorganDash
    @DorganDash Год назад +1

    I didn't expect to find so many sonny boy reference in one of your videos. Pure gold.

  • @TMTLive
    @TMTLive Год назад +1

    Structuring the video with the tatami galaxy sequence is great

  • @Simon_Laserna
    @Simon_Laserna Год назад +7

    I think my favorite was the last one, though I think there is a lot more to explore with color which can significantly elevate it for certain use cases.
    Regardless, awesome video as always!

  • @RickyDivjakovski
    @RickyDivjakovski Год назад +1

    Keep up the good work, i learn so much from you!

  • @Owl90
    @Owl90 Год назад

    This is like a video from 2007, I love it so much.

  • @dominiczepeda7798
    @dominiczepeda7798 Год назад +1

    Bruh. All your videos slap. I have no experience in this field or real understanding of how this stuff works, but your shit makes me laugh, get curious, and wanna try it for myself. I can't support you on patreon, but it'd be worth the money if I had it.

  • @-mystic-93
    @-mystic-93 Год назад

    Woah. I think that you already have the best stylization! The crosshatch really got me. Incredible work

  • @kartanosaka
    @kartanosaka Год назад +5

    I'm a simple guy. I see Tatami Galaxy, I like.

  • @WIZ_LIZ
    @WIZ_LIZ Год назад

    Mad props for using the Sonny Boy OST in the background, that show slapped!

  • @ro-ce8vg
    @ro-ce8vg 11 месяцев назад

    here again because my computer vision course brought up the difference of Gaussians, this vid is unironically super helpful for me now

  • @matthewschoen9827
    @matthewschoen9827 7 месяцев назад

    This is going in the Chanpions hall of stuff I listen to while drawing. I am enthralled

  • @sepxviii731
    @sepxviii731 Год назад

    Best video of the holiday so far

  • @NoNTr1v1aL
    @NoNTr1v1aL Год назад +1

    Absolutely amazing video! Subscribed.

  • @jordonwaters9778
    @jordonwaters9778 Год назад +3

    Love the videos, keep up the good work

  • @mnxs
    @mnxs 4 месяца назад

    I could totally see stuff like this being used for in-game cinematics! Like cutscenes, quick scripted action events, or just stylised screenshots. Could even go as far as a stylistic theme / visual concept for the entire game. In a game, you'd also have things like depth buffers and surface normal differences available to provide a guide for the "true edges", and I wonder if the algorithm could be adapted to use that as a form of guidance/correction.

    • @Hassan12567
      @Hassan12567 15 дней назад

      wouldn't the amount if computation be too taxing or am I wrong. I was thinking of doing the cross hatching technique but I'm not sure if it's good for the performance.

  • @jocelynnielsen9154
    @jocelynnielsen9154 Год назад +2

    I liked the charcoal pencil filter best, but it was all very cool! Thank you for another visually and mathematically interesting video!

  • @Pipubbles
    @Pipubbles Год назад +37

    I found your channel with your grass generation video and honestly I am so glad I did. These videos are so interesting. Can the shaders made for the final fantasy game be easily applied to unity scenes and that sort of thing?

    • @Acerola_t
      @Acerola_t  Год назад +12

      Yeah I render all the image examples in Unity in real time technically, I just blit the images to the Unity viewport and then apply the post processing effects through the camera onRenderImage hook lol
      The Unity shaders are also linked in the description, but they aren't intended to be used as a production ready asset.

  • @technosyrup
    @technosyrup Год назад +1

    I really like the crosshatch and watercolor ones. Your videos are amazing!

  • @lunafoxfire
    @lunafoxfire Год назад

    This is awesome! I love how you actually go into the technical details.

  • @Mcbuzzerr
    @Mcbuzzerr Год назад +1

    This is some of the best content on RUclips

  • @fernandaray2054
    @fernandaray2054 8 месяцев назад

    I don't have enough words or actions left to praise you the minimum satisfactory for that high-quality content. Thank you ❤

  • @nabieladrian
    @nabieladrian Год назад

    This popped up in my home feed, and I'm glad it happened.

  • @derickd6150
    @derickd6150 8 месяцев назад

    That moment at 1:35 with the chicken has me dead. I couldn't believe it. I was genuinely shocked it worked so well and the glasses just add that spice

  • @tefkah
    @tefkah Год назад +1

    that intro is really good

  • @henrysteven137
    @henrysteven137 Год назад +1

    wake up babe, new Acerola video

  • @Rinruperson
    @Rinruperson Год назад +4

    despite being Not-Smart about how these worked I had a lot of fun playing around with these before the recent gshade update (rip). putting a dither behind/before them (instead of after them) with the two-point interpolation turned on made for some really interesting results!

    • @Acerola_t
      @Acerola_t  Год назад +4

      omg I never tried a pre dither, that sounds interesting
      and yeah hopefully the gshade shader cloning returns, very upsetting.

    • @Rinruperson
      @Rinruperson Год назад

      @@Acerola_t If you set the amount of colours in the Dither pretty high you can end up with something a bit like a cel-shade oil puddle effect on darker colours
      and, yeah... hard same. every single preset I have ever made, entirely unusable. feels so bad.

  • @gigiopincio5006
    @gigiopincio5006 Год назад

    the blatant disregard for the arrow png transparency background in a video about digital signal processing applied to images conquered my heart

  • @pcvsk8
    @pcvsk8 Год назад

    Currently my favorite channel

  • @fuse625151
    @fuse625151 Год назад +2

    Goddamn the videos just get better and better

  • @richpryor9650
    @richpryor9650 Год назад

    This is like a real-life Rockwell Confabulator video.

  • @DanLivings
    @DanLivings Год назад +1

    This and your video on the Kuwahara filter is really making me wish I had some decent game ideas to try the techniques out on

  • @trevorswope3263
    @trevorswope3263 Год назад

    Phenomenal video, one of my favourites of yours yet!

  • @sno7599
    @sno7599 Год назад +1

    wow. i don't understand shit yet i'm so fucking intrigued. unbelievable how much goes into something i just tick a checkbox for. we really do stand on the shoulders of giants like you.

  • @dexterman6361
    @dexterman6361 Год назад +1

    Holy shit I LOVE the Tatami Galaxy reference :)
    AMAZING video as always :)
    Have I told you how amazing you are? Damn dude you're an inspiration!
    Thanks :)

  • @vulcaireh2528
    @vulcaireh2528 Год назад +1

    the math looks so legitimately legit, you almost made me do math right here.

  • @RenderingUser
    @RenderingUser Год назад +2

    Ey yo
    That monogatari opening tho
    Nice

  • @the-guy-beyond-the-socket
    @the-guy-beyond-the-socket Год назад +1

    why the hell this channel isnt a 100k subs one already

  • @My_Legs_Are_OK
    @My_Legs_Are_OK 8 месяцев назад

    Oh, a dogged fellow, aren't we? Rewinding four times!

  • @xplodingminion2029
    @xplodingminion2029 3 месяца назад +3

    I think this might be the difference of Gaussians

  • @juanjosoliz7297
    @juanjosoliz7297 11 месяцев назад

    Opening ue5 to try implemet this method, i was using normal and depth diference for edge detection but this method is waaay more stylized and cool!! TY

  • @valience1739
    @valience1739 Год назад

    I didn't know this was a visual guide to Difference of Gaussians Ultimate.

  • @matteobelletti8929
    @matteobelletti8929 Год назад

    I can't explain why, but this video feels like a masterpiece to me. Great work man, keep it up!

  • @Zynh0722
    @Zynh0722 Год назад

    No one else on youtube get's me to cargo init faster than you, thank you.

  • @DamianReloaded
    @DamianReloaded Год назад

    Very clear and amusing explanation. I like the format as well. Keep it up!

  • @naramoro
    @naramoro Год назад

    Insane amount of work you did here. Thank you

  • @mamertvonn
    @mamertvonn Год назад

    Aah yes this is the black magic I need to apply for post processing the image taken by the camera in a scene

  • @Gounesh
    @Gounesh Год назад

    I don’t know how I got recommended this video, but I’m glad 👌🏻

  • @aze4308
    @aze4308 2 месяца назад +4

    is this the difference of gaussians?

  • @stickguy9109
    @stickguy9109 Год назад

    That last cross hatching gives the impression of comic book style which I really like.

  • @storianostorianov3955
    @storianostorianov3955 Год назад

    Awesome and hilarious explanations of image processing! Congrats!

  • @chirper
    @chirper Год назад

    The Sonny Boy music was a nice touch

  • @improvisedengineer
    @improvisedengineer Год назад

    This video is my favorite yet

  • @JefffMocha
    @JefffMocha Год назад +1

    cant believe acerola has the alpharad plus shirt

  • @infokubarcade
    @infokubarcade Год назад

    I don't regret my follow.
    Literrally dying under math functions, but you answered so many questions i didn't know that they could have an answer in one go. That's amazing !

  • @smilleur
    @smilleur Год назад

    The modified into was a cute touch

  • @slouch186
    @slouch186 Год назад

    the crosshatching look is really gorgeous imo, especially with color

  • @maddyv5948
    @maddyv5948 Год назад

    Thanks for reminding me, I need to continue watching Tatami Galaxy.

  • @dollardrow6097
    @dollardrow6097 Год назад

    Every episode are rising my love to math. Thank you for quality content.

  • @ItsHaldun
    @ItsHaldun 11 месяцев назад

    I was not expecting that Tatami Galaxy reference!

  • @Owl90
    @Owl90 Год назад

    P3 music + the classic X-Files music. This is amazing!

  • @SuperbusQuartus159
    @SuperbusQuartus159 Год назад +1

    Alright, alright, your little hidden chainsaw man spoiler just got you my subscription 😂 And I like how interesting and informative the video is --- I haven't encountered content about these topics before!

  • @samuelschwager
    @samuelschwager 11 месяцев назад +1

    Gauss would be fascinated