hi imran,
the TUIOzones library is not completly done, so we did the draw priority in Processing creating a list and NOT an array (because it crashes when a zone is repeated), using this list to the void draw the last rect drew is the first on top so you could have n^ levels like in Photoshop; to have the same draw priority in Touch i did 15 textDAT fixed with drawpriority from ( 0 ) to ( 14 ) and the variable is the ID of the geometry, took from the list and written in the textDAT like this:
opparm /project1/geo`chop("null0/chan1")` drawpriority ( 0 )
opparm /project1/geo`chop("null1/chan1")` drawpriority ( 1 )
opparm /project1/geo`chop("null2/chan1")` drawpriority ( 2 )
...
Then the ROTATABLE in TUIOzones is "under construction" so the problem was that everytime you start to rotate it always start fom "0" also if you memorize the last rotation the library send you zero, so i took the float of rotation from -1 and 1 and i did a speedCHOP that increase and decrease and then a holdCHOP that is active when a zone is UNPRESS; then i send the rotation via OSC to processing that rotate rects getting datas from Touch.
Then there are other things to say about the TUIOzones, like we are having big problems with the PulltoTop it resolve the problem below, BUT! you have to select a zone and then scale or rotate or move, BUT! if you select "zone1" and you scale "zone 12" (or another) "zone1" takes the scale of the otherZone and the lower and upper limit are lost for "zone1", and it's very bad specially for multiusers...
If you don't use pulltoTop and scale "zone1" bigger so that can cover others zones you touch the "zone1" the others zones that are under comes up over the zone1, Bleah! BUT if you do the same thing with "zone15" (the last zone) the other zones under it don't come over, so it depends by ID of the zones inside the library.
These are some of the problems with TUIOzones in processing, I hope to comunicate with TUIO very soon with TOUCH directly...
The system is running on one system. The machine running under the table in the video is a CoreDuo with 2 GBram and a 8600GT - 512MB NvidiaCard (it was going 20fps). We have know a new PC i5 with 4GB and 1GB gpu, and it's very better!
I have to go because we are still in the studio and we have to DINNER at midnight!!!

Nima