MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook-Second-Edition

github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook-Second-Edition @1.0.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.5 ↗ · + Follow
473 symbols 1,212 edges 96 files 25 documented · 5% updated 29d ago1.0.5 · 2026-01-11★ 604

Browse by type

Functions 335 Types & classes 138
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Vulkan 3D Graphics Rendering Cookbook - 2nd Edition Build Status

A comprehensive guide to exploring rendering algorithms in modern Vulkan

by Sergey Kosarevsky & Viktor Latypov & Alexey Medvedev

This is the code repository for Vulkan 3D Graphics Rendering Cookbook - 2nd Edition, published by Packt in 2025.

Discord: https://discord.com/invite/bEyHyKCrvq

What is this book about?

Book Name

Vulkan is a low-overhead, cross-platform 3D graphics API that targets high-performance applications. 3D Graphics Rendering Cookbook helps you learn about modern graphics rendering algorithms and techniques using C++ programming with the Vulkan API.

This book covers the following exciting features:

  • Improve the performance of legacy Vulkan applications with Vulkan 1.3
  • Manage a substantial amount of content in real-time 3D rendering engines
  • Discover how to debug and profile graphics applications
  • Understand how to use the bindless approach in Vulkan
  • Integrate various rendering techniques into a single application
  • Find out how to leverage bindless Vulkan
  • Implement a physically based glTF2 rendering pipeline from scratch

The book uses the LightweightVK library as a Vulkan wrapper and dives deep into its implementation.

If you feel this book is for you, get your copy today!

Software and Hardware List

Chapter Software required OS required
1-10 Microsoft Visual Studio 2022 Windows
1-10 GCC 13 Linux
1-10 Python 3.x Windows, Linux
1-10 Vulkan SDK Windows, Linux

The code runs on graphics cards which support Vulkan 1.3. GeForce RTX 2060 or newer is strongly recommended.

Instructions and Navigations

All of the code is organized into folders. For example, Chapter01.

The code will look like the following:

macro(SETUP_GROUPS src_files)
foreach(FILE ${src_files})
get_filename_component(PARENT_DIR "${FILE}" PATH)

Following is what you need for this book: This book is for 3D graphics developers who are familiar with the mathematical fundamentals of 3D rendering and want to gain expertise in writing fast rendering engines with advanced techniques using C++ libraries and APIs. A solid understanding of C++ and basic linear algebra, as well as experience in creating custom 3D applications without using premade rendering engines is required.

With the following software and hardware list you can run all code files present in the book (Chapter 1-10).

Downloading assets and dependencies:

Ensure that you’ve installed Git LFS https://git-lfs.com. This tool is essential for handling large files in Git, so it's important to have it set up before you proceed.

Run the deploy_deps.py script from the root folder of this repository. Make sure you have ~15Gb of free space before you download the assets and build the source code.

Models downloaded from Morgan McGuire's Computer Graphics Archive

Windows build instructions:

cd .build 
cmake .. -G "Visual Studio 17 2022" -A x64
start RenderingCookbook2.sln

Linux build instructions:

sudo apt update
sudo apt install libtbb-dev
cd .build 
cmake ..
cmake --build .
cd ..

Running the demos:

$\color{red}{\textbf{Run compiled demos from the root folder of this repository!!!}}$

Here's the complete list of all the demo applications included in this book.

Chapter 1: Establishing a Build Environment

  • 01_CMake
  • 02_GLFW
  • 03_Taskflow
  • 04_GLSLang
  • 05_BC7Compression

Chapter 2: Getting Started with Vulkan

  • 01_Swapchain

image

  • 02_HelloTriangle

image

  • 03_GLM

image

Chapter 3: Working with Vulkan objects

  • 01_Assimp

image

  • 02_STB

image

Chapter 4: Adding User Interaction and Productivity Tools

  • 01_ImGui

image

  • 02_TracyProfiler

image

  • 03_FPS

image

  • 04_CubeMap

image

  • 05_Camera

image

  • 06_DemoApp

image

Chapter 5: Working with Geometry Data

  • 01_MeshOptimizer

