O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

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

Mesh, material, and transform

The mesh defines the geometrical shape of the entity. It contains information about vertices, edges, and faces required to render the object. The base type of all mesh components is GeometryRenderer. However, you'll usually use one of its descendants:

  • Mesh imports geometry data from a file
  • ConeMesh, CuboidMesh, CylinderMesh, PlaneMesh, SphereMesh, and TorusMesh provide access to primitive geometric shapes
  • ExtrudedTextMesh defines the entity's shape based on a specified text and font

While the mesh defines where the object's surface will be drawn, the material defines how exactly it will be drawn. The most obvious property of a surface is its color, but depending on the reflection model, there can be all sorts ...

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