Book description
A comprehensive guide to learning fundamental 3D mathematical principles used in games and computer graphics by example
Key Features
- Get acquainted with the essential mathematics needed to describe, simulate, and render 3D creations
- Construct and manipulate 3D animated environments using Python, Pygame, and PyOpenGL
- Develop vertex and fragment shaders in OpenGL shader language to speed up rendering
Book Description
Mathematics is an essential skill when it comes to graphics and game development, particularly if you want to understand the generation of real-time computer graphics and the manipulation of objects and environments in a detailed way. Python, together with Pygame and PyOpenGL, provides you with the opportunity to explore these features under the hood, revealing how computers generate and manipulate 3D environments.
Mathematics for Game Programming and Computer Graphics is an exhaustive guide to getting “back to the basics” of mathematics, using a series of problem-based, practical exercises to explore ideas around drawing graphic lines and shapes, applying vectors and vertices, constructing and rendering meshes, and working with vertex shaders. By leveraging Python, Pygame, and PyOpenGL, you’ll be able to create your own mathematics-based engine and API that will be used throughout to build applications.
By the end of this graphics focussed book, you’ll have gained a thorough understanding of how essential mathematics is for creating, rendering, and manipulating 3D virtual environments and know the secrets behind today’s top graphics and game engines.
What you will learn
- Get up and running with Python, Pycharm, Pygame, and PyOpenGL
- Experiment with different graphics API drawing commands
- Review basic trigonometry and how it’s important in 3D environments
- Apply vectors and matrices to move, orient, and scale 3D objects
- Render 3D objects with textures, colors, shading, and lighting
- Work with vertex shaders for faster GPU-based rendering
Who this book is for
This book is for programmers who want to enhance their 3D mathematics skills relating to computer graphics and computer games. Knowledge of high school–level mathematics and a working understanding in an object-orientated language is needed to grasp the contents present in this book.
Table of contents
- Mathematics for Game Programming and Computer Graphics
- Contributors
- About the author
- About the reviewers
- Preface
- Part 1 – Essential Tools
- Chapter 1: Hello Graphics Window: You’re On Your Way
- Chapter 2: Let’s Start Drawing
- Chapter 3: Line Plotting Pixel by Pixel
- Chapter 4: Graphics and Game Engine Components
- Chapter 5: Let’s Light It Up!
- Chapter 6: Updating and Drawing the Graphics Environment
- Chapter 7: Interactions with the Keyboard and Mouse for Dynamic Graphics Programs
- Part 2 – Essential Trigonometry
- Chapter 8: Reviewing Our Knowledge of Triangles
- Chapter 9: Practicing Vector Essentials
- Chapter 10: Getting Acquainted with Lines, Rays, and Normals
- Chapter 11: Manipulating the Light and Texture of Triangles
- Part 3 – Essential Transformations
- Chapter 12: Mastering Affine Transformations
- Chapter 13: Understanding the Importance of Matrices
- Chapter 14: Working with Coordinate Spaces
- Chapter 15: Navigating the View Space
- Chapter 16: Rotating with Quaternions
- Part 4 – Essential Rendering Techniques
- Chapter 17: Vertex and Fragment Shading
- Chapter 18: Customizing the Render Pipeline
- Chapter 19: Rendering Visual Realism Like a Pro
- Index
- Other Books You May Enjoy
Product information
- Title: Mathematics for Game Programming and Computer Graphics
- Author(s):
- Release date: November 2022
- Publisher(s): Packt Publishing
- ISBN: 9781801077330
You might also like
book
3D Math Primer for Graphics and Game Development, 2nd Edition
This engaging book presents the essential mathematics needed to describe, simulate, and render a 3D world. …
book
3D Graphics Rendering Cookbook
Build a 3D rendering engine from scratch while solving problems in a step-by-step way with the …
book
Geometry for Programmers
Master the math behind CAD, game engines, GIS, and more! This hands-on book teaches you the …
book
Mastering Graphics Programming with Vulkan
Develop a rendering framework by implementing next-generation 3D graphics, leveraging advanced Vulkan features, and getting familiar …