Sorry - I did actually start putting together an example over the weekend but had to park it because of a deadline looming.
Not sure what you're trying to do but I did (and what the example will show) was created a mesh divided into n squares. Then I created a UV mapping that fitted onto the divided mesh.
The vertices were left exposed so when the user touched the screen I grabbed the closest vertex and allowed the user to drag it around (which automatically stretched the picture). Because I was trying to mimic stretching I had the vertex slowly restore itself to its original position.
Hope this helps get you started.
|