Forums > Jitter

texture video on a trapeze

December 3, 2010 | 4:27 pm

Hi all,

i want to texture a video on a trapezoid quad.
I generate the quad with
My problem is the way of texturing the video on the quad : 2 triangles !!!
So when a distort the quad by changing the position of one point, only the concerned half part of video is distorted.
I want my whole video distorted when i change one point of the quad…

any idea?

Thanks for helping

Romain V

December 3, 2010 | 4:57 pm

I think you might have to specify texture coordinates per vertex, for example: gltexcoords 0 0,
glvertex (vertexcoordinates),
gltexcoords 0 1,
glvertex (vertex coordinates)

See the complete list of glcommands in the help file.
You should take into account the order of the vertices (I think it is usually counter-clockwise). Please post a patch so that we can have more information about what you want to do

December 5, 2010 | 1:14 pm

Thank you very much,

actually, it works with… much easier than jit.gk.sketch for this stuff…

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

Forums > Jitter