Chapter 4. Rendering 2D Images and Videos with Texture Mapping

In this chapter, we will cover the following topics:

  • Getting started with modern OpenGL (3.2 or higher)
  • Setting up the GLEW, GLM, SOIL, and OpenCV libraries in Windows
  • Setting up the GLEW, GLM, SOIL, and OpenCV libraries in Mac OS X/Linux
  • Creating your first vertex and fragment shader using GLSL
  • Rendering 2D images with texture mapping
  • Real-time video rendering with filters

Introduction

In this chapter, we will introduce OpenGL techniques to visualize another important class of datasets: those involving images or videos. Such datasets are commonly encountered in many fields, including medical imaging applications. To enable the rendering of images, we will discuss fundamental OpenGL concepts ...

Get OpenGL Data Visualization Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.