Forums > MaxMSP

move images within lcd or jit.window?


May 02 2013 | 1:14 am

so guys I need to move an image (.jpeg, stored on my computer) in real time: i’m sending stream of numbers for the coordinates x y and the depth (the image is gonna be smaller or bigger). What do you me suggest to use, the lcd object or the jit.window?
I’ve been trying doing something with lcd but i could just menage to have some defined values with the message objects (and in my mind I need to work with number boxes).
Any idea?
Thanks


Nat
May 02 2013 | 5:03 am

jit.qt.movie to load your image
jit.gl.videoplane to move/scale the image

(you’ll also need a jit.gl.render to render to a jit.window)

May 02 2013 | 11:54 pm

thanks Nat, that is what I was trying to do but I think I’ve messed up something because I can’t see anything in the window…

Attachments:
  1. window.rtf

Nat
May 03 2013 | 12:06 am

This will work a little better:


-- Pasted Max Patch, click to expand. --

May 03 2013 | 1:09 am

thanks Nat this is working better.. but what if I need the image to be smaller (not changing the y axes just smaller)?


Nat
May 03 2013 | 1:22 am

You need to change the first 2 parameters of the scale at the same time, you could do this with the pak object.

May 06 2013 | 10:09 pm

thanks nat

Viewing 7 posts - 1 through 7 (of 7 total)

Forums > MaxMSP