Video není dostupné.
OmlouvĂĄme se.

Coding Challenge #28: Metaballs

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 5. 08. 2024
  • Let's code some Metaballs (aka Isosurfaces) in Processing and how to control them using the Blob Detection methodology from my computer vision tutorial! Code: thecodingtrain.com/challenges...
    đŸ•č p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
    đŸŽ„ Previous video: ‱ Coding Challenge #27: ...
    đŸŽ„ Next video: ‱ Coding Challenge #29: ...
    đŸŽ„ All videos: ‱ Coding Challenges
    References:
    📰 Exploring Meta-balls and Isosurfaces in 2D: www.gamedev.net/articles/prog...
    Videos:
    🔮 Livestream Archive: ‱ Live Stream #50: Loadi...
    Related Coding Challenges:
    🚂 #C4 - Coding in the Cabana Worley Noise: ‱ Coding Worley Noise
    🚂 #C5 - Coding in the Cabana Marching Squares: ‱ Coding Marching Squares
    Timestamps:
    00:00 Introduction
    00:46 What is an Isosurface?
    01:33 Code! Working with Pixels
    02:35 Make a simple Isosurface
    02:58 How to make Metaballs?
    04:36 Code! Create a Blob class
    07:43 Make the Blob move around
    09:03 Create an Array of Blobs
    10:37 Color pixels using all the Blobs
    12:19 Add more Blobs
    13:07 Make the Blobs Rainbow colored
    14:14 Example of Blob Tracking
    15:12 Combine Blob Tracking with Metaballs
    19:32 Making some adjustments
    21:07 Other ways to Move these Metaballs
    21:51 Fixing a Bug
    Editing by Mathieu Blanchette
    Animations by Jason Heglund
    Music from Epidemic Sound
    🚂 Website: thecodingtrain.com/
    đŸ‘Ÿ Share Your Creation! thecodingtrain.com/guides/pas...
    đŸš© Suggest Topics: github.com/CodingTrain/Sugges...
    💡 GitHub: github.com/CodingTrain
    💬 Discord: / discord
    💖 Membership: czcams.com/users/thecodingtrainjoin
    🛒 Store: standard.tv/codingtrain
    đŸ–‹ïž Twitter: / thecodingtrain
    📾 Instagram: / the.coding.train
    đŸŽ„ Coding Challenges: ‱ Coding Challenges
    đŸŽ„ Intro to Programming: ‱ Start learning here!
    🔗 p5.js: p5js.org
    🔗 p5.js Web Editor: editor.p5js.org/
    🔗 Processing: processing.org
    📄 Code of Conduct: github.com/CodingTrain/Code-o...
    This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
    #computervision #blobdetection #loadpixels #pixelanalysis #objecttracking #metaballs #isosurfaces #processing

