Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Procedural Content Generation for Unity Game Development

You're reading from   Procedural Content Generation for Unity Game Development Harness the power of procedural content generation to design unique games with Unity

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785287473
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ryan Watkins Ryan Watkins
Author Profile Icon Ryan Watkins
Ryan Watkins
Arrow right icon
View More author details
Toc

Terrain


Texture and terrain can have similar procedural generation beginnings. With either, we can use a fractal or noise patterns as a basis. We can create a height map that can be wrapped around objects. An alternative for our planet in Chapter 9, Generating a 3D Planet, would have been to use a Perlin noise distortion height map.

A height map is a texture that has 3D qualities. You would then apply the height map texture to the 3D model to give the model a 3D texture. As you can see in the following figure, this is an easy way to create a terrain.

Noise image used to create height map

Besides the actual texture of the ground, tons of work has gone into making tree and foliage generators. Terrain is one of the better defined constructs in PCG. This is a good starting point for anyone learning 3D PCG.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime