texture video on a trapeze
Hi all,
i want to texture a video on a trapezoid quad.
I generate the quad with jit.gl.sketch.
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
I think you might have to specify texture coordinates per vertex, for example: gltexcoords 0 0,
glvertex (vertexcoordinates),
gltexcoords 0 1,
glvertex (vertex coordinates)
etc.
See the complete list of glcommands in the jit.gl.sketch 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
Thank you very much,
actually, it works with jit.gl.mesh... much easier than jit.gk.sketch for this stuff...