VPS2A matrix readback
So, I'm finding Andrew Benson's Video Processing patches to be extremely useful/helpful. I'm a little confused, however, on how to do matrix readback in this context. I suspect it has something to do with the "cc.uyvy2rgba.jxs @dimscale 2 1" voodoo, and essentially doing the inverse of that? You can see in the attached patch where I'm trying to do the readback, and how it obviously isn't working. Suggestions / help are much appreciated! Thanks, Michael
michael,
What kind of problems are you experiencing? This seems to work as expected here. Maybe I am missing the intention of your patch?
-Ben
Hi Ben,
Thanks very much for your reply. This video shows http://psychoangelo.com/d/problempatch.mov
my problem. (There's weird flipping stuff and flickering going on.) The video is made with the patch I included above.
Thanks!,
Michael
Hello,
I had the same problem until I discover the following:
put a [jit.matrix] instead of [jit.matrix 4 char 160 120].
It works for me.
Kyred,
Thank you! This is really immediately useful for me. I don't understand why this solution works (and the other doesn't), but hey...
Thanks!,
Michael
Michael,
There was a bit of an issue with all of this with jit.gl.slab several versions ago, but it has been fixed for some time. Sounds like you are using an old version of Max 5. I highly recommend updating to Max 5.0.6.
-Ben
Hello,
What version of Max are you using? This sounds like a bug we fixed last year sometime. If you have updated to the latest version and are still getting the texture readback problems, let us know. In the meantime, a workaround I know of is to run the texture through a jit.gl.texture object before the matrix.
FWIW, I will also be including a record-to-disk section in the next installment of VPS tutorials.
Andrew B.
Thanks, and my bad on the updates. I'm always nervous to update right before I've got a something coming up, and that state seems to keep occurring. Will do it, though. Thanks again, Michael