I made an EVEN BETTER Minecraft

3 Просмотры
I tried to make Minecraft even better than I did before.

Support me on:

Follow me on:

Here I tried to code Minecraft using JavaScript and , 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

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:


Inigo Quilez's site is THE reference for stuff like SDF's:

Demo was a horribly modified version of:

Model from:

Комментариев нет.