OpenGL development cookbook : over 40 recipes to help you learn, understand, and implement modern OpenGL in your applications / Muhammad Mobeen Movania.

The book is written in a Cookbook format with practical recipes aimed at helping you exploit OpenGL to its full potential. This book is targeted towards intermediate OpenGL programmers. However, those who are new to OpenGL and know an alternate API like DirectX might also find these recipes useful t...

Full description

Saved in:
Bibliographic Details
Main Author: Movania, Muhammad Mobeen
Format: eBook
Language:English
Published: Birmingham : Packt Pub., 2013.
Subjects:
Online Access:Click for online access
Table of Contents:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; 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 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 libraryChapter 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 fragment shader.
  • Rendering a skybox using static cube mappingImplementing 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 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 peelingImplementing 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.