2D Warp texture mapping create curved diagonals…

Dec 6, 2010 at 8:27pm

2D Warp texture mapping create curved diagonals…


i’m trying to map a texture on 2D surface with jit.gl.mesh.
My problem is:
when i warp the surface, diagonals are curved.
Is it possible to have a mapping way wich preserve straight diagonals?
(without changing Z position of course…)
i think it’s possible if the rectangles in the surface are not equispaced…

Thanx for helping

– Pasted Max Patch, click to expand. –
Dec 7, 2010 at 6:22pm

they are curved because you are sending the 2×2 geometry matrix to a 10×10 matrix with interp on.
just get rid of the 10×10 matrix.

Feb 8, 2011 at 7:05pm

hello list,

i have a similar problem with the deformation of a texture
on a mesh.
i want to deform a movie with a triangle by adjusting its

if i use a jit.gl.mesh the outlines of my triangle gets
curved. i wont to keep it straight.

i have tryed different dimensions of the controlmatrix
without success :-(

i also tryed the jit.gl.nurbs. the result is also a
curved distortion of my texture.

with a textured quad drawn with jit.gl.sketch i had the problem,
that my texture got a kink.

does anybody has a tip for me ?
some special gl hint, or another object i should try.

i habe to finish my project on saturday ….

i have attached a smal dem, which shows the problem.

any help would be graet !
euer kugelschreiber

  1. meshtest.zip

You must be logged in to reply to this topic.