O'Reilly logo

Multimedia Programming Using Max/MSP and TouchDesigner by Patrik Lechner

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

Using OpenGL in Jitter

OpenGL is a great framework for hardware-accelerated rendering. Before losing any more word about it, let's consider a more basic rendering setup to draw a 3D sphere to a floating window, as shown in the following screenshot:

Using OpenGL in Jitter

So what we have here are as follows:

  • A jit.window object that provides us with rendering destination or rendering context. Its name is referenced by the other OpenGL objects.
  • A jit.gl.render object that controls and drives our rendering. We need to send a bang to it to draw the next frame. But before that, we send it the message erase, so the last frame is overwritten with the background color. An erase_color ...

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