tracking moving object in jit.window

serenwen's icon

so guys what i'm trying to do is this: I have a hit.window with displays some objects (they are images from my computer) and these objects are moving up and down and nearer and further. Now I'd need to create a grid in the window object and track in which part of the grid the objects are...any ideas?
thanks

Rob Ramirez's icon

are you using GL?
posting a simple patch will help us help you.

serenwen's icon

so this is the very basic patch. I'm trying to built a grid on the hit.window in order to track where is the image every moment but I didn't manage to create anything working yet...

serenwen's icon
Max Patch
Copy patch and select New From Clipboard in Max.

it seems that the file won't open so let's try another way

Rob Ramirez's icon

hi, please read the below link regarding posting compressed patches to the forum:
https://cycling74.com/forums/welcome-to-the-cycling-74-forums-take-a-moment-to-read-these-instructions/

serenwen's icon

I'm sorry about that do I need to repost it in the correct way?

Rob Ramirez's icon

yes of course.
and if you can edit your original post removing the uncompressed version, it will make this thread much easier to read.
thanks.

serenwen's icon

ok now it should be fine..

Rob Ramirez's icon

so you're controlling the objects using position messages, right?
why do you need to track them? you already have the position for each object...

serenwen's icon

yes I will control them with the position messages...well I was just wondering how could I map the jit.window and then output the same position object again (there's no practical need in this occasion I know it's just a random thought!)