glloadmatrix and glmultmatrix patches
i’m a newcomer to Jitter ,opengl and graphics in general and have found it a struggle to understand some of the opengl objects. in particular jit.gl.sketch caught my attention following mention in the forum about its capabilities but it proved to be even more problematic for me…..
anyway two of the gl commands that i’ve found interesting are glloadmatrix and glmultmatrix, and thought that other beginners might find these patches of some use. I haven’t tried to explain all thats going on because I become easily lost in some of the complexities, but as quick examples you may find them interesting.
included in this folder:
p.glloadmatrix – using glloadmatrix [matrixname]
p.glmultmatrix – using glmultmatrix [matrixname]
p.glrotations – using both the above commands and the p.rotation patch
p.rotation – a patch to work out rotations that inputs the calculations into a 4×4 matrix in jitter that can be accessed by opengl using the glloadmatrix and glmultmatrix commands (example of use in the p.glrotations patch)
p.glrotation~ – rotations using audio signals to input values into a glmultmatrix command
p.rotationIndexPoly~ – this patch uses jit.poke~ to write values to a 4×4 matrix and is used in a poly~ in the p.glrotation~ patch
p.mult.js and p.plus.js – two javascript files taken from the max examples (used in p.glrotation)
4×4 matrix.jpg – a simplified diagramme showing what some of the cells in a 4×4 matrix do when used with glloadmatrix and glmultmatrix
p.glloadmatrix and p.glmultmatrix readme
written using Max/MSP 4.5.7 and Jitter 1.5.2
june 2006 – changed names of js files to make them compatible with windows

No Comments, Comment or Ping
Reply to “glloadmatrix and glmultmatrix patches”