Coding in Unity: Procedural Mesh Generation
4.4 (20 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
373 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Coding in Unity: Procedural Mesh Generation to your Wishlist.

Add to Wishlist

Coding in Unity: Procedural Mesh Generation

Learn to procedurally create meshes, from 2D/3D shapes to fractal landscapes.
4.4 (20 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
373 students enrolled
Created by Jenny Hide
Last updated 6/2017
English
Current price: $10 Original price: $80 Discount: 88% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 3 hours on-demand video
  • 16 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Generate complex meshes from code.
  • Program two and three dimensional shapes.
  • Program 2D terrain and 3D fractal landscapes.
  • Use your knowledge of meshes to calculate UVs, add vertex colours, and calculate normals and tangents.
View Curriculum
Requirements
  • You should have and know how to use Unity 5 or above (the free version is fine).
  • You should be able to to program in C#.
Description

Learn how to procedurally generate meshes in Unity 5.6 and above. We start with simple shapes and work our way up to complex, fractal landscapes.

Learn, Understand and Master Procedural Generation with this Intermediate Unity Course.

  • Learn about the different properties of a mesh.
  • Create two and three dimensional shapes.
  • Calculate UVs, normals, tangents and vertex colours.
  • Understand how to use Perlin and fractal noise to generate 2D terrain and 3D landscapes.

A powerful tool for making games.

In this course, you will learn to procedurally generate meshes from geometric objects to worlds with randomly generated terrain. Many popular games use some form of procedural generation, from Minecraft to Dwarf Fortress. Mesh generation is just one aspect of procedural generation which encompasses topics such as texture generation, object placement, and even story generation.

By the end of this course, you’ll be able to generate unique and impressive landscapes from code ready to use in your games. Source code is included to help you on your way.

I designed this course to be easily understood by intermediate level coders and users of Unity with no previous experience of mesh generation.

I present examples of increasing difficulty designed to help you to understand exactly how mesh generation is done, and guide you through the theory behind it so that you can be confident in creating your own meshes.

For extra support, you can ask questions in the Q&A section, and I’ve provided the completed code examples for download in each Section. You’ll receive a certificate of completion once you finish the course.

Who is the target audience?
  • Intermediate level Unity developers who want to learn procedural mesh generation.
  • This course is not for people new to Unity or C#.
Compare to Other Unity Courses
Curriculum For This Course
38 Lectures
02:55:53
+
Introduction
1 Lecture 04:43

An introduction to meshes and how they are coded in Unity.

Preview 04:43
+
All the Triangles
3 Lectures 10:25

Begin to code!

Preview 04:20

Coding the triangular mesh.

Preview 04:16

Understand backface culling. Add flexible normals to the triangle model.

Backface Culling and Normals
01:49
+
More 2D Shapes
4 Lectures 20:53

Create an abstract base class to make mesh creation easier and our code tidier.

Refactoring
10:04

Coding the quad mesh with shared vertices.

All the Quads
03:13

Coding the quad mesh with unique vertices.

All the Unique Quads
03:01

Coding a general mesh for all regular polygons.

All the Regular Polygons
04:35
+
All The Tetrahedrons
3 Lectures 08:28

Coding a tetrahedron with shared vertices.

Shared Vertices
03:13

Adding a script to display a mesh's normals.

Preview 02:53

Coding a tetrahedron with unique vertices.

Unique Vertices
02:22
+
More 3D Shapes
4 Lectures 14:58

Coding a 3D quad - create any 3D shape with 8 vertices.

All the Cubes
04:21

Coding any regular prism or frustum.

All the Prisms
06:18

Adding vertex colours.

Vertex Colours
02:01

Learn how to make a simple shader that will show the vertex colours.

Making a Vertex Shader
02:18
+
UVs
3 Lectures 12:38

Add simple UVs to the quads we coded in Section 3 so that we can use textured materials.

Quad UVs
05:59

Add UVs to the regular polygons we coded in Section 3 so that we can use textured materials.

Polygon UVs
03:30

Add UVs to the prisms and frustums we coded in the previous section so that we can use textured materials.

Prism UVs
03:09
+
Normals and Tangents
7 Lectures 31:47

Manually code normals for the regular polygons.

Polygon Normals
02:03

Code tangents for the regular polygons to display materials with normal maps correctly.

Polygon Tangents
05:41

Manually code normals for the prisms and frustums.

Prism Normals
04:03

Code tangents for the prisms and frustums.

Prism Tangents
02:19

Learn the theory behind calculating normals and tangents for any shape.

General Normals and Tangents Theory
02:00

Coding normals for any shape.

General Normals
04:07

Coding tangents for any shape.

General Tangents
11:34
+
Noise
2 Lectures 08:32

A quick introduction to using Perlin noise in Unity.

Introduction and Perlin Noise
02:51

Coding fractal and fBm noise in Unity.

Fractal Noise
05:41
+
2D Procedural Terrain Generation
4 Lectures 16:02

Learn how to code a simple, flat, 2D terrain.

Simple and Flat 2D Terrain
04:47

Learn how to code make a mesh look like 2D terrain using noise.

Adding Noise
03:44

Add simple UVs to the terrain and add a texture.

Simple UVs
02:03

Learn how to code more complex UVs so that a material's texture follows the direction of the landscape.

Complex UVs
05:28
+
Procedural Landscape Generation
4 Lectures 26:08

Code a mesh for a 3D landscape.

3D Landscape
05:38

Add UVs and vertex colours to the 3D landscape.

UVs and Vertex Colours
03:14

Learn how to code fractal island meshes.

Fractal Islands
06:56

Learn how to code fractal island meshes with a low poly look.

Low Poly Fractal Islands
10:20
1 More Section
About the Instructor
Jenny Hide
4.4 Average rating
20 Reviews
373 Students
1 Course
Indie/Freelance Game Developer

I'm Jenny, a freelance and indie game developer with over 4 years of professional programming experience. I have a Masters degree in Physics with Astrophysics and a PhD in Quantum Information. 

I've released a number of games and enjoy teaching and sharing the knowledge I've gained. Currently, I'm working with General Interactive Co. to code and design a winemaking tycoon game called Terroir.

My Udemy courses are aimed at those who already have an understanding of how to program in Unity, and who are ready to learn more advanced techniques.