OpenGL Development Cookbook

OpenGL brings an added dimension to your graphics by utilizing the remarkable power of modern GPUs. This straight-talking cookbook is perfect for intermediate C++ programmers who want to exploit the full potential of OpenGL.
Preview in Mapt

OpenGL Development Cookbook

Muhammad Mobeen Movania

1 customer reviews
OpenGL brings an added dimension to your graphics by utilizing the remarkable power of modern GPUs. This straight-talking cookbook is perfect for intermediate C++ programmers who want to exploit the full potential of OpenGL.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $29.99
Save 66%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$49.99
$29.99 p/m after trial
RRP $29.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


OpenGL Development Cookbook Book Cover
OpenGL Development Cookbook
$ 29.99
$ 10.00
Robot Operating System Cookbook Book Cover
Robot Operating System Cookbook
$ 39.99
$ 10.00
Buy 2 for $20.00
Save $49.98
Add to Cart

Book Details

ISBN 139781849695046
Paperback326 pages

Book Description

OpenGL is the leading cross-language, multi-platform API used by masses of modern games and applications in a vast array of different sectors. Developing graphics with OpenGL lets you harness the increasing power of GPUs and really take your visuals to the next level.

OpenGL Development Cookbook is your guide to graphical programming techniques to implement 3D mesh formats and skeletal animation to learn and understand OpenGL.

OpenGL Development Cookbook introduces you to the modern OpenGL. Beginning with vertex-based deformations, common mesh formats, and skeletal animation with GPU skinning, and going on to demonstrate different shader stages in the graphics pipeline. OpenGL Development Cookbook focuses on providing you with practical examples on complex topics, such as variance shadow mapping, GPU-based paths, and ray tracing. By the end you will be familiar with the latest advanced GPU-based volume rendering techniques.

Table of Contents

Chapter 1: Introduction to Modern OpenGL
Introduction
Setting up the OpenGL v3.3 core profile on Visual Studio 2010 using the GLEW and freeglut libraries
Designing a GLSL shader class
Rendering a simple colored triangle using shaders
Doing a ripple mesh deformer using the vertex shader
Dynamically subdividing a plane using the geometry shader
Dynamically subdividing a plane using the geometry shader with instanced rendering
Drawing a 2D image in a window using the fragment shader and the SOIL image loading library
Chapter 2: 3D Viewing and Object Picking
Introduction
Implementing a vector-based camera with FPS style input support
Implementing the free camera
Implementing the target camera
Implementing view frustum culling
Implementing object picking using the depth buffer
Implementing object picking using color
Implementing object picking using scene intersection queries
Chapter 3: Offscreen Rendering and Environment Mapping
Introduction
Implementing the twirl filter using the fragment shader
Rendering a skybox using static cube mapping
Implementing a mirror with render-to-texture using FBO
Rendering a reflective object using dynamic cube mapping
Implementing area filtering (sharpening/blurring/embossing) on an image using convolution
Implementing the glow effect
Chapter 4: Lights and Shadows
Introduction
Implementing per-vertex and per-fragment point lighting
Implementing per-fragment directional light
Implementing per-fragment point light with attenuation
Implementing per-fragment spot light
Implementing shadow mapping with FBO
Implemeting shadow mapping with percentage closer filtering (PCF)
Implementing variance shadow mapping
Chapter 5: Mesh Model Formats and Particle Systems
Introduction
Implementing terrains using the height map
Implementing 3ds model loading using separate buffers
Implementing OBJ model loading using interleaved buffers
Implementing EZMesh model loading
Implementing simple particle system
Chapter 6: GPU-based Alpha Blending and Global Illumination
Introduction
Implementing order-independent transparency using front-to-back peeling
Implementing order-independent transparency using dual depth peeling
Implementing screen space ambient occlusion (SSAO)
Implementing global illumination using spherical harmonics lighting
Implementing GPU-based ray tracing
Implementing GPU-based path tracing
Chapter 7: GPU-based Volume Rendering Techniques
Introduction
Implementing volume rendering using 3D texture slicing
Implementing volume rendering using single-pass GPU ray casting
Implementing pseudo-isosurface rendering in single-pass GPU ray casting
Implementing volume rendering using splatting
Implementing transfer function for volume classification
Implementing polygonal isosurface extraction using the Marching Tetrahedra algorithm
Implementing volumetric lighting using the half-angle slicing
Chapter 8: Skeletal and Physically-based Simulation on the GPU
Introduction
Implementing skeletal animation using matrix palette skinning
Implementing skeletal animation using dual quaternion skinning
Modeling cloth using transform feedback
Implementing collision detection and response on a transform feedback-based cloth model
Implementing a particle system using transform feedback