Komentáƙe • 221

  • @kuskus_th13
    @kuskus_th13 Pƙed 7 lety +212

    "Those are some really beautiful meatballs" ~ Daniel Shiffman, 2016

  • @nctrn07
    @nctrn07 Pƙed 6 lety +57

    i clicked on this because i thought it was meatballs, very disappointed

  • @Smomid
    @Smomid Pƙed 4 lety +14

    this guy blows my mind with his genius

  • @gloverelaxis
    @gloverelaxis Pƙed 5 lety +7

    Thank you so much for your years of hard work, boundless enthusiasm, and clarity of thought and language. These videos are an absolute treasure; they are so much fun to watch and they're such an inspiration to get excited about math and coding.

  • @johnvonhorn2942
    @johnvonhorn2942 Pƙed 5 lety +4

    Message from Mr Rogers, "you're the nicest guy in the neighborhood". Thanks so much for these great tutorials.

  • @joesharp3580
    @joesharp3580 Pƙed 6 lety

    I love these coding challenges. Great work Daniel

  • @angledcoathanger
    @angledcoathanger Pƙed 7 lety +5

    These videos are so incredible! It's great having visual feedback for so many of the challenges. Would you ever consider doing something audio or synthesis based? Maybe even using Pure Data?

  • @romywilliamson4981
    @romywilliamson4981 Pƙed 7 lety

    This is so cool. I'm new to Processing and this was a really fun program to play around with.

  • @dannorris1406
    @dannorris1406 Pƙed 6 lety

    Another great tutorial Daniel. I love the coding side of the videos but I also feel that this is a fantastic way to teach some of the tougher concepts in mathematics. I know the maths in this was fairly straightforward but in other videos, you've covered some quite complex topics. In this visual, high energy format though, it's so easy to follow.
    Always lots of fun and great noises by the way...notably at 3:30 which is now my computer's error sound ;)

  • @azyfloof
    @azyfloof Pƙed 7 lety +3

    Oh man, I love all the Coding Train videos I've watched lately, but this one speaks to me :D
    I remember coding metaball "screensavers" many years ago in QBASIC, and I remember the incredibly old and slow laptop I first tried in on. It had a 16 grey level LCD screen, and rendered a frame every few minutes or so :P Several months later and I had a faster colour laptop that could run it properly. Still slow, but fast enough to appreciate it.
    This video brings it all back!

  • @Shockszzbyyous
    @Shockszzbyyous Pƙed 7 lety +47

    I gave my metaballs gravity, and now it's kinda like a lavalamp, except there is no convection from up to down.

    • @pete5668
      @pete5668 Pƙed 7 lety +8

      I think you should make them more like meatballs, with melted cheese stretching between the balls as they move around the screen.

    • @Bloom_HD
      @Bloom_HD Pƙed 7 lety +3

      Shockszzbyyous maybe do something like
      for(var a = 0 ; a = 20 ; a++) {
      metaball.y = height*(cos(Pi/a)/1.2);
      if (a == 19) {
      a = 0;
      }
      }
      Something like that might make the metaball float up and down repeatedly.

    • @Bunny99s
      @Bunny99s Pƙed 5 lety +2

      Well you can add actual convection. If a metaball is close to the bottom, increase it's energy / heat over time. The higher the temperature, the more upwards force you apply. If the metaball is closer to the top you let it loose energy / heat. So "cold" objects drop slowly to the bottom, hot objects will rise to the top. Blobs might have a slight repulsive force when they are really close to get a bit more side way motion

    • @gdor11
      @gdor11 Pƙed 3 lety

      meat planets

    • @thatsmaik
      @thatsmaik Pƙed 3 lety

      @@Bunny99s Thats a great excercise, thanks! :D

  • @bencebalaton
    @bencebalaton Pƙed 5 lety +47

    The real question is: are PVectors stored in the MetaBalls?
    Great tutorial as always!!

    • @error.418
      @error.418 Pƙed rokem +1

      I get the reference, but in this case MetaBalls are stored in the PVectors đŸ«Ą

  • @tehsimo
    @tehsimo Pƙed 7 lety +2

    Infectious enthusiasm! pumped to go write a heat map visualisation from this

  • @haruiz
    @haruiz Pƙed 5 lety +1

    You are amazing !!! :D, I love these videos , this how teachers should teach to program

  • @earthbjornnahkaimurrao9542
    @earthbjornnahkaimurrao9542 Pƙed 6 lety +7

    17:20 - you have a funny way of finding the average.

    • @akashchoudhary8162
      @akashchoudhary8162 Pƙed 3 lety +2

      Actually doing it that way ensures that you don't overflow the data type. If you do it like (a + b)/2 then there's a possibility that (a+b) might overflow the data type. But doing it the way he does it will never overflow, as he is adding half of the difference.

  • @BabaykaMoscow
    @BabaykaMoscow Pƙed 7 lety

    One of the best CZcams channels!

  • @janknoblich4129
    @janknoblich4129 Pƙed 7 lety +70

    Mettballs actually means meatball in german :D
    0:02

  • @zdddddd
    @zdddddd Pƙed 7 lety +14

    I watched only 1 video of this guy and when I saw this video I already knew he will say meatball as soon as video starts. and thats it he said :D

  • @lazerbeam9737
    @lazerbeam9737 Pƙed 8 lety

    Loving your videos! Glad i came across your channel.

  • @soufianesalhi8802
    @soufianesalhi8802 Pƙed 8 lety +1

    dude you make code such a fun, i wish if my programmation professor was like you ! thanks for the good videos and keep coding !

  • @borekworek69
    @borekworek69 Pƙed 6 lety +23

    What's your favourite color?
    Me: 13:58

  • @its_ya_guy_the_big_bak_guai
    @its_ya_guy_the_big_bak_guai Pƙed 7 lety +11

    Daniel!! When are you going to show us the 3D Metaballs??

  • @jekaterinajaroslavceva3722

    Best chanel ever

  • @albertolemosduran5685
    @albertolemosduran5685 Pƙed 2 lety

    Amazing video Daniel! You could also normalize the sum of the balls contribution by dividing by the total number of them, instead correcting the constant manually

  • @softwave1662
    @softwave1662 Pƙed 8 lety +2

    I so love these videos.

  • @sarweshshah
    @sarweshshah Pƙed 3 lety +2

    Hi +Daniel , thanks for the tutorial! :)
    I was wondering if the distance between the blob and the pixel iterator is 0 at some point and it leads to a division by 0 error.
    It does not happen here or in my code but is this something we need to take care of in the code?

  • @alijayameilio
    @alijayameilio Pƙed 7 lety +4

    better to times the color with 255, because radius / distance will give perfect 1 on the radius of the circle

  • @RetsaGames
    @RetsaGames Pƙed 3 lety

    These simple algorithms are so powerful it's insane. Can't wait to make some games with these noises

  • @hamzabiyuzan6969
    @hamzabiyuzan6969 Pƙed 7 lety

    this is amaaaazing I really like ur videos thanks a lot

  • @corrense
    @corrense Pƙed 8 lety

    Super and greats video that is helping me a lot in understanding the concepts.
    Cheers,

  • @MartinMllerSkarbiniksPedersen

    thanks for this video. I like your energi

  • @lethn2929
    @lethn2929 Pƙed 5 lety

    I know this is a long shot since this is a very old tutorial but is it possible to apply this effect to a 3D sphere primitive or an empty gameobject and have the metaballs follow these gameobjects?

  • @graydhd8688
    @graydhd8688 Pƙed rokem

    That's a spicy meta ball!

  • @nagesh007
    @nagesh007 Pƙed 2 lety

    Awesome

  • @pianochess1882
    @pianochess1882 Pƙed 5 lety

    In The sum variable you should divide by blobs.length. That way you don‘t need to adjust the scaling factor when you change the number of blobs

  • @jakeniemiec8559
    @jakeniemiec8559 Pƙed 7 lety

    random2D does not work for my version of processing. any suggestions on ways I can make it move

  • @xnick_uy
    @xnick_uy Pƙed 7 lety +2

    Pretty funny video.
    One thing I would like to try sometime is to merge the metaballs with the original frames from the camera instead of just replacing the pixels. Probably the pixel[index] should be set to some average value in HSV space.

    • @xnick_uy
      @xnick_uy Pƙed 7 lety

      The one question I still have is how p5 handles all those divisions by zero that you pick up (whenever the distance is zero, that is).

  • @eyalmeltser4296
    @eyalmeltser4296 Pƙed 8 lety

    Really Cool!

  • @zechn1819
    @zechn1819 Pƙed 7 lety

    Thanks for your video. When I tried to run this on Android Device, it became too slow(1 frame / 2 sec). but it runs very well on PC or laptop.. Do you know why?

  • @Tentin.Quarantino
    @Tentin.Quarantino Pƙed 5 lety

    *that* is one *spicy* metaball!

  • @zinsy23
    @zinsy23 Pƙed 5 lety

    This video reminds me of the development of television. Started black and white and eventually got color!

  • @mrzerr2296
    @mrzerr2296 Pƙed 7 lety +5

    Is that normal that the same code in p5.js is really less performing (I suppose yes) ? How is it possible to make the p5 version as performing as the processing version ?

    • @2001herne
      @2001herne Pƙed 4 lety +1

      It's completely normal. It simply isn't possible. The p5.js is written in javascript, which is run as interpreted code in the browser. The processing code is abstracted java code, and as such is compiled into java bytecode. To put it simply, the processing code is run closer to bare metal, with less overhead, so it's overall more performant. If Processing.org released a c++ version of their library it would most likely be even more performant. Another factor is that in the processing version you can change to the P2D or P3D renderer, which offloads some stuff onto the GPU. I'm not sure if you can do that with the p5js version.

  • @ferb1131
    @ferb1131 Pƙed 2 lety

    "This video is about coding metaballs! But first let me explain how pixels work in case anybody starting watching a coding challenge video without understanding what pixels are."

  • @kranser
    @kranser Pƙed 7 lety

    background(51); just gives me a grey screen and nothing shows until I comment that line out - what am I doing wrong?

  • @gdor11
    @gdor11 Pƙed 3 lety

    i tried to multiply the color with the dot product of the velocity of the blob and the difference beetwen (x, y) and the blob's position and the results were REALY COOL

    • @gdor11
      @gdor11 Pƙed 3 lety

      omg making variants of this i made my own abstract art o_o

  • @petalaak
    @petalaak Pƙed 7 lety +3

    Nice video, very helpful. I made metaballs visualization in JavaScript and while it does look nice, it runs very slow if you increase drawing area and number of blobs. I think that it slows down because it has to loop through every pixel and perform calculations per every pixel. Do you have any tips on how to optimize this so that it runs smooth on full screen with relatively high number of metaballs?

  • @FlextremeMusic
    @FlextremeMusic Pƙed 7 lety +1

    Awesome videos and I love your enthusiasm! I was wondering how the sum works for the melting effect and why you don't divide by zero when the distance becomes zero when the pixel is at the origin of the blob. Hope to hear from you or anyone in the comments.

    • @jakoblenke3012
      @jakoblenke3012 Pƙed 7 lety

      +Flextreme Production
      beep
      Did you heared something???

  • @luissolis7973
    @luissolis7973 Pƙed 6 lety

    Did you finally release a p5 version of this?

  • @Tirwrai
    @Tirwrai Pƙed 7 lety

    Hello Where can I download a video to your program source code, talking about great

  • @jrdnshw
    @jrdnshw Pƙed 8 lety +1

    I love all of these tutorials and videos, I am learning so much - they are the best!!! I am trying to understand and wrap my head around how the sum of the blob radius / distance creates the gooey blob effect between each metaball. I took a look but didn't find anything specific on it, but was wondering if there is anywhere you can direct me that can explain the math behind it in further detail? Thanks!

    • @oonmm
      @oonmm Pƙed 8 lety

      Look at around 11:10, he talks about it just before he adds more then one ball to the scene. Sorry that i can't give you a more specific time, i'm in a hurry.

    • @jamesmichaelmcdermot
      @jamesmichaelmcdermot Pƙed 2 lety

      It's a combination of: 1 / distance has a "curved" effect, and our eyes tend to perceive borders between colours even though in reality they're in a spectrum.

  • @catapillie
    @catapillie Pƙed 5 lety

    What if you divided the sum of the distances by the length of the blob list ?
    It might look interestingt, doesn't it? I wanna try it by myself 👀
    Thanks for the amazing vid 👏

  • @chevere3424
    @chevere3424 Pƙed rokem

    Why i can't use b as the index of the blob? why is index[0]? i want to draw them with the mouse...

  • @blackfamily2341
    @blackfamily2341 Pƙed 6 lety

    That's a spicy metabaaallll

  • @ShotgunLlama
    @ShotgunLlama Pƙed 6 lety +1

    Metaballs metaballs, spaghetti underneath. Ravioli ravioli, great barrier reef!

    • @SpringySpring04
      @SpringySpring04 Pƙed 2 lety

      The otherworldly Italian creatures you ordered have been summoned

  • @manuellehmann267
    @manuellehmann267 Pƙed 6 lety +1

    Beware... Bad english incoming... :-D
    _Finally_ I understood, how this works. In the end it's not that complicated, than I thought. I'm working right now on a C++ version of it, using SFML. And... Yay, it works!
    Could you imagine, to do a 3D Version of it as a coding challenge? I'm pretty sure, it shouldn't be hard to port it to some kind of voxels. But how triangulate the meshes? :-/. Maybe there's a complete different way....
    What I was going to say...
    I appreciate the way, how you share your knowledge with us and how you explain really everything in your slightly clumsy style (in a good way) .Had to laugh several times and learned so much from your videos. So... Thank you!

  • @RexTorres
    @RexTorres Pƙed 5 lety +1

    Metaballs? Meatballs? Mothballs? Methballs?

  • @xanderlewis
    @xanderlewis Pƙed 8 lety +1

    You're my favourite. :)

  • @blackbird1234100
    @blackbird1234100 Pƙed 7 lety

    now you have to code real meatballs. on another note, is there a place like the IRC or discord where you can help me? I have some questions about a program in p5js

  • @Vedvart1
    @Vedvart1 Pƙed 7 lety +2

    In p5js, this is VERY laggy, possibly because one must loop over each pixel rather than a pixel group... anybody have any solutions or help?

    • @wallacesantos0
      @wallacesantos0 Pƙed 6 lety

      I don't know if is possible to solve this problem because of the nature of JavaScript. I hope I'm not talking any sh**, but is a higher lvl language than Java, and so, Java is faster.

    • @socketbyte5348
      @socketbyte5348 Pƙed 5 lety +1

      It would be like 4852745284x faster if it was done as a shader (executed by GPU)

  • @stefanpopa6668
    @stefanpopa6668 Pƙed 7 lety +1

    Hi all! Does anyone know how I could load this animation created in Processing as an animated Desktop background?

    • @xclordon_4696
      @xclordon_4696 Pƙed 7 lety

      Andrei Popa no

    • @cjvman
      @cjvman Pƙed 7 lety

      Andrei Popa, Windows used to allow HTML files to be background pictures, so you could remake it in JavaScript maybe?

  • @darkfrei2
    @darkfrei2 Pƙed 3 lety

    3:16 - wow! It's my avatar!

  • @marker52
    @marker52 Pƙed 6 lety +13

    Swear I saw a fidget spinner in the thumbnail...

  • @thesdfable
    @thesdfable Pƙed 3 lety

    hello! how do I change the color of the distance. I mean how do I make the blobs darker?

    • @thesdfable
      @thesdfable Pƙed 3 lety

      Actually how do I pick specific colors but not anything RGB

  • @curt8806
    @curt8806 Pƙed 6 lety

    How come when I download this it's super slow?

  • @thusharafernando4402
    @thusharafernando4402 Pƙed 7 lety +1

    i read the title as MEATBALLS, i thought he was going to simulate meatballs.lol

    • @kuskus_th13
      @kuskus_th13 Pƙed 7 lety

      Thushara Fernando Well he might do it if he gets to computer gastronomy if that exists... Kappa

  • @sandortakacs546
    @sandortakacs546 Pƙed 8 lety

    In HTML pure javascript canvas I get colors in the middle of my blobs, like you did when you made sum % 255. How can I remove those colors from the blobs?

    • @TheCodingTrain
      @TheCodingTrain  Pƙed 8 lety +1

      +SĂĄndor TakĂĄcs cap the sum value at 255 using an if statement or constrain() if you are using p5.

    • @sandortakacs546
      @sandortakacs546 Pƙed 8 lety

      Thanks, it worked. I don't use p5.js, but I wrote my constrain function.

  • @abdlwahdsa
    @abdlwahdsa Pƙed 8 lety

    Hey Daniel, love your channel.
    I wonder if there's a way to do this without having to deal with pixels.
    I'm doing this with HTML5 canvas and it's terribly slow (even after getting rid of sqrt's)

    • @kamoroso94
      @kamoroso94 Pƙed 8 lety +2

      Yeah animating the canvas in JavaScript while changing the pixel data is always really slow. I'd be interested in seeing if there is a speedier solution though.

    • @TheCodingTrain
      @TheCodingTrain  Pƙed 8 lety +2

      i would like to eventually cover how to do this with shaders and/or geometry/vector shapes.

    • @khckwok
      @khckwok Pƙed 6 lety

      hopefully that would be coming anytime soon!

    • @proloycodes
      @proloycodes Pƙed 2 lety

      i think youd want to use imageData instead of ctx.drawRectangle

  • @fernandojerez3444
    @fernandojerez3444 Pƙed 7 lety

    Wow great job with those challenges. But just one question: Why always 51 for backgrounds!!!! i need a reason, curiosity it's killing me : )

    • @AnvitGarg25
      @AnvitGarg25 Pƙed 7 lety

      someone recommended it to him in the first or second vid of the coding challenge

  • @paulwright8695
    @paulwright8695 Pƙed 4 lety +2

    I love these videos, but I'm finding it increasingly frustrating how you can Never draw the bottom line of a rectangle without sloping upwards!!!!!

  • @kim15742
    @kim15742 Pƙed 6 lety +1

    GLSL videos would be awesome!

  • @camsy83
    @camsy83 Pƙed 2 lety

    If you had called the metaballs 'thisdots', that would truly have been meta

  • @renjithkumar6951
    @renjithkumar6951 Pƙed 7 lety +5

    Sir,
    Can you please make a tutorial on 2d water surface simulation based on Hugo Elias algorithm in a layman language. Thanks for your quality lessons.

  • @scanerang
    @scanerang Pƙed 7 lety

    I tried to do this...
    had 1 fps on my gaming pc, but I drew each point one at a time tho

  • @orangutan9492
    @orangutan9492 Pƙed 2 lety +2

    'I want to make a blob object'
    I think you mean blobject

  • @DaddyDevit
    @DaddyDevit Pƙed 6 lety

    That's a one a spicy metaball

  • @luka65
    @luka65 Pƙed 7 lety +1

    How about combining this with a Particle Flowfield ?

  • @Stufe2
    @Stufe2 Pƙed 2 lety

    Very cool tutorial! We made a drinking game. Everytime you grab your nose, we have to dring. now iam drunck

  • @SmokestormX
    @SmokestormX Pƙed 7 lety +3

    Totally thought you were coding Meatballs.

  • @whomstareyou8013
    @whomstareyou8013 Pƙed 7 lety

    After Binge Watching your Channel I am suddenly filled with DETERMINATION to learn JavaScript

    • @xclordon_4696
      @xclordon_4696 Pƙed 7 lety

      Arthur Jakubiec Java* not javascript

    • @whomstareyou8013
      @whomstareyou8013 Pƙed 7 lety

      java and javascript work in similar ways, for me I find javascript easyer ro learn before going to full on Java

    • @SpringySpring04
      @SpringySpring04 Pƙed 2 lety

      Sand under the tail

  • @3ab8aR
    @3ab8aR Pƙed 8 lety

    could you please make some polygon collision detection videos like the one in unity3d and how you make the polygon around the image (detect image edges) :D
    thanks in advance even if you won't do them :V

    • @TheCodingTrain
      @TheCodingTrain  Pƙed 8 lety

      interesting idea! suggest here: github.com/CodingRainbow/Rainbow-Topics/issues

  • @LorenzoLeonardini
    @LorenzoLeonardini Pƙed 8 lety +2

    where can I suggest a coding challenge?

  • @Xnoob545
    @Xnoob545 Pƙed 5 lety

    I laughed so hard at 11:00

  • @RSPikachuAlpha
    @RSPikachuAlpha Pƙed 8 lety

    I luv meatballs

  • @innokentiyromanchenko1450

    amazing speaking rainbow

  • @sevfx
    @sevfx Pƙed 8 lety +1

    Why is it, that you are not dividing by zero when displaying a pixel, which happens to be in the center of a blob?

    • @sadhlife
      @sadhlife Pƙed 7 lety

      He is, it just returns 'Infinity' as the value, which is just the same as 255 as that is the maximum limit of color.

  • @mephistosprincipium
    @mephistosprincipium Pƙed 6 lety

    Today Mr. Spaghetti shows us how he codes his meatballs.
    ups, sorry wrong channel

  • @darkquaesar2460
    @darkquaesar2460 Pƙed 5 lety

    Thats pretty meta.

  • @NinjaTownM
    @NinjaTownM Pƙed 8 lety

    Is this ES6 or Java?

    • @TheCodingTrain
      @TheCodingTrain  Pƙed 8 lety

      It's Java (using processing.org), but I plan to publish a JS port of this code.

  • @robertobreve8623
    @robertobreve8623 Pƙed 5 lety

    I think I love you

  • @mileswaugh
    @mileswaugh Pƙed 7 lety

    you should make it so the meatballs bounce off each other

  • @mickyr171
    @mickyr171 Pƙed 6 lety

    This made me just convert from python mode to java mode lol, python modes for loops are super super slow and while its a little trickier to relearn java after using python mode for so long its totally worth the effort for the speed of the for loops in java mode :D

    • @mickyr171
      @mickyr171 Pƙed 6 lety

      relearning java class objects will be tricky lol, python is so much easier to understand but once again, it will be worth it simply because of the speed of java

    • @SpringySpring04
      @SpringySpring04 Pƙed 2 lety

      _why would you use python mode!!_

    • @mickyr171
      @mickyr171 Pƙed 2 lety

      @@SpringySpring04 because i was using python for years and it was easier

    • @SpringySpring04
      @SpringySpring04 Pƙed 2 lety

      @@mickyr171 I don't understand python even though it's so similar to Ruby which I understand a lot, and I also don't like python's syntax tbh

    • @mickyr171
      @mickyr171 Pƙed 2 lety

      @@SpringySpring04 it was great but for loops are slow in it lol, processing is fantastic but also use c# in unity because it's even faster, recently created a vector flow field that can render 100K particles in processing at 60 fps using a different method to display, best I could do with using point() was about 12k at 60fps

  • @cristimacovei8417
    @cristimacovei8417 Pƙed 4 lety

    minx + (maxx - minx) * .5 ?
    why didn't you use (minx + maxx) * .5

  • @rockyrivermushrooms529
    @rockyrivermushrooms529 Pƙed 7 lety +6

    Ravioli Ravioli, quickly code the metaballioli

  • @Awss-qy9dk
    @Awss-qy9dk Pƙed 5 lety

    One day, I MET A BALL

  • @rotten-Z
    @rotten-Z Pƙed 4 lety

    Center of rectangle is ((maxx+minx)/2,(maxy+miny)/2)

    • @he2he
      @he2he Pƙed 3 lety

      (maxx + minx)/2 = minx + (maxx - minx) / 2

    • @rotten-Z
      @rotten-Z Pƙed 3 lety

      @@he2he (max+min)/2 - two operations, your variant - 3

    • @he2he
      @he2he Pƙed 3 lety

      @@rotten-Z I just wanted to point out that the video wasn't wrong.

    • @rotten-Z
      @rotten-Z Pƙed 3 lety

      @@he2he I didn’t say he was wrong. I just hinted that his formulas are not entirely optimal

  • @user-mw1qb5kd9l
    @user-mw1qb5kd9l Pƙed 3 lety

    Afraid of saying meatballs, but methballs is fine for him...

  • @JordanShackelford
    @JordanShackelford Pƙed 7 lety

    spaghetti and metaballs

  • @atrumluminarium
    @atrumluminarium Pƙed 6 lety +1

    Blob object? You mean Blobject? :P

  • @SerdarPolat21
    @SerdarPolat21 Pƙed 6 lety

    Processing? I want to use in Javascript. How can I do?

  • @datejer
    @datejer Pƙed 6 lety

    Metal Balls