Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
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
 Watkins Watkins
Author Profile Icon Watkins
Watkins
Arrow right icon
View More author details
Toc

Adding a third dimension


Unity makes 2D game development very easy. Don't forget that underneath Unity's user interface, there are a lot of calculations being done for us. In many other graphics rendering engines, we would have to write the code that creates the 2D square that we can then draw our sprite on. With Unity, we simply add a component or two. In the following figure, we can see a 2D sprite from a 3D perspective. A sprite is after all just a quad that is rendered facing the camera.

The 2D quad a sprite is drawn onto

Unity also makes 3D game development much easier. Instead of using quads for sprite rendering, in 3D, we will work from 3D models. A 3D model is a collection of vertices, or points, in 3D space. We then connect those dots and make faces or triangles. This comprises the wireframe structure and surface of our model.

For most games, a 3D model is created by a 3D modeling program or software and then imported into Unity. We will then assign appropriate components to the imported...

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 $15.99/month. Cancel anytime
Visually different images