Learn how to procedurally generate meshes in Unity 5.6 or above. You'll start with simple shapes and work your way up to complex, fractal landscapes. This is a code-along style course where you'll learn how program meshes at each stage.
Learn, Understand and Master Procedural Generation with this Intermediate Unity Course.
Learn how to procedurally generate meshes in Unity 5.6 or above. You'll start with simple shapes and work your way up to complex, fractal landscapes. This is a code-along style course where you'll learn how program meshes at each stage.
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.
Learn how to program large and infinite landscapes for you game.
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.
An introduction to meshes and how they are coded in Unity - get a basic understanding of how things work!
Begin to code!
Coding the triangular mesh.
Understand backface culling. Add flexible normals to the triangle model.
Create an abstract base class to make mesh creation easier and your code tidier.
Coding the quad mesh with shared vertices.
Coding the quad mesh with unique vertices.
Coding a general mesh for all regular polygons.
Coding a tetrahedron with shared vertices.
Adding a script to display a mesh's normals.
Coding a tetrahedron with unique vertices.
Coding a 3D quad - create any 3D shape with 8 vertices.
Coding any regular prism or frustum.
Adding vertex colours.
Learn how to make a simple shader that will show the vertex colours.
A challenge to test your skills.
Add simple UVs to the quads we coded in Section 3 so that we can use textured materials.
Add UVs to the regular polygons we coded in Section 3 so that we can use textured materials.
Add UVs to the prisms and frustums we coded in the previous section so that we can use textured materials.
Manually code normals for the regular polygons.
Code tangents for the regular polygons to display materials with normal maps correctly.
Manually code normals for the prisms and frustums.
Code tangents for the prisms and frustums.
Learn the theory behind calculating normals and tangents for any shape.
Coding normals for any shape.
Coding tangents for any shape.
A quick introduction to using Perlin noise in Unity.
Coding fractal and fBm noise in Unity.
Learn how to code a simple, flat, 2D terrain.
Learn how to code make a mesh look like 2D terrain using noise.
Add simple UVs to the terrain and add a texture.
Learn how to code more complex UVs so that a material's texture follows the direction of the landscape.
Code a mesh for a 3D landscape.
Add UVs and vertex colours to the 3D landscape.
Learn how to code fractal island meshes.
Learn how to code fractal island meshes with a low poly look.
Learn how to create the mesh in chunks for an infinite terrain.
Learn how to calculate the normals correctly for adjacent chunks of terrain.
Learn how to calculate the tangents correctly for adjacent chunks of terrain.
A bonus lecture containing £9.99/$9.99 codes for my other courses.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.