Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Udemy

How to Program Voxel Worlds Like Minecraft with C# in Unity

via Udemy

Overview

A comprehensive guide to blocky mesh building for procedurally-generated worlds updated for Unity 2020+.

What you'll learn:
  • Build a cube-based geometric world like that generated in Minecraft.
  • Navigate and manipulate discrete values in 3d space.
  • Build and skin meshes from scratch using C#.
  • Save and Retrieve Serialised Data.
  • Build and manage a voxel data structure.

All New Content Added for Unity 2020+

Did you know that there is not one single cube usedin Minecraft?Have you ever looked at Minecraft and wondered, "How did they build it?" - a great thing to ponder, it is. If you haven't and think that programming a whole bunch of cubes is child's play, then think again. On the surfaceMinecraft looks as though it would be a simple world to recreate in Unity. Start placing cubes around a scene and see how far you get before the frame-rate grinds to a mind-numbinghalt. So wonder and fret no longer, as this course reveals the secrets of programming and rendering procedurally-generated voxel worlds, like Minecraft,with C# in Unity.

In this course, Penny teaches all the invaluable skills you will require to build a blocky world from scratch using her internationally acclaimed teaching style andknowledge from over 30 years working with games and graphics. But hold on tight as you'll be taken on a journey across the computer graphics realm as it is taught to post-graduate university students. Through detailed descriptions and hands-on workshops examining all you need to know about 3d data structures, building meshes from scratch, using noise algorithms to generate terrain features and caves, andtexturing blocks you will be programming your own world in no time.

Learn how to program and work with:

  • voxels

  • custom builtpolygons and meshes

  • vertices and normals

  • UV mapping

  • texture atlases

  • parallel processing and the Unity Job System

  • Unity's MeshAPI for parallel mesh creation

  • Perlin noise

  • infinite terrain generation

  • loading and saving data

Contents and Overview

After getting a little experience in why it's such a bad idea to build a Minecraft type world using cubes, you'll start following along with Penny, exercise after exercise, toward the end of building your very own and unique blocky terrain.

You'll begin by dissectinga cube and examining its fundamental parts from vertices, to normals, to texture mapping. Armed with this knowledge, you will then begin writing code that redefines the cube and makes it far more efficient to draw as a terrain component. You'll then bring these pseudo-cubes together to form chunks, to optimise rendering performance.Once you've worked on creating a solid world of chunks you will then learn about smooth noise and a little fractal geometry will be introduced to assist you in carving out realistic landscape features including caves.

With terra-firma to stand on, you'll nextadd a player character and start exploring the new world. To prevent you falling off, you will also start working on the logic to build the world around you in real-time, out to infinite boundaries.

When you are done with exploring, it will be time to start digging and building. It's in this part that you will learn how to add and remove blocks at the click of a button to further mould the terrain to your liking.

Finally, you'll cover the dynamics of adding flowing water, falling sand and start working on the logic for creating your very own biomes.

What students are saying about this course:

  • Hi! I wanted to thank you and compliment you for the Minecraft Unity course. I've been a (web) programmer for 20 years. After so long creating somewhat boring work I'm excited to make games. My interest is in creating procedurally generated, complex worlds. Learning about Minecraft, therefore, seemed like a good idea.

  • Love the amount of detail Penny goes into! Not too little, not too much, she manages to hit the sweet spot that gets you a deep understanding of what's going on, coupled with the ability to jump in with confidence and start doing things yourself. VERY pleased with my course purchase, and look forward to more by her!

  • Clear, concise, introduction and extension of concepts required to efficiently generate Minecraft style worlds, including Perlin noise and fractal Brownian motion.

Taught by

Penny de Byl and Penny @Holistic3D.com

Reviews

4.9 rating at Udemy based on 1727 ratings

Start your review of How to Program Voxel Worlds Like Minecraft with C# in Unity

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.