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 ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.