O'Reilly logo

openFrameworks Essentials by Denis Perevalov, Igor Tatarnikov

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. Working with Raster Graphics – Images, Videos, and Shaders

In the previous chapters, we dealt with 2D graphics made exclusively from geometric primitives. This kind of graphics is called vector graphics and is great for generating algorithm-based pictures. Drawing and manipulating pictures of real-world objects requires other 2D graphics called raster graphics, which is based on raster images.

In this chapter, we will consider the basics of raster graphics by covering the following topics:

  • Loading and drawing raster images and videos
  • Grabbing and drawing live video from a camera
  • Mixing images using additive blending
  • Drawing to the offscreen buffer
  • Processing images using fragment shaders demonstrated by implementing the kaleidoscope effect. ...

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