O'Reilly logo

OpenGL Data Visualization Cookbook by William C. Y. Lo, Raymond C. H. Lo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required