Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
OpenGL simplifications and expressions (similar to jit.expr) for Max 5 + Jitter.
JavaScript
branch: master

This branch is 1 commit ahead of topologicalmedialab:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README
tml.gl.!.maxpat
tml.gl.*.glsl
tml.gl.*.glsl.jxs
tml.gl.*.maxpat
tml.gl.*n.glsl
tml.gl.*n.glsl.jxs
tml.gl.*n.maxhelp
tml.gl.*n.maxpat
tml.gl.+.glsl
tml.gl.+.glsl.jxs
tml.gl.+.maxpat
tml.gl.+.scaled.glsl
tml.gl.+.scaled.glsl.jxs
tml.gl.+.scaled.maxpat
tml.gl.+n.glsl
tml.gl.+n.glsl.jxs
tml.gl.+n.maxhelp
tml.gl.+n.maxpat
tml.gl.-.glsl
tml.gl.-.glsl.jxs
tml.gl.-.maxpat
tml.gl.0.example1.maxpat
tml.gl.0.example2.maxpat
tml.gl.0.example3.maxpat
tml.gl.0.example4.blend.glsl
tml.gl.0.example4.blend.glsl.jxs
tml.gl.0.example4.glsl
tml.gl.0.example4.glsl.jxs
tml.gl.0.example4.maxpat
tml.gl.8.float.maxpat
tml.gl.8.normalized.maxpat
tml.gl.8.remap.maxpat
tml.gl.8.slab.maxpat
tml.gl.<.glsl
tml.gl.<.glsl.jxs
tml.gl.<.maxpat
tml.gl.<n.glsl
tml.gl.<n.glsl.jxs
tml.gl.<n.maxpat
tml.gl.>.glsl
tml.gl.>.glsl.jxs
tml.gl.>.maxpat
tml.gl.>n.glsl
tml.gl.>n.glsl.jxs
tml.gl.>n.maxpat
tml.gl.abs.glsl
tml.gl.abs.glsl.jxs
tml.gl.abs.maxpat
tml.gl.advection.glsl
tml.gl.advection.glsl.jxs
tml.gl.advection.model.maxhelp
tml.gl.advection.model.maxpat
tml.gl.blur.glsl
tml.gl.blur.glsl.jxs
tml.gl.blur.maxhelp
tml.gl.blur.maxpat
tml.gl.colorcorrect.glsl
tml.gl.colorcorrect.glsl.jxs
tml.gl.colorcorrect.maxhelp
tml.gl.colorcorrect.maxpat
tml.gl.counter.js
tml.gl.dotn.glsl
tml.gl.dotn.glsl.jxs
tml.gl.dotn.maxpat
tml.gl.expr.js
tml.gl.expr.maxhelp
tml.gl.expr.maxpat
tml.gl.float16.maxpat
tml.gl.heat.glsl
tml.gl.heat.glsl.jxs
tml.gl.heat.maxhelp
tml.gl.heat.maxpat
tml.gl.kernel3x3x2.glsl
tml.gl.kernel3x3x2.glsl.jxs
tml.gl.kernel3x3x2.model.maxpat
tml.gl.kernel3x3x2.view.maxpat
tml.gl.maxhelp
tml.gl.mean.maxpat
tml.gl.n-.glsl
tml.gl.n-.glsl.jxs
tml.gl.n-.maxpat
tml.gl.opticalFlow.glsl
tml.gl.opticalFlow.glsl.jxs
tml.gl.opticalFlow.model.maxpat
tml.gl.opticalFlow.refine.glsl
tml.gl.opticalFlow.refine.glsl.jxs
tml.gl.remap.glsl
tml.gl.remap.glsl.jxs
tml.gl.remap.maxhelp
tml.gl.remap.maxpat
tml.gl.shader.maxpat
tml.gl.sharp.glsl
tml.gl.sharp.glsl.jxs
tml.gl.sharp.maxhelp
tml.gl.sharp.maxpat
tml.gl.slab.maxpat
tml.gl.spatialDerivative.glsl
tml.gl.spatialDerivative.glsl.jxs
tml.gl.stddev.glsl
tml.gl.stddev.glsl.jxs
tml.gl.stddev.maxpat
tml.gl.swizzle.glsl
tml.gl.swizzle.glsl.jxs
tml.gl.swizzle.maxpat
tml.gl.temporal*.maxpat
tml.gl.temporal+.maxpat
tml.gl.temporal-.maxpat
tml.gl.util.DrunkMonkey.maxpat
tml.gl.util.GLSLWriter.maxpat
tml.gl.util.readGLSL.maxpat
tml.gl.wave.glsl
tml.gl.wave.glsl.jxs
tml.gl.wave.maxhelp
tml.gl.wave.maxpat

README

Here are a few utilities to help with using OpenGL in Max 5.

tml.gl.maxhelp links to most (if not all) the related help files.
The most useful object is tml.gl.expr.

To work around limitations of Max 5, take note of the following:
* Use tml.gl.float16 instead of jit.gl.texture.  This will ensure that
  operations done with other objects happen on 16bit or 32bit textures.
  At the moment, this is hard-coded to 32bit textures as 16bit is too
  buggy in Max.
* tml.gl.expr generates files with random names when no name for a shader
  is provided.  This is since Max 5 needs a glsl and jxs file to exist
  on disk.  I explored alternatives, but none were usable.
* Deleting patch lines some times does not clear the texture binding on
  the slab object.  To see how your GL application works (without any
  residue from previous runs) quit and re-open max.
* The generated GLSL files from tml.gl.expr and the associated jxs file
  can be used as fragment shaders with jit.gl objects.

Something went wrong with that request. Please try again.