What You Will Learn

  • Create an OpenGL 3.3 rendering context
  • Get to grips with camera-based viewing and object picking techniques
  • Learn off-screen rendering and environment mapping techniques to render mirrors
  • Discover shadow mapping techniques, including variance shadow mapping
  • Implement a particle system using shaders
  • Learn about GPU-based methods for global illumination using spherical harmonics and SSAO
  • Understand translucent geometry and order independent transparency using dual depth peeling
  • Explore GPU-based volumetric lighting using half angle slicing and physically based simulation on the GPU using transform feedback

Authors

Table of Contents

Chapter 1: Introduction to Modern OpenGL
Introduction
Setting up the OpenGL v3.3 core profile on Visual Studio 2010 using the GLEW and freeglut libraries
Designing a GLSL shader class
Rendering a simple colored triangle using shaders
Doing a ripple mesh deformer using the vertex shader
Dynamically subdividing a plane using the geometry shader
Dynamically subdividing a plane using the geometry shader with instanced rendering
Drawing a 2D image in a window using the fragment shader and the SOIL image loading library
Chapter 2: 3D Viewing and Object Picking
Introduction
Implementing a vector-based camera with FPS style input support
Implementing the free camera
Implementing the target camera
Implementing view frustum culling
Implementing object picking using the depth buffer
Implementing object picking using color
Implementing object picking using scene intersection queries
Chapter 3: Offscreen Rendering and Environment Mapping
Introduction
Implementing the twirl filter using the fragment shader
Rendering a skybox using static cube mapping
Implementing a mirror with render-to-texture using FBO
Rendering a reflective object using dynamic cube mapping
Implementing area filtering (sharpening/blurring/embossing) on an image using convolution
Implementing the glow effect
Chapter 4: Lights and Shadows
Introduction
Implementing per-vertex and per-fragment point lighting
Implementing per-fragment directional light
Implementing per-fragment point light with attenuation
Implementing per-fragment spot light
Implementing shadow mapping with FBO
Implemeting shadow mapping with percentage closer filtering (PCF)
Implementing variance shadow mapping
Chapter 5: Mesh Model Formats and Particle Systems
Introduction
Implementing terrains using the height map
Implementing 3ds model loading using separate buffers
Implementing OBJ model loading using interleaved buffers
Implementing EZMesh model loading
Implementing simple particle system
Chapter 6: GPU-based Alpha Blending and Global Illumination
Introduction
Implementing order-independent transparency using front-to-back peeling
Implementing order-independent transparency using dual depth peeling
Implementing screen space ambient occlusion (SSAO)
Implementing global illumination using spherical harmonics lighting
Implementing GPU-based ray tracing
Implementing GPU-based path tracing
Chapter 7: GPU-based Volume Rendering Techniques
Introduction
Implementing volume rendering using 3D texture slicing
Implementing volume rendering using single-pass GPU ray casting
Implementing pseudo-isosurface rendering in single-pass GPU ray casting
Implementing volume rendering using splatting
Implementing transfer function for volume classification
Implementing polygonal isosurface extraction using the Marching Tetrahedra algorithm
Implementing volumetric lighting using the half-angle slicing
Chapter 8: Skeletal and Physically-based Simulation on the GPU
Introduction
Implementing skeletal animation using matrix palette skinning
Implementing skeletal animation using dual quaternion skinning
Modeling cloth using transform feedback
Implementing collision detection and response on a transform feedback-based cloth model
Implementing a particle system using transform feedback

Book Details

ISBN 139781849695046
Paperback326 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

OpenGL ES 3.0 Cookbook Book Cover
OpenGL ES 3.0 Cookbook
$ 39.99
$ 10.00
GLSL Essentials Book Cover
GLSL Essentials
$ 20.99
$ 10.00
SFML Game Development Book Cover
SFML Game Development
$ 26.99
$ 10.00
Direct3D Rendering Cookbook Book Cover
Direct3D Rendering Cookbook
$ 32.99
$ 10.00
Unity Shaders and Effects Cookbook Book Cover
Unity Shaders and Effects Cookbook
$ 29.99
$ 6.00
SDL Game Development Book Cover
SDL Game Development
$ 26.99
$ 10.00