chromatic delay ala vade or "show me the night" video?
trying to come up with some new visual effects and came across these:
any idea of how i can accomplish something like this or at least point me in the right direction?
Try using [jit.unpack] to seperate everything out into each individual color plane and then throw a [jit.slide] onto each individual plane.
Frame delay is not the easiest in max unfortunately..but you would have to rig something up with [jit.matrixset] and that nastiness
You can also just use [jit.rota] on each individual color plane to offset it like that music video
then after you do your business on each plane, send it all back into a jit.pack and you’ll be set
thanks, that should get me in the right direction.
edit: nope, got a problem. it splits out fine but it’s all monochrome, no color separation. tried the example in the help patch with jit.qt.grab and jit.qt.movie and both didn’t work. only got a color change when i adjusted the scalebias but it was in the combined dumpout of jit.unpack while the split versions it just became whiter or blacker. i’m starting to feel like there is something wrong with jitter on my laptop since a few shaders aren’t working properly either.
well yeah it is certainly all monochrome when it comes out of jit.unpack..the trick is offsetting things and then bringing them all back in via jit.pack then they will be their normal colorful selves again..you can even muck around with swapping color planes as they come back into jit.pack or something..like putting blue into red etc
Here’s a quick demonstration of the concept.
----------begin_max5_patcher---------- 1886.3oc6ct0bahCEG+YmOELd18kcS8ft.X121OGc5jAaTbnECtfbR51oe2W cArAaCH7EBI8LYJoFAhi9qiN5HwuI9m2MY5hzWY4Ss9GqOaMYxOuaxD0ojmX RwmmLccvqKiCxUW1zD1KoK95z60EwYuxUmNNMHbMKO2BYWV1l.9xmhRV8PFa IW+HnTuY12ag7Pxe44KOhsmYa8kh6IJTUahmvmvjxJ5wzDdRvZlpn+MKJHtr jjsqiRhYbkog1exzs7COqrRxi9OUkfvhGr9z5qj+iMLsENcp0Wjk7q6tSd3d CUEYSOXE6HYIcCKoE8ffbUBgRUHZsYdCxApmxA9MTN9ZDe1lWhRBSeokVOFo b.nTk2.Q5HHbGnM3Ofl2idcbism6O21DOc0pXVqMGGU6.U5U2ruMx6L7fOps DkvOulRCig+9ZFOK0hP5tQ5hUGcZsQ57l3wtHHY0UUVTNyAK+lAdx1Eg2rm4 zhtP6otPa0E2TcQzLdXc.OK50yeLPCJzeYgm0ZTeUTNLA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9llCkIhBk31mDJw3qsnLLRg9wZVz KGpohA4BWcaWs186UtbmKaXamUMDY4mVFxS2lsrTrKlYypdSJjkyiR18lC97 tPyGbcOEEFVei50urqvMohI9KLOCGV2WqVtf72ilsgVsp4gFMlsSeLa6QkYi d24iHmnwH01YzI1XCrZDZTY1tFJ1XxnxrkaNwsL9G0wSlG.UuMIXJc2mtUd8 l1fnipHiTSiLNtBwzCsdDY03dH1iGWDjowywiqHL8vpOCw1QCuORCBLxe+md q6FPir9ASyzU0.ou+FshreeFkw+JZ1EmTX+ZbzxCdlE9f3oHVL5CAbdVzhsb 8J9phmlA3X0RQcQB1p3zEAwEjwsqNpUyGAHVunJ6t8pvvypnl3dhxH6fUQWf UQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQf UQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUQfUwd xpH1U+G.V8q2tcVEwT.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ .VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ.VQ .VQ.VQ.VQ.VQ.VQ.VwxcqbahjRk1vTrD9L8x5ws9co8046odmd9kjc88cz7O cU+F0VJlemOaUVvhVUyBzdnZnEa8Kw8qhXhuHwrtDorx56lhVwNLpQgt0Qd3 FEg63vDmNDwQ8hFaSDSrIzvZSFoSjA0lLxjnCqLYfIgGVKxwDUZXMIOSLImg 0lnlXSyGV+aznqqq1hEZx+dXGxgolFF.MX1juIgAnU2vsauCtINSdCpIIclH FXQCmujmotRjgqey1.axcv62vFXQCW+lqo8aCnHYTRbWRt.hO7q69e.PQGfM -----------end_max5_patcher-----------
AMAZING! Thanks for the perfect jumping off point.
Nice. I’d love some tips on how to work with separating the chroma channels in a shader..making an unpack/pack shader that is. i’ve played with the idea a little bit in quartz composer, but haven’t spent enough time with it in max. jit.gl.slab has the potential to spit out multiple outlets/have multiple inlets doesn’t it?
Good question. We don’t provide standard shaders that do this, but I’ve taken the time to whip some up (we’ll probably include in future versions). The basic issue as you point out is that jit.gl.slab doesn’t support multiple outputs. We accomplish that by using four jit.gl.slab objects which each grab a single plane, mapping it to all four planes for a monochrome output. jit.gl.slab does support multiple inputs, so then we can recombine these multiple monochrome input planes to make a single RGBA output matrix.
I’ve uploaded a zip file with example patches and shaders to do this.
A note for the advanced user (beginning users can safely ignore the following without worrying about all the technical jargon):
You could in theory optimize these shaders to pack monochrome information in the color planes, reducing texture size by a factor of 4, using techniques demonstrated in the UYVY and GRGB example shaders. I’ve avoided this for these examples as it further complicates both the shader and potentially any intermediate operation which if anything more than a plane independent pointwise operator will have to take this spatial packing in the planar color vector into account.
Hope this is of use.
Awesome! Definitely not something I would’ve figured out quickly on my own. I’ll play around with it more in a bit, but this looks like what I was gunning for. Thanks
thanks for that. i was hoping for a gpu solution as well. unfortunately it seems like my laptop has stopped working with gl processes (it’s slowly dying, gpu might be shot. not sure what’s wrong exactly) but luckily i’ll be borrowing a friend’s laptop for the performance.
Might try reinstalling your graphics drivers…