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
Learning Windows 8 Game Development

You're reading from   Learning Windows 8 Game Development Windows 8 brings touchscreens to the tablet and PC. This book will show you how to develop games for both by following clear, hands-on examples. Takes your C++ skills into exciting areas of 3D development.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781849697446
Length 244 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Michael Quandt Michael Quandt
Author Profile Icon Michael Quandt
Michael Quandt
Arrow right icon
View More author details
Toc

Vertices and triangles

All 3D models consist of a collection of points in space called vertices. These vertices (singular: vertex) define the shape of the model when combined. Each vertex is a coordinate in space, represented in vector form. They can, however, also contain further information, such as the following:

  • Color
  • Normal
  • Texture coordinates
  • Anything else you need to draw the model

These vertices are used by the GPU to draw the model; however, the GPU by itself has no way of understanding how they relate to each other, and how to draw the correct model. This is resolved by arranging vertices into the most basic shape possible: a triangle. If you consider that one vertex alone as a point, which along with a second forms a line, then a third vertex creates a triangle, which is the simplest polygon you can create. The GPU can then draw these triangles by taking the vertices, three at a time, and using those values to generate an area to draw.

A model created in a 3D editing program can have...

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