O'Reilly logo

Unity iOS Essentials by Robert Wiebe

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

Realistic and fast foliage

Unity3D for iOS does not support the terrain engine. This means that in addition to creating our own terrain using a mesh, we need to create our own foliage. Since the reason that the terrain engine is not supported is performance, we need to be careful about the kind of foliage that we create for our game.

A typical tree

When we model a tree with a desktop computer in mind, we will typically create something like the tree shown in the following image:

A typical tree

While this tree may be acceptable on a desktop computer, it won't take too many of them, with almost 500 vertices, to dramatically reduce the frame rate that can be achieved ...

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