Coding Challenge 11: 3D Terrain Generation with Perlin Noise in Processing

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 มิ.ย. 2024
  • In this coding challenge, I create a 3D procedural terrain using Perlin Noise and the beginShape() function in Processing. Code: thecodingtrain.com/challenges...
    🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
    🎥 Previous video: • Coding Challenge #10.1...
    🎥 Next video: • Coding Challenge #12: ...
    🎥 All videos: • Coding Challenges
    References:
    💾 beginShape() reference: processing.org/reference/begi...
    💾 noise() reference: processing.org/reference/nois...
    Videos:
    🚂 What is Perlin Noise?: thecodingtrain.com/tracks/the...
    🔴 Coding Train Live 37: • Coding Train Live 37: ...
    Related Coding Challenges:
    🚂 #18 3D Fractal Trees: • Coding Challenge #18: ...
    🚂 #24 Perlin Noise Flow Field: • Coding Challenge #24: ...
    🚂 #112 3D Rendering with Rotation and Projection: • Coding Challenge #112:...
    Timestamps:
    00:00 Introduction to the Challenge
    00:46 What do we need to do?
    02:14 Draw a rectangular grid!
    04:13 Create a flat triangle strip mesh!
    06:51 Rotate the surface in 3D!
    08:47 Set the z-values of the vertices randomly!
    11:04 Create a 2D array to store the z values!
    13:31 How do we make the terrain infinite? What is Perlin Noise?
    17:03 How do we make the terrain smooth?
    17:43 Reduce offsets to get smoother z values
    19:17 How do we make it appear as if we are moving over the terrain?
    20:30 Change y-offset per frame to create the illusion of flying!
    22:05 Thanks for watching!
    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: th-cam.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...
    #perlinnoise #terraingeneration #procedural #processing

