I made an EVEN BETTER Minecraft

Поделиться
HTML-код
  • Опубликовано: 28 фев 2021
  • I tried to make Minecraft even better than I did before.
    🛒 Recommended books (on Amazon): www.amazon.com/hz/wishlist/ls...
    ❤️ Support me on Patreon: / simondevyt
    🌍 My Gamedev Courses: simondev.teachable.com/
    Disclaimer: Commission is earned from qualifying purchases on Amazon links.
    Follow me on:
    Twitter: / iced_coffee_dev
    Instagram: / beer_and_code
    Github: github.com/simondevyoutube/
    Here I tried to code Minecraft using JavaScript and Three.js, completely from scratch, to try to fix the problems from the previous implementation.
    The goal was to try to improve on the previous version, was was mostly a start project to learn JavaScript and three.js.
    In the previous implementation, I used instancing to get around draw call limits and complexity around merging geometry, but this time I just bit the bullet and did the actual work. I move from there by integrating chunking in the world, followed by multithreading using Chrome's module workers extension, which dramatically improved performance. I investigated various ways to texture, wrote custom shaders to atlas all the textures together in a simple way using texture arrays. From there I moved on to using perlin noise for a full, infinite procedural world. Standard perlin noise works great for basic rolling hills, but you need to do operations on it like looping for fractal brownian motion in order to get that detail and different environments.
    That gives us a procedural world, from there we covered how to procedurally create foliage using signed distance functions and l-systems, which was covered in a previous tutorial. Finally, we went ahead and used layers of perlin noise to create biomes and different areas in the world, as you see in the video.
    Source will is available on github, or will be when I clean it up. If it's not there by the time this is posted, look for an announcement from me either on my community posts or twitter for when the source is available.
    Various resources:
    Music: www.bensound.com
    Inigo Quilez's site is THE reference for stuff like SDF's:
    www.iquilezles.org/www/articl...
    Demo was a horribly modified version of:
    www.shadertoy.com/view/lt3BW2
    Model from:
    sketchfab.com/3d-models/minec...
    AO:
    0fps.net/2013/07/03/ambient-o...

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

  • @simondev758
    @simondev758  3 года назад +65

    Patrons can now vote for the next video! Thank you for your support.

  • @noiamhippyman
    @noiamhippyman 3 года назад +1

    I love programmers. Knows how to program an entire Minecraft clone, doesn’t know the name for a pick axe. Lol

  • @CGgreen
    @CGgreen 3 года назад +4

    why do people that recreate minecraft not use texturepack textures? just find one you like and use that. not everyone is good at textures.

  • @adorable_yangire
    @adorable_yangire 3 года назад +2

    now make it open source

  • @isaipack
    @isaipack 3 года назад +170

    Man, not even the Mojang guys fixed this shadow bug when deleting blocks.

  • @monde7563
    @monde7563 3 года назад +310

    My good sir, you have no idea how much an impact you are having on some people's careers, Including mine.

  • @yvngxslug3694
    @yvngxslug3694 2 года назад +2

    U are in yt playlist youtube official playlit

  • @glitchywazhere.mp4795
    @glitchywazhere.mp4795 3 года назад +1

    Remember kids when Minecraft cost too much money Just make it

  • @bambi6322.
    @bambi6322. 2 года назад +1

    Coding looks like an alien language to me

  • @mariuszkozakowski7835
    @mariuszkozakowski7835 2 года назад +1

    turn on the subtitles XDDDDD

  • @haph2087
    @haph2087 Год назад +18

    About the 4096 height limit thing. 320 is the default height limit, but the game lets you actually change it in the worlds' config, up to 4064 (according to the wiki, that's the limit. It might be a typo and actually be 4096, idk).

  • @nathanwfranke
    @nathanwfranke 3 года назад +733

    "I'm going to make cubes for the clouds" - ok

  • @kosnk
    @kosnk 3 года назад +484

    Simon, this is amazing! The soft ambient shadows, the trees, the smiling moon landscape, everything! Thanks for sharing this!

  • @ege.the.engineer
    @ege.the.engineer 3 года назад +140

    8:33

  • @Alhoshka
    @Alhoshka 3 года назад +126

    4:48

  • @dolalmoth
    @dolalmoth 3 года назад +108

    Wasn't expecting the SDFs and L-System trees. Very awesome!

  • @lafemmedevastation
    @lafemmedevastation 3 года назад +128

    You're like the Bob Ross of game programming: "...and now we have a little tree thingy." Making it look easy while your voice soothes souls.

  • @tomg0
    @tomg0 3 года назад +46

    Awesome! I started making a minecraft clone in JS a few weeks ago using vanilla webgl 2. Definitely not an easy task. My main challenge was storing the chunks in a way that they can be accessed as quickly as possible and also be saved as in a file that can be loaded again.

  • @reeven1721
    @reeven1721 2 года назад +22

    Simon, you're basically coding ASMR and that's fantastic.

  • @EdSchroedinger
    @EdSchroedinger 3 года назад +40

    "This Old Tony", but it's game development, coding, javascript...