Distorting a matrix?
Hi everyone!
First off, I'd like to introduce myself. I'm a student at a local Singaporean university and I'm enrolled in an interactive media course. My current term project is to create a distortable live-feed video (of someone's face), and I've been stymied by the steps required.
My first experiment is cutting the feed up into a grid of 3x3 matrices (@rows 3, @colums 3) and then distorting each of them with zoom. However this presents several problems:
1. Each cell created with scissors is of a fixed matrix dimension (I'm using 160 x 120 for now), and if I distort the video, the maximum viewable area of the matrix doesn't change, so it gets cut off.
2. If I expand the matrix size and adjust the initial settings, I can distort the image to my liking but the 3x3 display glues together incorrectly with lots of dead space at the default settings.
Is there any way of actually adjusting/resizing the matrix itself in real time, or am I doing it all wrong to begin with? (Actually I think I'm doing it wrong.) I've only had a month's experience with this and I can't find anything in the tutorials/documentation that might help.
The final program will be hooked up to IR or Motion sensors embedded in a surface so when a hand moves over them they will track the movement and 'drag' the matrix along accordingly. There will be a blue screen, so after chromakeying there won't be a background to bother with.
Thanks for any help given,
Cheers!
Hi Wong,
I would suggest you look at jit.repos, and generate a spatial
displacement matrix for whatever effect you're looking to achieve.
Check out the examples under jitter-examples/video/spatial.
Otherwise, if you do want to follow the scissors glue route or some
other strategy, you'll need to actually post a simple patch which
illustrates your desired effect and problems achieving said effect.
Given the information provided, there's no much insight we can provide.
-Joshua
in addition to what joshua suggested, you might want to check this out:
best,
nesa
Cool. I'll get my current patch up... been working on it and I think I just found the message box parameter that changes matrix size. Still doesn't solve my problem but I'll try the others ASAP.
Thanks!!