O'Reilly logo

Procedural Content Generation for Unity Game Development by Ryan Watkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multi mesh planet

Now that we are able to generate a sphere and understand some of the pitfalls of 3D rendering, we are ready to generate our planet. Normally, the approach for generating a planet would be to generate a sphere and then generate a random texture called a height map. This is well covered and documented in free online resources. This would require quite a bit of work and extra plugins so it will be left to you to research on your own. We will take another approach that can be scripted easily.

We will generate multiple spheres and perform some manipulations on their geometry to give them each a unique character. We are also going to use a different type of sphere for this task. This sphere will be generated from a polygon called an ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required