Selfie Sunday 001 :: [jit.gl.mesh] displacement tutorial
This Tutorial
This is a beginner to intermediate tutorial that will introduce you to using [jit.gl.mesh] with the z-depth based on your webcam image’s luminance. If you’ve been curious about how [jit.expr] and [jit.gl.mesh] work then give it a go!
This tutorial focuses on the following objects: [jit.expr], [jit.gl.mesh], [jit.gl.texture]
Difficulty
2 out of 4 planes on the ARGB scale
This tutorial is short and is designed for people that have dipped their toes in the water with [jit.matrix] already but want to learn more. It explains all concepts and objects in detail and uses them in fairly conventional ways. It does delve into [jit.expr], which uses syntax that can be slightly confusing to begin with. But don’t worry, I’ll hold your hand!
Running time: 16 minutes
The Patch
Selfie Sunday 001 :: Webcam lumiance to [jit.gl.mesh]
Or, copy this block and “New From Clipboard” or Ctrl-Alt_N in Max.
----------begin_max5_patcher----------
926.3oc0XsrSiCCEccQh+AqrDUphcbdzYU+GlkHDxkXRMJ0IxwoTDZ92G+no
zAnkaKSiR23nbyCetGetOre65qFELuZMuI.8KzcnQidyXYjyl0xnNCiBVxV+
XIqw8hAR9KUyeNX7lmo4q0N6kUr74LYw1mznesj6dzVShb28lu+V7Vi0L8iK
DxhGT7G0drDkjMIbLJJM0dIIzNRHSBQ228Qx1kBYIW6vDdGqUs5OY1aS+ZM2
+6Cb3Dcu6w+45qrWMWFClCdprxLU.8TxViOUoVxbtXxAb93Thyem5tDC14qY
J1RtlqdfKYy8.J7qYFxdYlfw+b1YIuogUv+rDQwa3ZfrVZ7gDHjzoVZgtQl7
MTD4X0G+DueewGOKzSxEKWxpQyDxUbkFEhvPYiCFtfIzcTL3nSLdY+pBC1ev
nbUh0V8w4hcJJmXuuUwQyjFoLppL2Lq7MFgRUg.npHhWyDdVnphxG1h4yJcs
fIyKgRLIPhnxhrio3+2zx4jH3qqUnYtQoIC6cg26uhuGJyP.TLhl4HEbZzok
soOhtl2p0URndMjRvTr2cociCkRvGRP3ISDAYpSyzQDTBMzr9EBjXhmBgX7E
lww3Kyjs6DzzzE0zrIr4lawSPBowzMlQvgQwGLASTz+j4MNc3FFAPaEcpZKB
.NpqP9kp1xTYxzC3BTCu7IA+2sxb1qggXzrtx6mTg8XL.pKFm3Yvui5lNLoN
1qsqHksKYPIkPH5oHGajcgJmXph4DKw.jSnSAvI3otz39tdFlbh02qeQHyqd
4KcyrC4llzR6jJgD5JiioCnV5161Dqp4P6ggldvl8yxdum1KmcIVnXyOxxJT
JDIu+fTlFMbk75phBvangFcvMz3C.xNx9WOhSQY+JCgTetDGuToJy+bkUW2H
FB.7IJPw.HOb21jSOMISz2eNSeofwOKAkB4mNcRGXsO3CDXSUq5wt+d2AHg1
Au47FCAYHIyFjd+sR9vasPjmyk+yhdtnwJDbTW39WSgCLLDfYOFidFXIfXLJ
t+AFABvr8Ghv8Kv.sTZ2OYOyXebJ2i3mz+.KF7RYOCLXZr9OcQbHnzE3AJvh
ICTfYaetmAFETTYb+m421FM.Fi1+.iBBX8eBVaumCxZkzOTEbvrTBO+Z+VCG
TI7je1B4l9YY00q3plM+ZOjLc9+bkxde5X+8Bo+deO0AJ9JQ2m3mr.lxzut1
zrt8vyrMzuNKIXyWWkyUxVg6GXr3vfY3u7o9R7E
-----------end_max5_patcher-----------
Really clear and helpful tutorial. Thanks very much. Can’t believe I’ve been so unadventurous with jitter!
Really happy you got something out of my tutorials. Thanks for saying hi!
Nice. Very helpful, well put together, clear patching and instruction
Is there a way to modify this so as to retain color?