PDA

View Full Version : Skewing An Image



Stuart Hall
11-29-2010, 06:57 PM
Hi,

Total OpenGL user here, I am trying to use it in an iPhone project. Basically I want to let a user skew an image.

I've followed the tutorial from here:

http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-part-6_25.html

and get:
http://dl.dropbox.com/u/3392551/opengl/normal.png

which converts to:
http://dl.dropbox.com/u/3392551/opengl/skew.png

How can I get it to skew without the fold in the middle?

I'm guessing it's due to GL_TRIANGLE_STRIP, but not sure what approach to take next. Do I make a lot of small triangles or is there an easy way?

Thanks

ZbuffeR
11-30-2010, 02:35 AM
Have a read on this :
http://xyzw.us/~cass/qcoord/