image

  • 02_VertexPulling

image

  • 03_MillionCubes

image

  • 04_InstancedMeshes

image

  • 05_Grid

image

  • 06_Tessellation

image

  • 07_MeshRenderer

image

  • 08_ComputeTexture

image

  • 09_ComputeMesh

image

Chapter 6: Physically Based Rendering Using the glTF 2.0 Shading Model

  • 01_Unlit

image

  • 02_BRDF_LUT

image

  • 03_FilterEnvmap

image

  • 04_MetallicRoughness

image

  • 05_SpecularGlossiness

image

Chapter 7: Advanced PBR extensions

  • 01_Clearcoat

image

  • 02_Sheen

image

  • 03_Transmission

image

  • 04_Volume

image

  • 05_IOR

image

  • 06_Specular

image

  • 07_EmissiveStrength

image

  • 08_AnalyticalLight

image

Chapter 8: Graphics Rendering Pipeline

  • 01_DescriptorIndexing

image

  • 02_SceneGraph

image

  • 03_LargeScene

image

Chapter 9: glTF Animations

  • 01_AnimationPlayer

image

  • 02_Skinning

image

  • 03_Morphing

image

  • 04_AnimationBlending

image

  • 05_ImportLights

image

  • 06_ImportCameras

image

Chapter 10: Image-based Techniques

  • 01_OffscreenRendering

image

  • 02_ShadowMapping

image

  • 03_MSAA

image

  • 04_SSAO

image

  • 05_HDR

image

  • 06_HDR_Adaptation

image

Chapter 11: Advanced Rendering Techniques and Optimizations

  • 01_CullingCPU

image

  • 02_CullingGPU

image

  • 03_DirectionalShadows

image

  • 04_OIT

image

  • 05_LazyLoading

image

  • 06_FinalDemo

image

Screenshots

image

Get to Know the Authors

Sergey Kosarevsky

Sergey Kosarevsky is a former rendering lead at Ubisoft RedLynx. He currently leads Vulkan development at Meta. He worked in the mobile industry at SPB Software, Yandex, Layar and Blippar, TWNKLS, and DAQRI, where he designed and implemented real-time rendering technology. He has more than 20 years of software development experience and more than 12 years of mobile and embedded 3D graphics experience. In his Ph.D. thesis, Sergey employed computer vision to solve mechanical engineering problems. He has co-authored several books on mobile software development in C++.

Viktor Latypov

Viktor Latypov is a software engineer specializing in embedded C/C++, 3D graphics, and computer vision. With more than 15 years of software development experience and a Ph.D. in Applied Mathematics, he has implemented a number of real-time renderers for medical and automotive applications over the last 10 years. Together with Sergey, he has co-authored two books on mobile software development in C++

Alexey Medvedev

Alexey Medvedev is a technical expert with a rich background in game development. He currently serves as the AR Technical Lead at Meta, where he brings his passion for cutting-edge technology to drive innovation. Prior to joining Meta, Alexey honed his skills at prominent companies such as Crytek, Blizzard, and 2K, making significant contributions to the gaming industry.

Other books by the authors

Android NDK Game Development Cookbook

Mastering Android NDK

3D Graphics Rendering Cookbook

Core symbols most depended-on inside this repo

Shape

Function 233
Class 124
Method 102
Enum 14

Languages

C++95%
Python5%

Modules by API surface

shared/UtilsGLTF.h31 symbols
shared/Camera.h30 symbols
deps/bootstrap.py24 symbols
shared/UtilsGLTF.cpp23 symbols
shared/Scene/Scene.cpp21 symbols
shared/UtilsMath.h17 symbols
shared/UtilsAnim.cpp12 symbols
shared/Bitmap.h12 symbols
shared/VulkanApp.cpp11 symbols
shared/UtilsAnim.h11 symbols
shared/Scene/VtxData.cpp11 symbols
Chapter11/VKMesh11.h11 symbols

For agents

$ claude mcp add 3D-Graphics-Rendering-Cookbook-Second-Edition \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page