Allensmile / 3D-Graphics-Rendering-Cookbook

3D Graphics Rendering Cookbook, published by Packt.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3D Graphics Rendering Cookbook

A comprehensive guide to exploring rendering algorithms in modern OpenGL and Vulkan

by Sergey Kosarevsky & Viktor Latypov

Book Name

This is the code repository for 3D Graphics Rendering Cookbook, published by Packt.

What is this book about?

OpenGL is a popular cross-language, cross-platform application programming interface (API) used for rendering 2D and 3D graphics, while 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 along with OpenGL and Vulkan APIs.

This book covers the following exciting features:

  • Improve the performance of legacy OpenGL applications
  • 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 Approaching Zero Driver Overhead (AZDO) philosophy in OpenGL
  • Integrate various rendering techniques into a single application
  • Find out how to develop Vulkan applications
  • Implement a physically based rendering pipeline from scratch
  • Integrate a physics library with your rendering engine

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 2019 Windows
1-10 GCC 8 Linux
1-10 Python 3.x Windows, Linux
1-10 Vulkan SDK Windows, Linux

The code runs on graphics cards as old as GeForce 740M. However, GeForce GTX 1060 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:

Run the bootstrap.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:

mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A x64
start RenderingCookbook.sln

Linux build instructions:

mkdir build
cd build
cmake ..
cd ..

Running the demos:

Run compiled demos from the root folder of this repository

Demo applications from this book require .obj/.gltf2 assets to be converted to our run-time loadable formats. Make sure you run Chapter5/MeshConvert before running anything else from chapters 5-10, and Chapter7/SceneConverter before running demos from chapters 7-10.

Chapter1

  • 1_Bootstrap
  • 2_CMake

Chapter2

  • 01_GLFW

    image

  • 02_GLM

    image

  • 03_STB

    image

  • 04_ImGui

    image

  • 05_EasyProfiler

  • 06_Optick

    image

  • 07_Assimp

    image

  • 08_ETC2Comp

  • 09_Taskflow

  • 10_MeshOptimizer

    image

Chapter3

  • GL01_APIWrapping

  • GL02_VtxPulling

    image

  • GL03_CubeMap

    image

  • VK01_GLSLang

  • VK02_DemoApp

    image

Chapter4

  • GL01_Camera

    image

  • GL02_FPS

  • VK01_DemoApp

    image

Chapter5

  • GL01_Grid

    image

  • GL02_Tessellation

    image

  • GL03_MeshRenderer

    image

  • MeshConvert

  • VK01_MultiMeshDraw

    image

Chapter6

  • GL01_PBR

    image

  • Util01_FilterEnvmap

    image

  • VK01_BRDF_LUT

    image

  • VK02_DescriptorIndexing

    image

  • VK03_ComputeTexture

    image

  • VK04_ComputeMesh

    image

  • VK05_PBR

    image

Chapter7

  • GL01_LargeScene

    image

  • SceneConverter

  • VK01_SceneGraph

    image

  • VK02_LargeScene

    image

Chapter8

  • GL01_ShadowMapping

    image

  • GL02_SSAO

    image

  • GL03_HDR

    image

  • GL04_HDR_Adaptation

    image

  • VK01_ShadowMapping

    image

  • VK02_SSAO

    image

  • VK03_HDR

    image

Chapter9

  • VK01_Physics

    image

Chapter10

  • GL01_CullingCPU

    image

  • GL02_CullingGPU

    image

  • GL03_OITransparency

    image

  • GL04_LazyLoading

    image

  • GL05_Final

    image

  • VK01_AtomicsTest

    image

  • VK02_Final

    image

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Authors

Sergey Kosarevsky Sergey Kosarevsky is a rendering lead at Ubisoft RedLynx. 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 18 years of software development experience and more than 10 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++

Other books by the authors

Android NDK Game Development Cookbook

Mastering Android NDK

About

3D Graphics Rendering Cookbook, published by Packt.

License:MIT License


Languages

Language:C++ 69.3%Language:C 20.3%Language:GLSL 7.0%Language:CMake 2.0%Language:SourcePawn 0.7%Language:Python 0.7%