ความคิดเห็น • 1.1K

  • @GmZorZ
    @GmZorZ 7 ปีที่แล้ว +2677

    thank u for existing

    • @Flowielp
      @Flowielp 7 ปีที่แล้ว +16

      RM Gmzorz Your comment is on point

    • @GmZorZ
      @GmZorZ 7 ปีที่แล้ว +26

      why on earth do i have 108 likes

    • @bethemaine
      @bethemaine 7 ปีที่แล้ว +3

      RM Gmzorz incorrect you have 127 likes hahaha

    • @tobybrown7586
      @tobybrown7586 7 ปีที่แล้ว +2

      SP4RK MAKER incorrect he has 140 likes hahahahahahahahahaahahahahahahahahahahahahaahahahahahahahaahahahahahahahahahahahahahahaahahahahahahaahahaaaaaaaaaaaaaaaaaha...

    • @matheustofolli2788
      @matheustofolli2788 7 ปีที่แล้ว +1

      220 so far

  • @Asatru55
    @Asatru55 7 ปีที่แล้ว +1336

    You might be the Bob Ross of programming

    • @rayolaser4032
      @rayolaser4032 5 ปีที่แล้ว +4

      For sure!

    • @Lightvirus4087
      @Lightvirus4087 5 ปีที่แล้ว +3

      yes it's real

    • @sujals7108
      @sujals7108 5 ปีที่แล้ว +2

      @Jacob Morris It's almost 2 years later

    • @capy9846
      @capy9846 4 ปีที่แล้ว +1

      He is - si eh

    • @Lander12
      @Lander12 4 ปีที่แล้ว

      Yes

  • @TheCheesophile
    @TheCheesophile 7 ปีที่แล้ว +628

    Dudes 100 times better than any of my university comp sci lecturers

    • @shadmansudipto7287
      @shadmansudipto7287 7 ปีที่แล้ว +3

      That's for damn sure 😂

    • @mwill3324
      @mwill3324 7 ปีที่แล้ว +4

      Daniel Seed Seconded

    • @anilmawji
      @anilmawji 6 ปีที่แล้ว +1

      lolol

    • @jaronfeld123
      @jaronfeld123 6 ปีที่แล้ว +10

      Yeah but here he only uses JS and doesn't really talk about Pointers, Memory Registers, Use of OOP Libraries/Methods, etc.. We all remember making our first GUI and having to teach ourselves Layout Managers, but that's what made us great at programming

    • @BlazertronGames
      @BlazertronGames 6 ปีที่แล้ว +12

      Julian A he's not using is, he's using processing. And he has tutorials going over the basics of programming. This isn't meant to be computer science.

  • @idrisShiningTimes
    @idrisShiningTimes 10 หลายเดือนก่อน +10

    Wow it has been.... 4 years? The nostalgia hits back again!! You are an amazing programmer and communicator! Loved your videos

    • @justind4615
      @justind4615 4 หลายเดือนก่อน

      its been 7 years haha

  • @mdk124
    @mdk124 7 ปีที่แล้ว +200

    I really appreciate how you're not just speed coding but also explaining and voicing out your train of thought. I think your videos are really entertaining and impressive and I am glad to have discovered your channel!

  • @VectorNodes
    @VectorNodes 3 ปีที่แล้ว +23

    It's crazy how every fascinating thing about coding that's caught my line of thought is something you have already made a video on. Reliably awesome work

  • @DRAGONMASTER412
    @DRAGONMASTER412 7 ปีที่แล้ว +385

    I learn more things watching these videos then I did doing a games development course at college

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +53

      Thanks for the nice feedback!

    • @richy6784
      @richy6784 7 ปีที่แล้ว +61

      Like seriously, what takes him 1 minute takes my teachers more than an hour to explain

    • @GamesForTheWlN
      @GamesForTheWlN 7 ปีที่แล้ว +6

      Probably just ur college. I study Game Engineering in university and made a ton of progress within a year.

    • @Caxaho
      @Caxaho 7 ปีที่แล้ว

      +Richy Same

    • @KnivingCombat777
      @KnivingCombat777 7 ปีที่แล้ว +7

      Same, my programming course is like: 15 minutes theory, small demo to show how an Array works. Now make Pong. 3h+ of trying things out without having the extended knowledge to do so.

  • @BenHarvey_UK
    @BenHarvey_UK 7 ปีที่แล้ว +8

    Another brilliant, enthusiastic lesson. I added this line:
    stroke(map(y,0,rows,0,255));
    into the first part of the drawShape loop and it looks nice!

  • @liviu201
    @liviu201 7 ปีที่แล้ว +13

    I swear you are the best teacher ever. I am also currently reading your book which is amazingly well explained.

  • @cotontraore8878
    @cotontraore8878 5 ปีที่แล้ว +44

    The presenter seems so happy when the flying effect runs live that it spread on me and I am now 1/ subscribing 2/ planning on the very little free time I have left to enjoy implementing this...
    Current Status:
    ☑ Flying
    ☐ Not flying

  • @zalodias123
    @zalodias123 2 ปีที่แล้ว +2

    This channel is an absolute blessing to the world of creativity as a whole.

  • @ilustrado7291
    @ilustrado7291 7 ปีที่แล้ว +2

    This, my friends, is a great example of being in the flow state. I love being in the flow state.

  • @jan_harald
    @jan_harald 7 ปีที่แล้ว +24

    Best programming tutorials I've found yet...nice to see some not-for-noobs tutorials that explain stuff...

    • @revimfadli4666
      @revimfadli4666 5 ปีที่แล้ว +1

      @@ocdy-gk9pw not-for-noobs doesn't always mean advanced, beyond 'hello world' can still be called not-for-noobs, despite not as advance as using low-level tools or even making a new processor architecture

    • @privateger
      @privateger 4 ปีที่แล้ว

      @@ocdy-gk9pw Assembly? Really? Nobody, literally nobody, needs Assembly nowadays.

    • @ekremdincel1505
      @ekremdincel1505 4 ปีที่แล้ว +1

      @@privateger nope

    • @privateger
      @privateger 4 ปีที่แล้ว

      @@ekremdincel1505 are you agreeing or disagreeing?

    • @ekremdincel1505
      @ekremdincel1505 4 ปีที่แล้ว +1

      @@privateger I dont agree because some peoples need assembly, and I think they will too

  • @nahueljo
    @nahueljo 7 ปีที่แล้ว +224

    Dude, these challenges are awesome. I learned a lot from this one! I had no idea I could do all this :| Thanks!

  • @EddyB_
    @EddyB_ 7 ปีที่แล้ว +2

    I don't understand any of your coding challenge videos (because I don't know coding to any extent), yet I find them so entertaining to watch and see the mental thought process behind what goes on to create coding. Keep up the awesome work!

  • @wlockuz4467
    @wlockuz4467 2 หลายเดือนก่อน

    I recently started reading Nature of Code and your work has helped reignite my love for programming. Thank you so much.
    And that trick with perlin noise, just genius!

  • @rubennaatje
    @rubennaatje 7 ปีที่แล้ว +23

    Not only really informative, but is just a joy to watch. So much enthusiasm! Thanks!

  • @michalbotor
    @michalbotor 6 ปีที่แล้ว +4

    my mind was truly blown with this one.. it looks insane!
    and actually, it seems to me that, with the low increment it can also be used to generate water surface, that is gently moving.

  • @sasadamin
    @sasadamin 2 ปีที่แล้ว

    The way he teaches the concept truly creates an intuitive understanding of the topic.

  • @laalaajonsen
    @laalaajonsen 7 ปีที่แล้ว

    THIS RIGHT HERE, is the reason I might even consider it possible for me to start coding. This is what I need. I love watching your process and seeing how you break down and analyze problems and solve it. Very pedagogical and educational. Thank you for existing. When the time comes, I will gladly pay for this kind of content.

  • @al7aro
    @al7aro 3 ปีที่แล้ว +22

    Have you notice how the quality drops when drawing random Z at 10:20? Tom Scott has a nice video talking about that.
    "Why Snow and Confetti Ruin TH-cam Video Quality"

    • @domizianoscarcelli1936
      @domizianoscarcelli1936 3 ปีที่แล้ว

      I was actually searching for this comment when the quality dropped and thought the same thing, nice

  • @dluxdoggdlux
    @dluxdoggdlux 7 ปีที่แล้ว +90

    Hey bud, frameRate() in setup() works - I think you were writing it in draw() :)

  • @fizipcfx
    @fizipcfx 3 ปีที่แล้ว +1

    My favorite little thing about this channel is, the clicking sound of the button that he uses to change camera to whiteboard. Just love it

    • @TheCodingTrain
      @TheCodingTrain  3 ปีที่แล้ว

      Oh I'm so sad I don't use it anymore!! (Switched to a StreamDeck)

  • @bruno.myrrha
    @bruno.myrrha 7 ปีที่แล้ว +1

    Man, english isn't my first language (actually is portuguese), and you're the best teacher I've ever had. Thanks, really thanks for all your work.

  • @martiddy
    @martiddy 7 ปีที่แล้ว +64

    This would take me at least a whole day programming this code and you did it in just 22 minutes, without explaining the code you could probably do it in 12 minutes... damn

    • @Typex96
      @Typex96 7 ปีที่แล้ว +5

      Yeah he is good at what he's doing, but don't think he is doing it for the first time, each video is prepared before he records it, that's why his videos are great;

    • @Nowbie
      @Nowbie 7 ปีที่แล้ว

      Vapor Wave - sama I In 1 Minute ... Copy and Paste

    • @Dhakshith1189
      @Dhakshith1189 6 ปีที่แล้ว +4

      +Typex96 But This Is A Coding *Challenge,* So He Should Not Prepare Before Doing !

    • @ckihooligan
      @ckihooligan 5 ปีที่แล้ว +1

      I like how he breaks the 'challenge' down to it's smallest compartments and builds and extends on them step by step.

  • @astronot1997
    @astronot1997 7 ปีที่แล้ว +8

    You are a good teacher and i enjoy these challenges a lot. Thanks

  • @rabbitcreative
    @rabbitcreative 7 ปีที่แล้ว

    Dude that was freaking AWESOME. I loved the way you iterated on your code; I love your pacing; and the result is RIPE for experimentation. THANK YOU.

  • @JordanMSeverns
    @JordanMSeverns ปีที่แล้ว

    this might be my favorite channel rn i literally dont know javascript this guys just funny lmao

  • @ryanhuddleston6849
    @ryanhuddleston6849 7 ปีที่แล้ว +24

    i don't know how you got on my youtube recommended...but i thank you for doing this

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +6

      I'm not sure either, but glad you watched, thank you!

    • @ryanhuddleston6849
      @ryanhuddleston6849 7 ปีที่แล้ว

      #HappyRabbitHole you explain it so well thank you.

    • @kanapeczka1233
      @kanapeczka1233 7 ปีที่แล้ว

      Yeah I have same. Great work Dan!

  • @Proftheskidkid
    @Proftheskidkid 7 ปีที่แล้ว +6

    you're such an energetic guy, love it!

  • @Nucl34rManiac
    @Nucl34rManiac 4 ปีที่แล้ว +1

    You’re incredible! It’s 4 in the morning and I can’t stop watching these

  • @Merceauroix
    @Merceauroix 4 ปีที่แล้ว

    I followed this one step at a time and I'm absolutely new at this stuff. I must say that I kinda understood at times but I also felt lost AF, but the final result was awesome and it gave me a great starting point to mess with this code. THANK YOU.

  • @juschu85
    @juschu85 7 ปีที่แล้ว +22

    7:03 It looks like that thing was green.

  • @shimlaDnB
    @shimlaDnB 7 ปีที่แล้ว +4

    coool love this effect. i made a couple of these in max before but i like knowing i can do this in 22 min in processing aswell

  • @GreenSantaMusic
    @GreenSantaMusic 7 ปีที่แล้ว

    I learned more from this guy, then from my teachers in past 4-5 years, thanks for exsisting! !

  • @dhavalbhatt5279
    @dhavalbhatt5279 5 ปีที่แล้ว +1

    I’m from Chemical engineering background with 3 years of experience. For me coding was always a non existent entity.
    Coming to Silicon Valley, realized the importance of coding in everyday life. Started following this guy holistically. This dude made it fun. Thank you for such wonderful videos. You have earned a loyal fan.

  • @Xeronimo74
    @Xeronimo74 8 ปีที่แล้ว +5

    great tutorial! and it's really nice to see you use stuff like P3D and 2D arrays :)

  • @zut25
    @zut25 7 ปีที่แล้ว +3

    dude, your mind works at staggering speeds, hence the tripping and clumsiness lol. Fascinating!

  • @elultimopujilense
    @elultimopujilense 3 ปีที่แล้ว +1

    This channel is just pure gold. I feel awful for not finding out about this earlier.

  • @mycotina6438
    @mycotina6438 3 ปีที่แล้ว +1

    Wow! The use of perlin noise to simulate movement is very creative. Amazing!

  • @egor.okhterov
    @egor.okhterov 7 ปีที่แล้ว +6

    Wow! Never knew such channel existed. Subscribed!!!

    • @basiccoder2166
      @basiccoder2166 5 ปีที่แล้ว

      th-cam.com/video/tjJM0iEeyNQ/w-d-xo.html

  • @conteleducu
    @conteleducu 8 ปีที่แล้ว +3

    Thank you for the tutorial Daniel!!! You are epic!

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +1

      +Andrei-Ducu Predescu Thank you!

  • @endredimarci
    @endredimarci 2 ปีที่แล้ว

    I was so happy to see that you solved this camera movement problem exactly how I thought I would do it. I'm learning so much!

  • @javierbg1995
    @javierbg1995 7 ปีที่แล้ว +1

    I just discovered the channel. You are now officially the Bob Ross of generative art. Very nice!
    Edit: Well, I have seen your intro video now, so I guess you already knew about your Bob Ross situation. I can't stop watching these coding challenges, really cool stuff!

  • @tameemalsuwaidi4358
    @tameemalsuwaidi4358 7 ปีที่แล้ว +176

    Still better than No man's sky

    • @salvadorarreolarodriguez6165
      @salvadorarreolarodriguez6165 7 ปีที่แล้ว +1

      Tamim Al-suwaidi top comment XD

    • @Ps7cho_
      @Ps7cho_ 5 ปีที่แล้ว +4

      Tamim Al-suwaidi not anymore lol

    • @herre3147
      @herre3147 4 ปีที่แล้ว

      @gonna darude sandstorm ya all It's a game

    • @ekremdincel1505
      @ekremdincel1505 4 ปีที่แล้ว

      @gonna darude sandstorm ya all you dont know what it is

    • @electromorphous9567
      @electromorphous9567 4 ปีที่แล้ว +3

      Stfu no man's sky is a terribly underrated game way too ahead of it's time. go home and play Fortnite.

  • @RexArtTv
    @RexArtTv 7 ปีที่แล้ว +3

    you are awesome!

  • @LoganDark4357
    @LoganDark4357 7 ปีที่แล้ว +13

    Your videos are so entertaining I watch them even when I know over 5 programming languages.

    • @Teth47
      @Teth47 7 ปีที่แล้ว +1

      Define know. Are we talking you can code an OS in any of them, or something more like hello world? Points in between are valid.

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +5

      Oh, I'm so glad to hear!

    • @themightymidget61
      @themightymidget61 7 ปีที่แล้ว +7

      you could have just left it at "your videos are so entertaining" lol

    • @LoganDark4357
      @LoganDark4357 7 ปีที่แล้ว

      Know as in can code fluently. Some examples are Python bots, C# Windows apps, JS scripts, Lua scripts, and PHP scripts.

    • @MrRumblefrog
      @MrRumblefrog 7 ปีที่แล้ว

      Second part is unnecessary

  • @juansebastianosorio6757
    @juansebastianosorio6757 6 ปีที่แล้ว +1

    You are an Inspiration to keep learning! , Greetings From Colombia.

  • @mechlo
    @mechlo 7 ปีที่แล้ว +32

    This looks amazing. I am a synthwave performer/amateur coder and I would love to use this as live visuals for my show. The one thing this is missing is being able to adjust the parameters in real time. Would there be a way for me to control noise amount, color, height, etc with something like a midi controller? Thanks!

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +22

      Yes, look into midi libraries for Processing!

    • @mechlo
      @mechlo 7 ปีที่แล้ว +4

      Wonderful. Will do that! Thank you!

    • @mechlo
      @mechlo 6 ปีที่แล้ว +21

      I had to come back to this project but I found the MidiBus library and am now able to control all of the values with my synths! I am going to experiment with your other video lessons. Thanks for all the help!

  • @vivs005
    @vivs005 7 ปีที่แล้ว +8

    You're awesome.

  • @bluntosophy
    @bluntosophy 7 ปีที่แล้ว +1

    I dont understand anything of coding.. im not a coder but i really enjoy to watch these videos at all, this guy is the coolest guy ever xD It feels like im now a high end coder xD

  • @asserzayed1902
    @asserzayed1902 2 ปีที่แล้ว

    It's always nice watching something by someone who enjoys it.. whole different level of education and understanding.. THANK YOU !

  • @shridharmamidalaa2509
    @shridharmamidalaa2509 8 ปีที่แล้ว +3

    Thank you so much for inspiring and guiding through, i would like to see videos on meshes like Voronoi,Delaunay,Quadtrees and Octrees . :)

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +5

      +sridhar mamidala Adding to my list!

    • @kamoroso94
      @kamoroso94 8 ปีที่แล้ว +1

      Yes, learning about quadtrees would be fabulous!

  • @rock3tcatU233
    @rock3tcatU233 7 ปีที่แล้ว +261

    First of all: great content and great channel overall!
    Secondly: what drugs are you on and how can I get them?

  • @dezukan
    @dezukan 7 ปีที่แล้ว

    you make java so much easier to learn, thank you, you're like a virtual teacher

  • @joshparsons5795
    @joshparsons5795 6 ปีที่แล้ว +2

    Subbed because of this video, simply for the idea of moving the y value to simulate flying instead of actually generating more terrain and moving the camera
    well done!

  • @sokgans
    @sokgans 7 ปีที่แล้ว +10

    This must be the tutorial they have used at Hello Games for No Man's sky...

  • @dehbardiniable
    @dehbardiniable 7 ปีที่แล้ว +16

    if you put the xoff and yoff = 0.05 and flying -= 0.01 will be like water.

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +4

      +André Bardini oh! Great tip! 👍

  • @noonecares7397
    @noonecares7397 7 ปีที่แล้ว

    i found your channel through purple rain and must say i absolutely LOVE your videos! keep up the hard work

  • @brittonlemere5486
    @brittonlemere5486 6 ปีที่แล้ว +1

    I love your energy in these videos. you make programming seem the way I think about it, fun :)

  • @eivindludviksen6478
    @eivindludviksen6478 7 ปีที่แล้ว +70

    I can't believe you're 43! Only giveaway despite the fact that you look like you're 25, is that you act like a 40 year old and have gray hair. (Had to google due to my suspicions) :P

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +47

      +Eivind Ludviksen haha. I thought I act like a 5 year old.

    • @eivindludviksen6478
      @eivindludviksen6478 7 ปีที่แล้ว +4

      Daniel Shiffman I'll say you do act childishly (which I think is a good thing), but you have one of those slight qualities that remind me of my dad, which really thew me off and made me check.
      Your videos are really entertaining and I love how you teach coding! I studied IT at high school and am now planning to study computer/information technology in university and your videos are a huge inspiration. When I started coding I had to pretty much teach most of it myself as my teacher wasn't the best, but I really like coding due to the linguistics of it. My favorite subjects have usually been foreign languages and more recently math and physics, so I can see myself in IT very comfortably. Keep up the great work! :)

    • @MaintainMundane
      @MaintainMundane 7 ปีที่แล้ว +1

      Welcome to Minecraft people!

    • @troooooper100
      @troooooper100 7 ปีที่แล้ว

      Eivind Ludviksen what's one of those qualities...

    • @eivindludviksen6478
      @eivindludviksen6478 7 ปีที่แล้ว +1

      answerOfstupids I honestly don't know. I was pretty much 80% sure he was less than 30 years old until I checked. Maybe it's just a sum of all the puns and dad jokes over time that made me suspend my disbelief. There is also the fact that he grows a magnificent beard, which isn't super common with guys around 25 yeas old.

  • @jorgehn7
    @jorgehn7 7 ปีที่แล้ว +6

    Why has this channel been kept hidden from me? AWESOME!!!!

    • @basiccoder2166
      @basiccoder2166 5 ปีที่แล้ว

      th-cam.com/video/tjJM0iEeyNQ/w-d-xo.html

  • @polkulotznad3987
    @polkulotznad3987 5 ปีที่แล้ว +2

    your tutorial is too neat that even beginners can understand this!!!

  • @rayerdinc2441
    @rayerdinc2441 5 ปีที่แล้ว

    So east to understand and follo WOW! After reading and watching other procesing videos, you show and explain, the how & why. Usually one vets the how big not why it does or why one does it. Brilliant. Thank you so much. Got to look for you book someone mentioned.

  • @Mobin92
    @Mobin92 7 ปีที่แล้ว +44

    9:50 Welcome to quantum mechanics ._.

    • @edwardclarke1608
      @edwardclarke1608 7 ปีที่แล้ว +3

      Mobin92 can you elaborate?

    • @DlcEnergy
      @DlcEnergy 7 ปีที่แล้ว +2

      he knows not

    • @Shadowmere29
      @Shadowmere29 7 ปีที่แล้ว +1

      lol

    • @Maadhawk
      @Maadhawk 7 ปีที่แล้ว +4

      What he probably means, is that the example program being run looks similar to how physicists imagine the quantum foam of the universe looks like.

    • @georgesamaras2922
      @georgesamaras2922 5 ปีที่แล้ว +1

      Vacuum fluctuations, particles popping in and out of existence.

  • @IRWBRW964
    @IRWBRW964 8 ปีที่แล้ว +27

    frameRate has to be inside setup() not draw() to work. ;)

    • @boemioofworld
      @boemioofworld 8 ปีที่แล้ว +3

      You are great, you videos are getting better everyday, Shiffman :)

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +6

      +Westis96 Ah yes, thanks for the tip!

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +5

      +William Antônio Siqueira Thanks for the nice feedback!

  • @timmorphine
    @timmorphine 7 ปีที่แล้ว

    Watching you never gets old, cool stuff!

  • @bryandacosta751
    @bryandacosta751 7 ปีที่แล้ว

    You've got a lot of skills to be able to memorize all of these functions and just what numbers need to go where. Nice job and keep working.

  • @_Joran_
    @_Joran_ 7 ปีที่แล้ว +4

    I'm using an arduino with an ultrasone sensor. The arduino is comunicating with my laptop by serial communication. That's how i'm getting the ego's back from the sensor. I'm trying to create a 3D image with these ego's. My question is: Is this possible using this principle?
    I can get x,y,z coördinates but cant map them, can you help me?

    • @DownTownDowns
      @DownTownDowns 5 ปีที่แล้ว

      Have you tried taking them out of the freezer?

  • @snacksy7754
    @snacksy7754 7 ปีที่แล้ว +5

    have you done a live show?

  • @cabbler
    @cabbler 7 ปีที่แล้ว

    thats a sign of a good coder you envision an end result and let the means meet the ends even if its not what the viewer thinks is happening

  • @AceEU-
    @AceEU- 7 ปีที่แล้ว

    Only recently came across this channel, and now watching everything xD. Have not learned Java yet but i feel like your videos make it so simple its going to be a breeze.

  • @t3hKazy
    @t3hKazy 7 ปีที่แล้ว +3

    Hey! Just found you. Fun videos :) Would you ever do a Haskell Challenge? :D

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +3

      +t3hKazy I don't have any experience with Haskell but I will think about it!

    • @t3hKazy
      @t3hKazy 7 ปีที่แล้ว

      Oh please do! I've recently started reading an excellent book about, and studying Haskell. Coming from Java and such, it's a really different experience!

  • @viksra
    @viksra 7 ปีที่แล้ว +4

    similar to mr. doob's three.js webgl clouds

  • @LucaPrn
    @LucaPrn 7 ปีที่แล้ว

    Daniel you are the best teacher ever, really.

  • @bamkparto
    @bamkparto 7 ปีที่แล้ว

    Hello Daniel, I never thought I would be wtching coding videos as entertainment. You made me understand ! keep up !!!

  • @kevinblanks7851
    @kevinblanks7851 7 ปีที่แล้ว +41

    still better than no mans sky

    • @davishall
      @davishall 7 ปีที่แล้ว +4

      Kevin Blanks Not an impressive feat

    • @ThePhoenix107
      @ThePhoenix107 7 ปีที่แล้ว +1

      +Kevin Blanks
      So let's say No Man's Sky would cost like 10-20$ (which is much less than No Man's Sky is worth IMO) you would rather buy this script for the same amount of money?
      I'm impressed.

    • @kevinblanks7851
      @kevinblanks7851 7 ปีที่แล้ว +4

      YA actually lol

    • @ThePhoenix107
      @ThePhoenix107 7 ปีที่แล้ว +1

      Kevin Blanks So you would rather buy a script for 20$ which was made in less than 20 min than a game made for many months doing the same world generation, just much more complex and with much more features. I guess that's logical.

    • @davishall
      @davishall 7 ปีที่แล้ว +5

      ThePhoenix107 Yes we heard you

  • @Mobin92
    @Mobin92 7 ปีที่แล้ว +58

    Please don't use variable names like "scl". "scale" or even "terrainScale" are better. Letters don't cost anything, modern screens are wide enough and your code also gets documented.

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +45

      I agree, it's a good point.

    • @patrickmw3962
      @patrickmw3962 7 ปีที่แล้ว +10

      Mobin92 in JavaScript there are built in Global Variables with names like 'scale' so he uses shorter language to avoid errors

  • @niclaskron3384
    @niclaskron3384 7 ปีที่แล้ว

    your videos are so wholesome, keep up doing this forever

  • @michaelsalais7393
    @michaelsalais7393 2 ปีที่แล้ว

    Absolutely amazing. Thank you so much for a direct and understandable tutorial. Keep it going!

  • @CreativeVery
    @CreativeVery 7 ปีที่แล้ว +9

    At 18:27 you could have divided X and Y by 10 instead of creating 2 more variable.

    • @PravinDahal
      @PravinDahal 7 ปีที่แล้ว +4

      Doctor Cereal Was thinking the same thing but it later made sense when he added flying. He isn't doing a new project on the fly. He is just recreating something he has done before which is why sometimes the choices he makes aren't obvious until later.

    • @iansimpson9452
      @iansimpson9452 7 ปีที่แล้ว

      Pravin Dahal
      how come when I go to run it theirs just a white box that pops up with an error?

    • @elevenz367
      @elevenz367 7 ปีที่แล้ว

      i think you should start on something easier Ian

    • @iansimpson9452
      @iansimpson9452 7 ปีที่แล้ว

      Nat Bradz no, it was just a spelling error, the code was right.

  • @timowthie
    @timowthie 7 ปีที่แล้ว +11

    why didnt u add a spaceship?

  • @snakesnoop2360
    @snakesnoop2360 5 ปีที่แล้ว +1

    You are how I learned and started to code! thank you for all you have done! I'm 13 and programming robots for my middle school all because of you, thank you!

  • @goldenhahagamer
    @goldenhahagamer 7 ปีที่แล้ว

    i JUST found ur channel. i can now say i love how u talk, how hyper u r and just ur explanation :P keep it up

  • @GreatMCGamer
    @GreatMCGamer 7 ปีที่แล้ว +4

    Now I know how minecraft works

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +21

      Oooh, I'd love to do more videos about procedural terrain generation like in minecraft!

    • @Beni_Benigno
      @Beni_Benigno 7 ปีที่แล้ว

      GreatMCGamer yes he is

    • @GreatMCGamer
      @GreatMCGamer 7 ปีที่แล้ว

      dandeil1003 You are replying to the wrong person dandeil

    • @Beni_Benigno
      @Beni_Benigno 7 ปีที่แล้ว

      sorry :P

  • @crash1998100
    @crash1998100 7 ปีที่แล้ว +3

    You lost me at Java

  • @francisgagnon341
    @francisgagnon341 4 ปีที่แล้ว

    Thanks for existing! :) Very cool videos!!

  • @SwordOfTheSamurai
    @SwordOfTheSamurai 6 ปีที่แล้ว

    You are the best teacher on all of youtube!

  • @JohnnyDub08
    @JohnnyDub08 7 ปีที่แล้ว +1

    Thanks for sharing your knowledge Daniel. Great work! Pure inspiration.

  • @Norritt42
    @Norritt42 7 ปีที่แล้ว +1

    This is so impressive speed. I like high speed learning and this is it.

  • @andreadiotallevi5780
    @andreadiotallevi5780 2 ปีที่แล้ว

    This was so much fun - you are a legend!

  • @AlexCio
    @AlexCio 3 ปีที่แล้ว +1

    this was awesome!
    thanks for diving into vertex so fast! :)

  • @FactFactory9702
    @FactFactory9702 4 ปีที่แล้ว +1

    Because of you I started doing program on my pc 😍😍 And I am learning new things plz don't stop my best wishes for your channel

  • @echiinoma
    @echiinoma 7 ปีที่แล้ว

    im not in coding, but im love watching your videos, you have a good vibe and a great way of explaining. Thanks from switzerland ^^

  • @electron7373
    @electron7373 2 ปีที่แล้ว

    This is creative coding gold! Thanks Dan!

  • @Red-di7zb
    @Red-di7zb 5 ปีที่แล้ว +2

    This is really helpfull vid.This helped me to understand what is the Perlin noise better.Thanks.

  • @poodamanhaha
    @poodamanhaha 7 ปีที่แล้ว +1

    Pretty Glad I found this channel. Energy is awesome.

  • @josephjohnson4761
    @josephjohnson4761 หลายเดือนก่อน

    I love all the math that is involved with this!

  • @n.me.a
    @n.me.a 5 ปีที่แล้ว

    I am from Ukraine, don't know English good enough, but I love your challenges. Interesting and useful ! Thanks

  • @FunkyFrogProject
    @FunkyFrogProject 7 ปีที่แล้ว

    the trick of the illusion of translating by tweaking the generated value is brillant !!!