Working with OpenGL
In addition to working with video data, Jitter also provides an interface to OpenGL, a tool for generating graphics dynamically. Instead of processing video directly, OpenGL renders images from a scene containing objects, textures and lighting. OpenGL can be used to generate complex and reactive graphics in real time. Through the jit.phys objects, it can also use its built-in physics engine to simulate the interaction of physical objects.
Swappable Graphics Engine
The OpenGL implementation used by Jitter is determined by the swappable graphics engine. Currently Jitter ships with two engine variants, legacy OpenGL (gl2) and core profile OpenGL (glcore). As of Max 8.5 the default graphics engine used by Jitter is glcore, which was formerly termed gl3. Users needing legacy behavior can set the Graphics Engine preference to gl2.
Graphics Engine Preference
In Max's preferences (Max > Preferences), under the Jitter section, there is an entry titled Graphics Engine (@gfxengine). Using the
drop-down menu for this entry, you may select the graphics engine you wish to use: gl2 or glcore. When changing the graphics engine,
please note that you will have to restart Max for the change to take effect.
OpenGL Topics
- GL Contexts
- GL Texture Output
- Depth Testing vs Layering
- GPU Instancing
- Transform Feedback
- Texture Buffers
- Updating Legacy Shaders
Online Tutorials
Basics
- OpenGL Quick Start
- Creating a "Sketchpad" for jit.gl.sketch
- Your First Shader
- My Favorite Object: jit.gl.mesh
- Managing Multiples Made Easy
- Sending to Syphon
Gen
- Gen Patch-a-day
- Gen 3: The Fine Art of Surfacing
- Porting Shadertoy tutorials to jit.gl.pix
- My Favorite Object: jit.gl.pix
Physics
Other
- Jitter Recipes - A variety of useful Jitter patches: book 1 book 2 book 3 book 4
- The Video Processing System part 1 part 2 part 3 part 4
- An Introduction to jit.mo part 1 part 2
- Demystifying Expressions in Jitter
- Getting Better Framerates
- Create Dynamic OpenGL Scene Processing Chains
- Federico Foderaro's Amazing Max Stuff